graphql

graphql is a skill for Claude Code, Codex from ndisisnd/cook. It costs 44 tokens per session (1,809 once invoked), scanned A, original, MIT.

A set of standards for designing GraphQL schemas and resolvers, GraphQL being a way for clients to request structured data from a server.

In plain words
What is it for?
Writing or reviewing GraphQL schemas, resolvers, queries, and mutations. It covers field nullability, custom data types, naming, and operation structure.
Why use it?
It helps keep data guarantees accurate, especially around missing values, lists, identifiers, dates, emails, and URLs.

Skill for Claude CodeCodex

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

Good fit Writing or reviewing GraphQL schemas, resolvers, queries, and mutations. It covers field nullability, custom data types, naming, and operation structure.

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

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/ndisisnd/cook/graphql/github.svg)](https://agentmods.dev/skills/ndisisnd/cook/graphql)
Your own site
<a href="https://agentmods.dev/skills/ndisisnd/cook/graphql"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/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/ndisisnd/cook/graphql"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/graphql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,809 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.00044 $0.01809
Opus 5.5 $0.00018 $0.00724
Sonnet 5.5 $0.00009 $0.00362
Haiku 4.5 $0.00004 $0.00181

Measured 1mo ago against content hash f311efcfa68e, 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.

standards/graphql/SKILL.md · 139 lines

How it starts

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

GraphQL Standards

Source: GraphQL Best Practices · Apollo Naming Conventions · GraphQL Schema Design

Priority: P0 — Schema Correctness

Nullability

The GraphQL spec makes every field nullable by default. A wrong ! is not just inaccurate — when a non-null field resolver returns null, GraphQL propagates the null upward through the response tree, wiping out the nearest nullable parent. One bad guarantee can null out an entire object from the client's response (graphql.org).

  • Mark a field non-null (!) only when the server can guarantee it will never be null — not just "usually non-null".
  • Mutation payload root fields (user, order) must be nullable — the mutation may fail and return errors instead of data.
  • List elements and the list itself have separate nullability: [User!]! means a non-null list of non-null users.
  • ID! is always non-null — if you have an ID, it exists.

Scalars & Custom Types

  • Use built-in scalars: String, Int, Float, Boolean, ID.
  • Add custom scalars for domain types: DateTime, Date, URL, EmailAddress, JSON.
  • DON'T use String for dates, emails, or URLs — custom scalars carry semantic meaning, enable server-side validation, and surface intent in generated client types.

See refs/schema-design.md for custom scalar declaration examples.

Mutation Shape

Every mutation must take a single input argument typed as an Input object and return a Payload type — never a naked entity, never Boolean (Apollo).

See refs/schema-design.md for input/payload design rationale and full examples.

Global Object Identification

Implement the Node interface (graphql.org) for any type that clients need to refetch individually. The id field must be globally unique across all types — base64-encode the type and database ID (base64("User:123")), never expose raw database IDs. Without this, Apollo Client and Relay cannot correctly normalise their caches.

Read the full file on GitHub · 139 lines

Files

What ships with it

7 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. 1mo ago First seen · 139 lines · 44 tokens per session scan A f311efcfa68e

Subscribe to this mod's changes

graphql is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 1,809 once invoked, about $0.0002 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

add-matrix

Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.

nanocoai/nanoclaw · 19 tokens

django-storages-s3

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…

Jeffallan/claude-skills · 138 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

websocket-engineer

Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.

Jeffallan/claude-skills · 36 tokens

cognito

AWS Cognito user authentication and authorization service. Use when setting up user pools, configuring identity pools, implementing OAuth flows, managing user attributes, or integrating with social identity providers.

itsmostafa/aws-agent-skills · 38 tokens

sns

AWS SNS notification service for pub/sub messaging. Use when creating topics, managing subscriptions, configuring message filtering, sending notifications, or setting up mobile push.

itsmostafa/aws-agent-skills · 32 tokens