graphql

graphql is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 191 tokens per session (2,806 once invoked), scanned A, original, Apache-2.0.

A guide to building GraphQL servers, APIs where clients request the data fields they need. It covers schemas, the code that resolves requests, performance, pagination, errors, splitting services, and query limits.

In plain words
What is it for?
Designing schemas, writing resolvers, fixing N+1 database queries, adding cursor-based pagination, federating schemas, and limiting costly requests.
Why use it?
It helps address common GraphQL problems such as repeated database queries, slow requests, unclear errors, and overly expensive queries.

Skill for Claude CodeCodex

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

Good fit Designing schemas, writing resolvers, fixing N+1 database queries, adding cursor-based pagination, federating schemas, and limiting costly requests.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/graphql/github.svg)](https://agentmods.dev/skills/kouroshez/coding-os/graphql)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/graphql"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/graphql/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/graphql"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/graphql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 191 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,806 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.00191 $0.02806
Opus 5.5 $0.00076 $0.01122
Sonnet 5.5 $0.00038 $0.00561
Haiku 4.5 $0.00019 $0.00281

Measured 1mo ago against content hash 5ca4655f5669, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

graphql 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 1mo 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.

src/core/skills/graphql/SKILL.md · 188 lines

How it starts

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

GraphQL — Schema, Resolvers, Federation, Hardening

A practical guide to running GraphQL in production. Stack-agnostic; concrete patterns reference Apollo Server / graphql-yoga (Node), Strawberry / Ariadne (Python), and gqlgen (Go).

When to Use This Skill

  • Authoring a new GraphQL schema (SDL) or adding types/fields to an existing one.
  • Writing or reviewing resolvers — especially when an endpoint is slow under load.
  • Diagnosing an N+1 query storm (one list query firing hundreds of row fetches).
  • Designing pagination for a GraphQL list field (Relay cursor connections).
  • Splitting a monolith schema into a federated supergraph (Apollo Federation / schema stitching).
  • Hardening a public GraphQL endpoint against deep/expensive queries.
  • Choosing a server library or deciding persisted-queries vs ad-hoc queries.

Skip when: the decision is still "REST or GraphQL" (that is api-design's call), or the transport question is "how do I push live updates over a socket" (that is realtime-websockets).

Boundary — GraphQL vs api-design vs realtime-websockets

Concern Owner
REST vs GraphQL decision, versioning posture, idempotency keys, RFC 9457 HTTP error envelope api-design
SDL type design, resolver architecture, DataLoader, GraphQL errors[] + extensions, federation, persisted queries, depth/cost limits graphql (this skill)
The websocket transport carrying graphql-ws subscription frames, heartbeats, backpressure, reconnect realtime-websockets

api-design decides whether the API is GraphQL and how it errors at the HTTP layer; this skill decides how the GraphQL schema and runtime behave once that choice is made. Subscriptions are defined here (the Subscription type, resolver, event source) but the socket they ride is realtime-websockets' job.

Schema-First — SDL Is the Contract

Author the schema in SDL before writing a resolver. The SDL is the source of truth; codegen produces typed resolver signatures from it, never the reverse.

Read the full file on GitHub · 188 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. 1mo ago First seen · 188 lines · 191 tokens per session scan A 5ca4655f5669

Subscribe to this mod's changes

graphql is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 5d ago), licensed Apache-2.0. It adds 191 tokens to every session and 2,806 once invoked, about $0.0008 per session on Opus 5.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

potpie-repo-baseline

Use when establishing, refreshing, or deeply understanding a repository's baseline memory in Potpie: purpose, application type, features, services/modules, environments, deploy shape, dependencies, API contracts, datastores, integrations, ownership, and explicit preferences. The harness reads authored and…

potpie-ai/potpie · 75 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens

potpie-project-preferences

Use before writing, modifying, reviewing, refactoring, or testing code so repo/project preferences surface: error handling, file structure, frameworks, logging, dependency choices, testing, security, API style, and naming. Also use after code work when a reusable project preference should be recorded.

potpie-ai/potpie · 63 tokens

bi-causal-attribution

A business-analysis skill that links business events in reports, plans, release notes, or conversations with an unusual metric change. It produces and ranks possible causes supported by the available evidence.

agentscope-ai/QwenPaw-Data · 76 tokens

browser-2471a991

An HTTP request builder for assembling a GET request with a host and headers. HTTP is the standard format browsers and servers use to exchange web requests and responses.

FuRongJun-1999/dsh-memory · 90 tokens

browser-e947a564

An HTTP cache pattern using ETags, which are server-provided identifiers for a response version. The browser sends the ETag back to ask whether the resource has changed.

FuRongJun-1999/dsh-memory · 97 tokens