graphql-schema

graphql-schema is a skill for Claude Code from clidey/whodb. It costs 116 tokens per session (1,144 once invoked), scanned A, original, Apache-2.0.

A guide for designing and changing GraphQL schemas, which describe the data and operations an API exposes. It covers types, fields, arguments, descriptions, null values, and changes that preserve existing clients.

In plain words
What is it for?
Use it when adding or editing GraphQL types, fields, arguments, mutations, descriptions, or schema files.
Why use it?
It helps prevent confusing APIs and breaking changes, such as making a new field required when older clients do not send it. It also keeps the schema focused on what clients need rather than on database tables.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding or editing GraphQL types, fields, arguments, mutations, descriptions, or schema files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/clidey/whodb/graphql-schema
About the project

WhoDB is a self-hosted workspace for exploring and managing databases through a browser, desktop app, or terminal interface. Developers and data teams use it to browse and edit data, run queries, inspect table relationships, move data, and optionally ask questions through an AI provider. The catalogue includes add-ons for operating WhoDB and working with its database tools.

clidey/whodb · 5,043 stars · on GitHub · whodb.com

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 clidey/whodb --skill graphql-schema
Clone the repo
git clone --depth 1 https://github.com/clidey/whodb

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/clidey/whodb/graphql-schema"><img src="https://agentmods.dev/badge/skills/clidey/whodb/graphql-schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,144 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.00116 $0.01144
Opus 5.5 $0.00046 $0.00458
Sonnet 5.5 $0.00023 $0.00229
Haiku 4.5 $0.00012 $0.00114

Measured today against content hash d9b1ec9092dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

graphql-schema 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 today.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/graphql-schema/SKILL.md · 178 lines

How it starts

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

GraphQL Schema Design Guide

This guide covers best practices for designing GraphQL schemas that are intuitive, performant, and maintainable. Schema design is primarily a server-side concern that directly impacts API usability.

Schema Design Principles

1. Design for Client Needs

  • Think about what queries clients will write
  • Organize types around use cases, not database tables
  • Expose capabilities, not implementation details

2. Be Explicit

  • Use clear, descriptive names
  • Make nullability intentional
  • Document with descriptions

3. Design for Evolution

  • Plan for backwards compatibility
  • Use deprecation before removal
  • Avoid breaking changes
  • Give every new argument or input field a default value, or make it nullable. Existing clients don't send it, so a required field without a default makes their requests fail validation.

Quick Reference

Type Definition Syntax

"""
A user in the system.
"""
type User {
  id: ID!
  email: String!
  name: String
  posts(first: Int = 10, after: String): PostConnection!
  createdAt: DateTime!
}

Nullability Rules

Pattern Meaning
String Nullable - may be null
String! Non-null - always has value
[String] Nullable list, nullable items
[String!] Nullable list, non-null items
[String]! Non-null list, nullable items
[String!]! Non-null list, non-null items

Best Practice: Use [Type!]! for lists - empty list over null, no null items.

Input vs Output Types

# Output type - what clients receive
type User {
  id: ID!
  email: String!
  createdAt: DateTime!
}

# Input type - what clients send
input CreateUserInput {
  email: String!
  name: String
}

# Mutation using input type
type Mutation {
  createUser(input: CreateUserInput!): User!
}

Interface Pattern

interface Node {
  id: ID!
}

type User implements Node {
  id: ID!
  email: String!
}

type Post implements Node {
  id: ID!
  title: String!
}

Read the full file on GitHub · 178 lines

Files

What ships with it

5 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. today First seen · 178 lines · 116 tokens per session scan A d9b1ec9092dc

Subscribe to this mod's changes

graphql-schema is a skill published in the GitHub repository clidey/whodb (5,043 stars, last pushed today), licensed Apache-2.0. It adds 116 tokens to every session and 1,144 once invoked, about $0.0005 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-10-28.