graphql-schema-designer

graphql-schema-designer is a skill for Claude Code, Codex from codebygarv/Ai-skills. It costs 26 tokens per session (347 once invoked), scanned A, original, MIT.

A design guide for GraphQL schemas, which define the data types and operations an API exposes. It covers naming, input checks, pagination, error responses, and preventing repeated database queries.

In plain words
What is it for?
Use it to design or refactor GraphQL types, queries, and mutations, add Relay-style cursor pagination, specify DataLoader batching, and document example requests.
Why use it?
It helps an API remain understandable and efficient as it grows, especially when nested data could cause many unnecessary database requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design or refactor GraphQL types, queries, and mutations, add…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codebygarv/ai-skills/graphql-schema-designer
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 codebygarv/Ai-skills --skill graphql-schema-designer
Clone the repo
git clone --depth 1 https://github.com/codebygarv/Ai-skills

Made for: Claude Code, Codex.

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-schema-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/codebygarv/ai-skills/graphql-schema-designer.svg)](https://agentmods.dev/skills/codebygarv/ai-skills/graphql-schema-designer)
Your own site
<a href="https://agentmods.dev/skills/codebygarv/ai-skills/graphql-schema-designer"><img src="https://agentmods.dev/badge/skills/codebygarv/ai-skills/graphql-schema-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 347 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.00026 $0.00347
Opus 5 $0.00013 $0.00173
Sonnet 5 $0.00005 $0.00069
Haiku 4.5 $0.00003 $0.00035

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

Security

Grade A, and why

graphql-schema-designer 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/development/graphql-schema-designer/SKILL.md · 35 lines

What it actually says

Purpose

Design clean, evolvable, and performant GraphQL schemas following best practices for naming, mutations, connection pagination, error modeling, and batch resolution (DataLoader).

When to Use

  • Designing new GraphQL types, queries, and mutations.
  • Refactoring sprawling, unprincipled GraphQL schemas.
  • Preventing N+1 database queries and performance bottlenecks in nested resolvers.

What to Analyze

  1. Schema Design & Naming: Verb-noun conventions for mutations, scalar types, and deprecation strategies.
  2. Pagination Pattern: Relay Cursor Connections (first, after, edges, node, pageInfo).
  3. Mutation Design: Single input object argument (input: DoSomethingInput!), and return payload with errors union.
  4. N+1 Resolver Prevention: DataLoader batching strategies for related entity fields.
  5. Security & Complexity: Query depth limits and field complexity calculations.

Output Format

  • Schema Definition Language (SDL): Complete .graphql types, inputs, and payloads.
  • DataLoader Specification: Batching pattern needed for nested resolvers.
  • Usage Example: Sample query/mutation with expected JSON response.
  • Evolution Guide: How to safely deprecate and extend fields without breaking existing mobile/web clients.

Avoid

  • Mirroring database tables 1:1 into GraphQL types without domain abstraction.
  • Using offset-based pagination in public or high-throughput GraphQL APIs.
Files

What ships with it

2 files 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 · 35 lines · 26 tokens per session scan A 0cf8cb9295af

Subscribe to this mod's changes

graphql-schema-designer is a skill published in the GitHub repository codebygarv/Ai-skills (25 stars, last pushed 17d ago), licensed MIT. It adds 26 tokens to every session and 347 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

bun-api

Bun runtime API reference for TypeScript scripts. Covers Bun.serve() HTTP/HTTP/2 server with routes and WebSockets, fetch() transport options, Bun.file(), Bun.write(), Bun.$() shell, Bun.spawn(), Bun.Glob, Bun.env, bun:sqlite, Bun.sql() for PostgreSQL/MySQL via DATABASEURL, Bun.s3 for S3-compatible storage, Bun.redis…

dmythro/agent-skills · 250 tokens

kafka-event-driven-design

Kafka event-driven architecture designer and reviewer, at the application/client layer. ALWAYS use when designing, reviewing, or troubleshooting how a service produces or consumes Kafka events — topic and partition-key design, producer and consumer client configuration, consumer group topology, event schema definition…

johnqtcg/awesome-skills · 191 tokens

api-design

REST API contract designer and reviewer. ALWAYS use when designing new endpoints, reviewing existing API contracts, planning API versioning, or standardizing error models. Covers resource modeling (URL/naming), HTTP method semantics, status code selection, error model consistency, pagination/filtering/sorting…

johnqtcg/awesome-skills · 123 tokens

bun-cli

Bun CLI reference for package management, script running, testing, bundling, and compilation. Covers bun install/add/remove/update, bun run, bun test, bun build, bunx, bun patch, bun audit fix, bun dedupe, bun prune, bun why, bun pm, bun repl, bunfig.toml, bun.lock, workspace catalogs, isolated installs and the global…

dmythro/agent-skills · 179 tokens

thirdparty-api-integration-test

Create and run gated Go integration tests for third-party APIs with real external calls, strict configuration gates, bounded timeouts, and safe runtime controls. Use for vendor/client contract verification and failure triage.

johnqtcg/awesome-skills · 47 tokens

deps-upgrade

Validate JavaScript/TypeScript dependency upgrades after an interactive or manual update. Establish the real delta from git, detect peer/engine/type conflicts, extract breaking changes, migrations and adoptable features from release notes, assess held-back or seemingly unused packages, and run verification gates.…

dmythro/agent-skills · 134 tokens