Codex skills for GraphQL
GraphQL skills cover schema design, resolvers and DataLoader, Apollo Federation 2 and breaking-change checks, plus the GraphQL APIs of GitHub, Linear and Shopify. Codex counts SQL queries per operation before batching, keeps authorization in the service layer so nested paths cannot skip it, and runs GraphQL Inspector or rover subgraph checks before a schema change ships.
Start with these 3
- GraphQL Schema Design Nullability, connections and typed errors on purpose With this skill Codex designs GraphQL types from the queries clients actually send, applies a nullability default table instead of sprinkling exclamation marks, paginates growing lists with connections, gives each mutation its own input, payload and error union, and runs GraphQL Inspector to catch breaking changes before they reach mobile clients that cannot update.
- GraphQL Federation One owner per field across every subgraph Codex maps who owns each field in your supergraph, then adds entities and subgraphs with the right Federation 2 directives, batched __resolveReference lookups and nullable cross-subgraph fields. It composes locally with Rover, reads the query plan for extra hops, runs subgraph checks before publishing, and moves field ownership with @override instead of risky big-bang cutovers.
- GraphQL Resolvers Constant query counts and auth on every path Codex measures SQL queries per GraphQL operation, then routes relation fields through per-request DataLoaders that respect the batch contract, including grouped and parameterised loaders. Authorization moves into the service and loader layer so nested paths and node lookups cannot bypass it, expensive queries are rejected by depth and cost limits, and tests assert the query count stays constant as lists grow.
6 more GraphQL skills
-
Shopify Apps
Admin GraphQL, verified webhooks, safe deploys -
API Security Testing
Prove BOLA with two tokens -
API Design Review
Catch contract mistakes before the first client -
GitHub API with Octokit
Paginate to the end, stay under every rate limit -
Linear API
Sync issues into Linear without duplicates or loops -
The Graph Subgraphs
Index contract events into queries that stay fast
General skills with GraphQL guidance
Not built around GraphQL, but they include steps or tools for it. Not part of the install-all command.
-
Review Feedback Response
Close every thread, open no new ones -
N+1 Query Fixes
Constant query counts, whatever the page size -
Contract Testing
Catch cross-service breakage before either side deploys -
API Mocking with MSW
Mock the network, not your fetch client -
API Gateway Patterns
A thin edge that never turns into a monolith
Every GraphQL skill in one command
Installs these 9 into ~/.agents/skills/. Add --project after -- to install into the current repository instead.
The installer is a 104-line POSIX shell script. It fetches the skills you name from codexskills.dev and unpacks each into its own folder in your skills directory. No sudo, no telemetry, and every skill page shows the full SKILL.md first. Read install.sh
curl -fsSL codexskills.dev/install.sh | sh -s -- graphql-schema-design graphql-federation graphql-resolvers shopify-apps api-security-testing api-design-review github-api linear-api thegraph-subgraphs GraphQL FAQ
Is there a Codex skill for fixing GraphQL N+1 queries?
GraphQL Resolvers measures SQL queries per GraphQL operation, then routes relation fields through per-request DataLoaders, including grouped and parameterised loaders. It never creates loaders at module level, which would cache one user's authorized data and serve it to the next. Tests assert that the query count stays constant as lists grow, and expensive queries are rejected by depth and cost limits.
Do these skills cover Apollo Federation 2?
GraphQL Federation adds entities and subgraphs with Federation 2 directives such as @key, @shareable, @requires and @override, using batched __resolveReference lookups. It composes locally with rover supergraph compose, reads the query plan for extra hops and runs subgraph checks before publishing. Fields contributed by another subgraph stay nullable so one subgraph outage does not fail every query.
How does Codex change a GraphQL schema without breaking mobile clients?
GraphQL Schema Design applies a nullability default table instead of marking fields non-null by habit, paginates growing lists with connections and gives each mutation its own input, payload and error union. It runs GraphQL Inspector to catch breaking changes before they reach clients that cannot update. API Design Review uses the same diffing as part of a contract review.
How do I install all 9 GraphQL skills at once?
Pass every name to the installer in one command: curl -fsSL https://codexskills.dev/install.sh | sh -s -- graphql-schema-design graphql-federation graphql-resolvers shopify-apps api-security-testing api-design-review github-api linear-api thegraph-subgraphs. Add --project right after -- to put them in the current repository's .agents/skills/ so your team gets them too.
Which GraphQL skill should I try first?
GraphQL Schema Design is the closest fit for most GraphQL work. Mention it with $graphql-schema-design in a prompt to load it on purpose; after that, Codex picks it up on its own whenever a task matches.