Mode d’emploi
- Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
- Consultez le document original pour les outils, identifiants et environnements requis.
- Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/xsavikx/okf-skills --skill okf-graphqlAvant de commencer
- L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
- Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.
GraphQL OKF Connector
This skill provides a Go-based CLI tool to document a GraphQL schema (SDL) as an Open Knowledge Format (OKF) bundle: one concept per user-defined type and per root operation, with fields and operations linked to the types they reference. It needs only the SDL file — no live server.
When to Use
Use this skill when you need to:
- Catalog a GraphQL API from its SDL — types under
types/, queries under
queries/, mutations under mutations/ (subscriptions under subscriptions/).
- Turn the type graph into a connected, browsable view — field→type and
operation→type references edges render as typed edges in okf-viz.
- Round-trip enriched descriptions back to a
.okf-metadata.yamlsidecar.
Setup
go install github.com/xSAVIKx/okf-skills/skills/okf-graphql@latest
# …or: cd skills/okf-graphql && go build -o okf-graphql .How to Use
1. Produce an OKF bundle
./okf-graphql produce --schema <schema.graphql> --out <bundle-dir>--schema(required): path to the GraphQL SDL document.--out(required): output OKF bundle directory.
Each object/input/interface type becomes types/<Name>.md with a # Columns field table (Name | Type | Required); enums emit a # Values list; unions emit their members. Each root field becomes an operation concept with its arguments and return type. Fields/operations link to the types they reference under # Relationships. Re-running preserves enriched descriptions.
2. Ingest / sync descriptions
./okf-graphql ingest --schema <schema.graphql> --bundle <bundle-dir> [--sync]- Verifies each concept still exists in the schema (reports drift); the SDL is never
modified.
--sync: writes the bundle's descriptions to.okf-metadata.yamlnext to the SDL.
3. Inspect the schema (self-description)
./okf-graphql schemaPrints the machine-readable JSON description used by okf-mcp to expose the skill.


