graphql-testing

graphql-testing is a skill for Claude Code from aks-builds/quality-skills. It costs 117 tokens per session (2,432 once invoked), scanned A, original, MIT.

A guide for testing GraphQL APIs, a system where clients request specific data through queries and change data through mutations. It covers queries, mutations, subscriptions, schemas, resolvers, clients, and schema changes.

In plain words
What is it for?
Use it to design or debug tests for GraphQL servers and clients, schema compatibility, resolvers, subscriptions, fragments, introspection, persisted queries, and generated operations.
Why use it?
It helps catch GraphQL-specific problems that ordinary REST-style tests may miss, including partial errors, unsafe query depth, schema breakage, and repeated database requests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { app } from '../src/app';.

Part of the quality-skills plugin — 57 skills shipped together

Good fit Use it to design or debug tests for GraphQL servers and clients, schema compatibility, resolvers, subscriptions, fragments, introspection, persisted queries, and generated operations.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aks-builds/quality-skills
agentmods
npx agentmods add skills/aks-builds/quality-skills/graphql-testing

Made for: Claude Code.

Or install quality-skills, the plugin that ships this one along with the rest of its 57 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for graphql-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/aks-builds/quality-skills/graphql-testing.svg)](https://agentmods.dev/skills/aks-builds/quality-skills/graphql-testing)
Your own site
<a href="https://agentmods.dev/skills/aks-builds/quality-skills/graphql-testing"><img src="https://agentmods.dev/badge/skills/aks-builds/quality-skills/graphql-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.02432
Opus 5 $0.00059 $0.01216
Sonnet 5 $0.00023 $0.00486
Haiku 4.5 $0.00012 $0.00243

Measured 7d ago against content hash 3bd8ac1e1303, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

graphql-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/graphql-testing/SKILL.md · 229 lines

How it starts

The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GraphQL Testing

You are an expert in testing GraphQL APIs — queries, mutations, subscriptions, schemas, resolvers, and client integrations. Your goal is to help engineers cover GraphQL-specific concerns (schema evolution, query depth, N+1 patterns, partial errors) that REST-shaped testing tends to miss. Don't fabricate GraphQL spec features, library APIs, or codegen flags. When uncertain, point the reader to graphql.org, the relevant server library docs (Apollo, GraphQL Yoga, Hasura, etc.), or the client library docs.

Initial Assessment

Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:

  • GraphQL server — Apollo Server, GraphQL Yoga, Mercurius, graphql-ruby, Hasura, AppSync, Strawberry (Python). Testing patterns differ between code-first and schema-first servers, and between self-hosted and managed (Hasura/AppSync).
  • GraphQL clients — Apollo Client, urql, Relay, plain fetch. Each has its own caching, fragments, and persisted-query story that affects testing.
  • Schema source — schema files in the repo (SDL), code-first generation, or remote introspection.
  • Persisted queries / APQ — affects client testing and security.
  • Subscriptions — Server-Sent Events or WebSocket; subscriptions are notoriously underspecified by clients.

If the file does not exist, ask: server, client, code-first or schema-first, are persisted queries used, are subscriptions in scope.


What's different about GraphQL testing

REST GraphQL
One URL per resource One endpoint per service
HTTP verbs map to actions All requests are POST (typically)
Status codes signal failure 200 OK with errors array in body
Easy to point at a single endpoint Tests must build queries
Field-level changes obvious Field deprecation requires schema diff
N+1 a backend-only concern Tests can detect via query plan / dataloader
Schema = OpenAPI (separate doc) Schema = first-class artifact

Read the full file on GitHub · 229 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 229 lines · 117 tokens per session scan A 3bd8ac1e1303

Subscribe to this mod's changes

graphql-testing is a skill published in the GitHub repository aks-builds/quality-skills (2 stars, last pushed 3d ago), licensed MIT. It adds 117 tokens to every session and 2,432 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

test-case-writer

Use when someone asks to generate test cases, write test cases from a user story, create test cases from a BRD, design test cases from a mockup or wireframe, or produce a test case table from requirements.

ukkuru/testmetry-skills · 50 tokens

api-testing

API testing checks a software service directly through its endpoints, using OpenAPI or Swagger documentation or automated test cases. It can produce and run scripts that test requests and responses.

fishzjp/qa-skills · 117 tokens

automated-e2e-testing

A workflow for turning manual web-app test cases into Playwright end-to-end tests and running them. End-to-end tests check a complete user flow through the website.

fishzjp/qa-skills · 100 tokens

test-strategy

A method for deciding how a feature should be tested by turning risks into testing scope, depth, and priorities. TDD, or test-driven development, is not the focus here; this works at the system level through UI, API, manual, and specialist testing.

fishzjp/qa-skills · 103 tokens

regression-testing

A workflow for deciding which existing tests should run after a code change. Regression testing checks that a change has not broken features that already worked.

fishzjp/qa-skills · 98 tokens

exploratory-testing

A method for exploratory testing, where a tester learns an unfamiliar system while looking for risks instead of following only predefined test cases. It produces structured notes about the system, risks, test ideas, bugs, and unanswered questions.

fishzjp/qa-skills · 115 tokens