graphql-review

graphql-review is a skill for Claude Code from camilooscargbaptista/cto-toolkit. It costs 92 tokens per session (1,041 once invoked), scanned A, original, MIT.

A review guide for GraphQL APIs, which let clients request structured data from a server. It checks schemas, resolver code, and settings for design, security, speed, and maintainability.

In plain words
What is it for?
Reviewing GraphQL schemas, resolvers, authentication, authorization, federation, subscriptions, pagination, and query-complexity limits.
Why use it?
It helps find unclear API designs, repeated database queries, weak access controls, and abuse risks before they affect users or clients.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the cto-toolkit plugin — 54 skills, 6 agents, 3 hooks shipped together

Good fit Reviewing GraphQL schemas, resolvers, authentication, authorization, federation, subscriptions, pagination, and query-complexity limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/camilooscargbaptista/cto-toolkit/graphql-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add camilooscargbaptista/cto-toolkit --skill graphql-review
Clone the repo
git clone --depth 1 https://github.com/camilooscargbaptista/cto-toolkit

Made for: Claude Code.

Or install cto-toolkit, the plugin that ships this one along with the rest of its 54 skills, 6 agents, 3 hooks.

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-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/graphql-review/github.svg)](https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/graphql-review)
Your own site
<a href="https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/graphql-review"><img src="https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/graphql-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graphql-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/camilooscargbaptista/cto-toolkit/graphql-review"><img src="https://agentmods.dev/badge/skills/camilooscargbaptista/cto-toolkit/graphql-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,041 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.00092 $0.01041
Opus 5 $0.00046 $0.00521
Sonnet 5 $0.00018 $0.00208
Haiku 4.5 $0.00009 $0.00104

Measured 9d ago against content hash 50d133e4ea01, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

graphql-review 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 9d 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.

graphql-review/SKILL.md · 146 lines

How it starts

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

GraphQL Design & Security Review

You are a senior GraphQL architect. You've built federated GraphQL gateways serving millions of queries, prevented abuse through query complexity analysis, and designed schemas that evolve without breaking clients.

Directive: Read ../quality-standard/SKILL.md before producing output.

Review Framework

1. Schema Design

Check for:

  • Consistent naming: camelCase for fields, PascalCase for types
  • Nullable by default, ! (non-null) only when guaranteed
  • Pagination with Connection pattern (Relay cursor-based, not offset)
  • Input types for mutations (input CreateUserInput)
  • Enum types for fixed sets (not magic strings)
  • Descriptions on all types and fields (self-documenting API)
  • No "God types" — keep types focused and cohesive
  • Proper use of interfaces and unions for polymorphism
❌ Bad schema:
type Query {
  getUser(id: ID): User           # "get" prefix redundant
  getAllUsers(page: Int): [User]   # Offset pagination, no connection
}

✅ Good schema:
type Query {
  user(id: ID!): User
  users(first: Int!, after: String): UserConnection!
}

2. N+1 Query Prevention

Check for:

  • DataLoader used for batch loading related entities
  • No database queries inside resolver functions without batching
  • @defer and @stream for large responses
  • Query plan analysis available for debugging
❌ N+1 problem:
// Resolver for User.posts — called once PER user in the list
resolve: (user) => db.posts.findByUserId(user.id)  // 100 users = 100 queries

✅ DataLoader:
const postLoader = new DataLoader(userIds =>
  db.posts.findByUserIds(userIds)  // 100 users = 1 query
);
resolve: (user) => postLoader.load(user.id)

3. Security

Critical checks:

  • Query depth limiting (prevent deeply nested queries)
  • Query complexity analysis (cost-based, not just depth)
  • Rate limiting per client/operation
  • Introspection disabled in production
  • Field-level authorization (not just type-level)
  • No sensitive data exposed through error messages
  • Persisted queries for production (whitelist known queries)
  • Input validation on all mutation arguments
  • CSRF protection for mutations

Read the full file on GitHub · 146 lines

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. 9d ago First seen · 146 lines · 92 tokens per session scan A 50d133e4ea01

Subscribe to this mod's changes

graphql-review is a skill published in the GitHub repository camilooscargbaptista/cto-toolkit (7 stars, last pushed 5mo ago), licensed MIT. It adds 92 tokens to every session and 1,041 once invoked, about $0.0005 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

graphql-api-development

AI-powered GraphQL API design, implementation, and optimization. Covers schema-first design, resolver architecture, query optimization with DataLoader for N+1 prevention, mutation patterns with idempotency, real-time subscriptions, Apollo Federation for distributed graphs, security hardening (depth limiting, rate…

JPeetz/agent-skills · 183 tokens

graphql-expert

Expert-level GraphQL API development with schema design, resolvers, and subscriptions. Use when the user mentions API, apollo, schema, resolvers, subscriptions, or relay, or when the task involves Schema Design, Queries and Mutations, Apollo Server 4, or DataLoader for N+1 Prevention.

personamanagmentlayer/pcl · 67 tokens

graphql-apis

Operational skill for GraphQL APIs: schema-first design, resolvers, N+1 prevention, authz in the graph, and client query discipline.

alivirgo/Major-AI-Skills · 34 tokens

graphql-docs

Use this skill whenever the user asks about GraphQL, query languages for APIs, schema design, types, resolvers, mutations, subscriptions, introspection, pagination, federation, or API best practices. Covers the full GraphQL specification including schemas and types, queries, mutations, subscriptions, validation…

pledgeandgrow/pledge-skills · 119 tokens

GraphQL Contract Testing

Contract testing for GraphQL APIs including schema breaking change detection, query compatibility testing, and federated schema validation.

PramodDutta/qaskills · 27 tokens

graphql-api-development

Comprehensive guide for building GraphQL APIs including schema design, queries, mutations, subscriptions, resolvers, type system, error handling, authentication, authorization, caching strategies, and production best practices.

manutej/luxor-claude-marketplace · 42 tokens