Agent Skills for GraphQL: Where They Help and Fail

Agent Skills GraphQL test comparing a coding agent with and without Skills

Agent Skills GraphQL guidance made a measurable difference in some tests and almost none in others. In a side-by-side comparison, a coding agent with the Apollo Skills collection installed paginated growing lists and deprecated a renamed field every time. Without Skills, it did neither.

The test came from the maintainer of Apollo Skills, an open-source collection, who first ran it on stage at GraphQL Day London. The examples used Claude Code with Sonnet 5.5, and each prompt ran 10 to 15 times per side.

Why valid GraphQL isn’t always good GraphQL

Ask an agent for a product list and it may produce a field that returns a plain array. The schema validates, yet clients have no means of asking for results one page at a time. A resolver that hands back the entire catalog produces ever larger responses, and clients will already rely on a list by the time that hurts.

Schema validation won’t flag that. Neither will operation validation, which only asks whether a query is valid against the schema. A schema is also a contract with clients you don’t control, since an app installed last year can still send last year’s queries.

What a Skill is

Agent Skills is an open format that sits under the Agentic AI Foundation, a Linux Foundation project, as does the GraphQL Foundation. A Skill is a folder with a SKILL.md file holding a name, a description and instructions. The agent reads only names and descriptions at first, and loads the full instructions when a task matches. The format also allows scripts, reference files and templates.

The graphql-schema Skill in Apollo Skills carries rules that tell the agent to paginate any list that may grow unbounded, to deprecate before breaking compatibility, and to give every new required argument or input field a default.

Two tests where Skills won

The test project was a small online shop with products, customers and orders, and one client operation, GetProduct, which selects a product’s title. One copy of the project had the whole Apollo Skills collection and the other had none.

The first prompt asked for a catalog page that shows every product. Without Skills, the agent added a plain products list every time. With Skills installed, every run produced a connection type, complete with a first argument defaulting to 20, an after cursor and documented pageInfo. Pagination is then built into the API from the start. Swapping a list field for a connection later breaks queries that select product fields directly. The schema is only the interface, so cursor logic and a maximum page size remain the server’s job.

The second prompt renamed a product’s title to name. Without Skills, every run simply swapped the field. The existing GetProduct query then stopped validating (the error reads Cannot query field “title” on type “Product”), and GraphQL Inspector flagged one breaking change. With Skills, the old field stayed in place with a deprecation reason, and Inspector reported nothing breaking. Renaming in GraphQL means adding the new field and deprecating the old one.

The model didn’t get smarter. It received the background knowledge a seasoned GraphQL developer would carry. Because the whole collection was compared against nothing, the results don’t show which single instruction made the difference.

Where Skills didn’t help

Other schema and operation tasks, run fewer times and on other Claude models, showed smaller effects. Where a project already contained operations, the agent mimicked their style even with no Skill. A blog schema with no existing operations to copy was different: the agent handled a mutation’s input in two different ways, and without Skills it chose separate variables on each run.

How to use Skills for your own API

Skills fit best where your team has conventions the agent can’t infer from the code, such as pagination defaults or deprecation policy. They fit less well when the codebase already shows the pattern. Teams can start from existing Skills and add their own rules, treating the folder like onboarding documentation for a new hire who forgets everything each Monday.

The wider point is that Agent Skills GraphQL support won’t replace review. Run a schema checker such as GraphQL Inspector on agent output, and keep testing with several runs, because agent results vary between runs.

Source: GraphQL

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.