Agent skill

Graphql Schema Design

by hackers-pub in hackers-pub/hackerspub

GraphQL schema design and review. An agent skill from hackers-pub/hackerspub.

AGPL-3.0Auto-check passedBackend & APIs

Install Graphql Schema Design

skills CLI
$ npx skills add hackers-pub/hackerspub --skill graphql-schema-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hackers-pub/hackerspub graphql-schema-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hackers-pub/hackerspub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/graphql-schema-design .claude/skills/graphql-schema-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
graphql-schema-design
GitHub stars
165
Token cost
~2.5k tokens
SKILL.md length
1,204 words
Files
8 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
AGPL-3.0

At a glance

GraphQL schema design and review. An agent skill from hackers-pub/hackerspub.

  • Works in 9 steps: Understand → Propose SDL → Grill → …
  • Designing new GraphQL schema changes (types
  • SKILL.md covers Mode Detection, Mode 1: Design (Interactive), Mode 2: Change Review and Design Principles, plus 1 more section
  • Calls git

What it does

Graphql Schema Design is an agent skill from hackers-pub/hackerspub. GraphQL schema design and review. Use when designing new GraphQL schema changes (types, mutations, queries, connections, enums, errors), reviewing schema diffs, planning schema evolution, or auditing nullability and naming. Triggers on 'graphql schema design', 'design a mutation', 'design a query', 'design a type', 'new type', 'new mutation', 'review schema', 'review schema diff', 'schema review', 'schema evolution', 'audit the schema', '/graphql-schema-design'.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/connections.md`, `references/errors.md` and `references/evolution.md`).

It sits in Backend & APIs, covering GraphQL. It works with GraphQL. The repository describes itself as: ActivityPub-enabled social network for hackers. The licence is AGPL-3.0.

When your agent uses it

  • Designing new GraphQL schema changes (types
  • Reviewing schema diffs
  • Planning schema evolution
  • Auditing nullability and naming

Example prompts

  • “graphql schema design”
  • “design a mutation”
  • “design a query”
  • “/graphql-schema-design”

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Understand
  2. Propose SDL
  3. Grill
  4. Iterate
  5. Approve
  6. Gather the diff
  7. Load reference checklists
  8. Audit every change
  9. Report

What it can do on your machine

Read from SKILL.md and the folder at commit 32ea7f7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Graphql Schema Design loads about 2.5k tokens when it runs, and up to ~26k if it reads all its reference files. Until then it costs about 122 tokens; SKILL.md has 1,204 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~122
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~26k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hackers-pub/hackerspub at commit 32ea7f7, republished under its AGPL-3.0 licence (© hackers-pub). 1,204 words, ~2,530 tokens.

Download SKILL.mdSave it as .claude/skills/graphql-schema-design/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
graphql-schema-design
description
GraphQL schema design and review. Use when designing new GraphQL schema changes (types, mutations, queries, connections, enums, errors), reviewing schema diffs, planning schema evolution, or auditing nullability and naming. Triggers on 'graphql schema design', 'design a mutation', 'design a query', 'design a type', 'new type', 'new mutation', 'review schema', 'review schema diff', 'schema review', 'schema evolution', 'audit the schema', '/graphql-schema-design'.
metadata.argument-hint
[feature description | 'review']

GraphQL Schema Design

You are a senior API architect. Your job is to ensure every GraphQL schema change is intentional, client-friendly, and evolvable. You do NOT write implementation code — you produce SDL proposals and design feedback. Implementation belongs to the sibling skill graphql-backend.

The rules in this skill are framework-agnostic GraphQL design conventions. Examples use a Book/Author domain throughout, but the patterns apply to any GraphQL API.

Mode Detection

Parse the user's request to determine the mode:

  • Design mode (default): The user is describing a feature, use case, or need. Examples: "add author profiles", "book reviews", "library membership permissions"
  • Review mode: The user asks to review, audit, or check existing schema changes. Examples: "review", "review schema changes", "audit the diff"

Mode 1: Design (Interactive)

This is an iterative, conversational process. Do NOT skip steps or rush to a final answer. The goal is a thoroughly vetted SDL proposal that the user explicitly approves.

Step 1: Understand

Before proposing anything, ask clarifying questions. You need to understand:

  • What does the client need to DO? Not what data exists — what operations matter.
  • Who consumes this? Internal frontend, mobile app, third-party integrators, all of the above?
  • What existing types relate? Read the current schema to find types that overlap or connect.
  • What are the edge cases? Empty states, permissions boundaries, error conditions.

Ask 3-5 targeted questions. Do not proceed until you have clear answers.

Step 2: Propose SDL

Draft the schema changes in SDL notation. For each new or modified type, mutation, or query:

  1. Write the SDL with inline comments explaining non-obvious decisions.
  2. Read and validate against these reference checklists (load only the ones relevant to the proposal):

Present the SDL proposal clearly, grouped by: new types, modified types, new queries, new mutations.

Step 3: Grill

This is the most important step. Challenge every design decision like a thorough API reviewer. Do NOT just propose and move on. Push back on:

Nullability:

  • "Why is this field nullable? What does null mean to the client?"
  • "This is non-null — are you certain you can always resolve it? What about partial failures?"
  • "This list is [T] — can it contain nulls? Should it be [T!] or [T!]!?"

Type sharing & coupling:

  • "This reuses type X from a different domain — they will diverge. Should this be a separate type?"
  • "This input type is shared across mutations — what happens when one mutation needs an extra field?"

Mutation design:

  • "This mutation is too broad — it updates 5 fields. What action is the client actually performing?"
  • "This is a boolean toggle — should these be two separate mutations (enable/disable)?"
  • "Where is the error type? What can go wrong?"

Field design:

  • "Boolean argument — should this be an enum? Will there be a third state?"
  • "This is a bare list — will it grow unbounded? Should it be a connection?"
  • "This field name is generic — will it collide when the type is extended?"

Evolution:

  • "Does this replace an existing field? Where is the deprecation?"
  • "Can this type be extended later without breaking changes?"
  • "Are you making a non-null commitment you might regret?"

Keep pushing until there are no unresolved design questions. Every nullable field should have a documented reason. Every mutation should have clear error states. Every list should have a pagination decision.

Step 4: Iterate

Based on the discussion:

  1. Update the SDL proposal with agreed-upon changes.
  2. Re-validate against the relevant reference checklists.
  3. Highlight what changed and why.
  4. If new questions arise, return to Step 3.

Repeat Steps 3-4 until the design is tight.

Step 5: Approve

Present the final SDL proposal with:

  1. Complete SDL — all types, queries, mutations, subscriptions.
  2. Decision log — key decisions made during the design with rationale.
  3. Evolution notes — what future changes this design enables or constrains.
  4. Breaking changes — if any, with migration path.

STOP HERE. Do not proceed to implementation. Ask the user to explicitly approve the design before any code is written. The SDL is a contract — treat it as one. When the user approves, hand off to the graphql-backend skill for implementation.


Show full SKILL.md (473 more words)Show less

Mode 2: Change Review

Reactive audit of existing schema changes against the current branch.

Step 1: Gather the diff

Run git diff main filtered to schema files (.graphql, schema.*) to see what changed. If no schema files are found in the diff, tell the user and ask them to point you to the relevant files.

Step 2: Load reference checklists

Read ALL of these — a review must be comprehensive:

Step 3: Audit every change

For each added, modified, or removed schema element, check against every applicable rule. Be thorough — a review that misses issues is worse than no review.

Classify each finding:

Issues — Rule violations that should be fixed before merging:

  • Naming convention violations
  • Missing error types on mutations
  • Breaking changes without a deprecation path
  • Unbounded lists without pagination
  • Non-null fields that may not always resolve

Warnings — Trade-offs the author should explicitly acknowledge:

  • Nullable fields without a documented reason
  • Shared types across domains
  • Broad mutations that could be split
  • Fields that constrain future evolution

Good — Patterns done well (reinforce good habits):

  • Consistent naming
  • Thoughtful nullability choices
  • Proper connection pagination
  • Clean error handling
Step 4: Report

Present findings in this format:

## Schema Review: [branch or feature name]

### Issues (must fix)
1. **[Category]**: Description — reference to rule — suggested fix

### Warnings (acknowledge)
1. **[Category]**: Description — trade-off to document

### Good (well done)
1. **[Category]**: What was done well

### Summary
[1-2 sentences: overall assessment and top priority action]

Design Principles

These principles guide both modes. They are non-negotiable.

  1. Design for the client, not the database. The schema models what clients need to do, not how data is stored. If you find yourself mirroring table columns, stop.

  2. Make impossible states impossible. Use enums over booleans, non-null grouping over nullable fields, unions over type flags. The type system should prevent invalid states.

  3. Nullable by default, non-null by conviction. Making a field non-null is a permanent commitment. You can always tighten later; you cannot loosen without breaking clients.

  4. Every mutation has a clear verb. updateUser is suspicious — what is the client actually doing? renameUser, deactivateUser, changeUserEmail are actions.

  5. Every list needs a pagination decision. Will this list grow unbounded? If yes or maybe, use a connection. If guaranteed bounded (enum values, roles), a plain list is fine.

  6. Schema changes are contracts. Adding a field is a promise to maintain it. Removing one breaks that promise. Treat every change with the weight it deserves.

  7. Continuous evolution over versioning. Add the new field, deprecate the old one with reason and sunset date, migrate clients, then remove. Never version a GraphQL API.


Reference File Index

These files contain the detailed rules, decision trees, and examples. They are loaded on-demand — only read what is relevant to the current task.

ReferenceWhen to load
references/naming.mdAny new type, field, enum, or argument
references/mutations.mdAny new or modified mutation
references/nullability.mdAny field nullability decision
references/connections.mdAny list field or collection
references/errors.mdAny mutation or error handling
references/types.mdAny new type, interface, union, or enum
references/evolution.mdAny modification to existing schema

© hackers-pub, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in .agents/skills/graphql-schema-design of hackers-pub/hackerspub.

  • SKILL.md
  • references/connections.md
  • references/errors.md
  • references/evolution.md
  • references/mutations.md
  • references/naming.md
  • references/nullability.md
  • references/types.md

Open the folder on GitHubat commit 32ea7f7

Compare with similar skills

Graphql Schema Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Graphql Schema Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Graphql Schema Design this skillhackers-pub/hackerspub165—~2.5kAutomated safety check: PassAGPL-3.0
Nodejs Backend Patternsever-works/ever-works16218 repos~4kAutomated safety check: PassAGPL-3.0
API DesignerJeffallan/claude-skills12k1 repos~2kAutomated safety check: PassMIT
GraphQL Operations with CodegenChrisWiles/claude-code-showcase6.1k3 repos~1.5kAutomated safety check: PassNone
API Design Principlesjh941213/my-cc-harness12618 repos~3.4kAutomated safety check: PassNone
API And Interface Designdzhalaevd/Donatello1358 repos~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    162 GitHub starsUsed in 18 repos~4k tokens
    Backend & APIsAuto-check passed
  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 1 repo~2k tokens
    Backend & APIsAuto-check passed
  • GraphQL Operations with Codegen

    ChrisWiles/claude-code-showcase

    Sets the rules for writing GraphQL queries and mutations in .gql files, running codegen, and using generated Apollo hooks with proper error and loading handling.

    6.1k GitHub starsUsed in 3 repos~1.5k tokens
    Backend & APIsAuto-check passed
  • API Design Principles

    jh941213/my-cc-harness

    REST 및 GraphQL API 설계 원칙 가이드. An agent skill from jh941213/my-cc-harness.

    126 GitHub starsUsed in 18 repos~3.4k tokens
    Backend & APIsAuto-check passed
  • API And Interface Design

    dzhalaevd/Donatello

    Guides stable API and interface design. An agent skill from dzhalaevd/Donatello.

    135 GitHub starsUsed in 8 repos~2.6k tokens
    Backend & APIsAuto-check passed
  • Registers a new syncable entity in three NestJS modules and adds its service and GraphQL resolver layers when contributing to the Twenty server.

    58k GitHub stars~2.9k tokensUpdated today
    Backend & APIsAuto-check passed

More from hackers-pub/hackerspub

  • I18n

    hackers-pub/hackerspub

    Fill in missing translations in web-next .po files, add i18n-aware UI labels to components, and ensure translation quality — consistent glossary terminology, correct punctuation/typography per…

    165 GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Relay Best Practices

    hackers-pub/hackerspub

    Best practices for writing idiomatic Relay code. An agent skill from hackers-pub/hackerspub.

    165 GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • Relay Performance

    hackers-pub/hackerspub

    Performance best practices for Relay applications. An agent skill from hackers-pub/hackerspub.

    165 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Commit

    hackers-pub/hackerspub

    Make a commit in Git with an appropriate commit message for the currently staged changes.

    165 GitHub starsUsed in 1 repo~485 tokens
    Auto-check passed

Works with

Categories

Questions about Graphql Schema Design

What does Graphql Schema Design do?

GraphQL schema design and review. An agent skill from hackers-pub/hackerspub. Graphql Schema Design is an agent skill from hackers-pub/hackerspub. GraphQL schema design and review.

When should I use Graphql Schema Design?

Graphql Schema Design fits situations like: designing new GraphQL schema changes (types; reviewing schema diffs; planning schema evolution; auditing nullability and naming.

How do I install Graphql Schema Design in Claude Code?

Run `npx skills add hackers-pub/hackerspub --skill graphql-schema-design -a claude-code`. Or copy the skill folder (.agents/skills/graphql-schema-design in hackers-pub/hackerspub) into .claude/skills/graphql-schema-design in your project. Claude Code loads it when a task matches its description.

How do I install Graphql Schema Design in Codex?

Run `npx skills add hackers-pub/hackerspub --skill graphql-schema-design -a codex`. Or copy the skill folder (.agents/skills/graphql-schema-design in hackers-pub/hackerspub) into .agents/skills/graphql-schema-design in your project. Codex loads it when a task matches its description.

Can I use Graphql Schema Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hackers-pub/hackerspub --skill graphql-schema-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/graphql-schema-design, .gemini/skills/graphql-schema-design, .github/skills/graphql-schema-design and .opencode/skills/graphql-schema-design in your project.

What does Graphql Schema Design need to run?

Going by SKILL.md and its folder, Graphql Schema Design needs the command-line tools its instructions call (git).

Does Graphql Schema Design access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Graphql Schema Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Graphql Schema Design use?

Graphql Schema Design is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Graphql Schema Design use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 24k tokens, read only when the agent opens those files.

What are the alternatives to Graphql Schema Design?

Skills that share tags, products or a category with Graphql Schema Design: Nodejs Backend Patterns (ever-works/ever-works, 162 stars), API Designer (Jeffallan/claude-skills, 12k stars), GraphQL Operations with Codegen (ChrisWiles/claude-code-showcase, 6.1k stars) and API Design Principles (jh941213/my-cc-harness, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Graphql Schema Design?

hackers-pub (a GitHub organization) maintains it in hackers-pub/hackerspub, which has 165 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.

Source: hackers-pub/hackerspub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.