Agent skill

Graphql Architect

by majiayu000 in majiayu000/claude-skill-registry

GraphQL schema and federation expert specializing in resolver optimization, subscriptions, and API gateway patterns

MITAuto-check passedBackend & APIs

Install Graphql Architect

skills CLI
$ npx skills add majiayu000/claude-skill-registry --skill graphql-architect -a claude-code

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

GitHub CLI
$ gh skill install majiayu000/claude-skill-registry graphql-architect --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/majiayu000/claude-skill-registry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/api/graphql-architect-skill .claude/skills/graphql-architect && 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-architect
GitHub stars
666
Used in
1 other repo
Token cost
~1.6k tokens
SKILL.md length
413 words
Files
2
Skills in repo
1,273
Repo updated
First seen
Licence
MIT

At a glance

GraphQL schema and federation expert specializing in resolver optimization, subscriptions, and API gateway patterns

  • Tasks that involve GraphQL
  • SKILL.md covers Purpose, When to Use, Quick Start and Core Capabilities, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Graphql Architect is an agent skill from majiayu000/claude-skill-registry. GraphQL schema and federation expert specializing in resolver optimization, subscriptions, and API gateway patterns

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `metadata.json`).

It sits in Backend & APIs, covering GraphQL. It works with GraphQL. The repository describes itself as: Searchable Claude Code skills catalog with source-linked guides and generated registry artifacts. The licence is MIT.

When your agent uses it

  • Tasks that involve GraphQL

Example prompts

  • “/graphql-architect”

What it can do on your machine

Read from SKILL.md and the folder at commit 2d14a69. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and graphql).

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

  • Network

    No URLs in SKILL.md.

    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 Architect loads about 1.6k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 413 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

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 majiayu000/claude-skill-registry at commit 2d14a69, republished under its MIT licence (© majiayu000). 413 words, ~1,623 tokens.

Download SKILL.mdSave it as .claude/skills/graphql-architect/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
graphql-architect
description
GraphQL schema and federation expert specializing in resolver optimization, subscriptions, and API gateway patterns

GraphQL Architect Skill

Purpose

Provides expert GraphQL architecture expertise specializing in schema design, federation patterns, resolver optimization, and real-time subscriptions. Builds performant, type-safe GraphQL APIs with N+1 prevention, efficient caching, and scalable API gateway patterns across distributed systems.

When to Use

  • Designing GraphQL schema from scratch for new APIs
  • Implementing GraphQL federation across multiple services
  • Optimizing resolvers to prevent N+1 queries (DataLoader implementation)
  • Building real-time features with GraphQL subscriptions
  • Migrating from REST to GraphQL or designing hybrid REST+GraphQL APIs
  • Implementing GraphQL API gateway patterns

Quick Start

Invoke this skill when:

  • Designing new GraphQL schemas or federation architecture
  • Solving N+1 query performance issues
  • Implementing real-time subscriptions
  • Migrating REST APIs to GraphQL

Do NOT invoke when:

  • Simple REST API is sufficient (use api-designer)
  • Database schema design without API layer (use database-administrator)
  • Frontend data fetching only (use frontend-developer)

Core Capabilities

Schema Design
  • Creating type-safe GraphQL schemas with best practices
  • Implementing pagination patterns (Relay, offset-based)
  • Designing mutations with input validation and error handling
  • Managing schema evolution and backward compatibility
Federation Architecture
  • Implementing Apollo Federation for microservices
  • Configuring schema stitching for service composition
  • Managing cross-service queries and mutations
  • Setting up API gateways for schema composition
Resolver Optimization
  • Implementing DataLoader for N+1 prevention
  • Caching strategies at resolver and field levels
  • Query complexity analysis and depth limiting
  • Persisted queries for production optimization
Real-Time Subscriptions
  • Implementing WebSocket-based subscriptions
  • Managing subscription lifecycle and cleanup
  • Integrating with event-driven backends
  • Handling subscription authentication and authorization

Decision Framework

Show full SKILL.md (177 more words)Show less
GraphQL vs REST Decision Matrix
FactorUse GraphQLUse REST
Client typesMultiple clients with different needsSingle client with predictable needs
Data relationshipsHighly nested, interconnected dataFlat resources with few relationships
Over-fetchingClients need different subsetsClients typically need all fields
Under-fetchingAvoid multiple round tripsSingle endpoint provides enough
Schema evolutionFrequent changes, backward compatStable API, versioning acceptable
Real-timeSubscriptions neededPolling or webhooks sufficient
Schema Design Decision Tree
Schema Design Requirements
│
├─ Single service (monolith)?
│  └─ Schema-first design with single schema
│
├─ Multiple microservices?
│  ├─ Services owned by different teams?
│  │  └─ Apollo Federation
│  └─ Services owned by same team?
│     └─ Schema stitching (simpler)
│
├─ Existing REST APIs to wrap?
│  └─ GraphQL wrapper layer
│
└─ Need backward compatibility?
   └─ Hybrid REST + GraphQL
N+1 Prevention Strategy
Resolver Implementation
│
├─ Field resolves to single related entity?
│  └─ DataLoader with batching
│
├─ Field resolves to list of related entities?
│  ├─ List size always small (<10)?
│  │  └─ Direct query acceptable
│  └─ List size unbounded?
│     └─ DataLoader with batching + pagination
│
├─ Nested resolvers (users → posts → comments)?
│  └─ Multi-level DataLoaders
│
└─ Aggregations or counts?
   └─ Separate DataLoader for counts

Core Workflow: DataLoader Implementation

Problem: N+1 queries killing performance

typescript
// WITHOUT DataLoader - N+1 problem
const resolvers = {
  Post: {
    author: async (post, _, { db }) => {
      // Executed once per post (N+1 problem!)
      return db.User.findByPk(post.userId);
    }
  }
};
// Query for 100 posts triggers 101 DB queries

Solution: Batch with DataLoader

typescript
import DataLoader from 'dataloader';

// Create loader per request (important!)
function createLoaders(db) {
  return {
    userLoader: new DataLoader(async (userIds) => {
      const users = await db.User.findAll({
        where: { id: userIds }
      });
      // Return in same order as requested IDs
      const userMap = new Map(users.map(u => [u.id, u]));
      return userIds.map(id => userMap.get(id));
    })
  };
}

// Resolver using DataLoader
const resolvers = {
  Post: {
    author: (post, _, { loaders }) => {
      return loaders.userLoader.load(post.userId);
    }
  }
};
// Same query now triggers 2 queries total!

Quick Reference: Schema Best Practices

Pagination Pattern (Relay-style)
graphql
type Query {
  users(first: Int, after: String, last: Int, before: String): UserConnection!
}

type UserConnection {
  edges: [UserEdge!]!
  pageInfo: PageInfo!
  totalCount: Int!
}

type UserEdge {
  node: User!
  cursor: String!
}

type PageInfo {
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
  endCursor: String
}
Error Handling Pattern
graphql
type Mutation {
  createUser(input: CreateUserInput!): CreateUserPayload!
}

type CreateUserPayload {
  user: User
  errors: [UserError!]!
}

type UserError {
  field: String
  message: String!
  code: ErrorCode!
}

enum ErrorCode {
  VALIDATION_ERROR
  NOT_FOUND
  UNAUTHORIZED
  CONFLICT
}

Red Flags - When to Escalate

ObservationWhy Escalate
Query complexity explosionUnbounded nested queries causing DoS
Federation circular dependenciesSchema design issue
10K+ concurrent subscriptionsInfrastructure architecture
Schema versioning across 50+ fieldsBreaking change management
Cross-service transaction needsDistributed systems pattern

Additional Resources

  • Detailed Technical Reference: See REFERENCE.md

    • Apollo Federation setup workflow
    • Field-level authorization directives
    • Query complexity limiting
  • Code Examples & Patterns: See EXAMPLES.md

    • Anti-patterns (N+1 queries, no complexity limits)
    • Integration patterns with other skills
    • Complete resolver implementations

© majiayu000, MIT. 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 1 other file in skills/api/graphql-architect-skill of majiayu000/claude-skill-registry.

  • SKILL.md
  • metadata.json

Open the folder on GitHubat commit 2d14a69

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in majiayu000/claude-skill-registry, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Graphql Architect 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 Architect compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Graphql Architect this skillmajiayu000/claude-skill-registry6661 repos~1.6kAutomated safety check: PassMIT
API DesignerJeffallan/claude-skills12k2 repos~2kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works15818 repos~4kAutomated safety check: PassAGPL-3.0
GraphQL Operations with CodegenChrisWiles/claude-code-showcase6.1k3 repos~1.5kAutomated safety check: PassNone
API Design Principlesjh941213/my-cc-harness12620 repos~3.4kAutomated safety check: PassNone
API And Interface Designdzhalaevd/Donatello1359 repos~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • 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 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • 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.

    158 GitHub starsUsed in 18 repos~4k 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 20 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 9 repos~2.6k tokens
    Backend & APIsAuto-check passed
  • Designing APIs

    CloudAI-X/claude-workflow-v2

    Designs REST and GraphQL APIs including endpoints, error handling, versioning, and documentation.

    1.4k GitHub starsUsed in 2 repos~1.2k tokens
    Backend & APIsAuto-check passed

More from majiayu000/claude-skill-registry

All 1,273 skills in this repo
  • Deep Research

    majiayu000/claude-skill-registry

    Multi-source deep research using firecrawl and exa MCPs. An agent skill from majiayu000/claude-skill-registry.

    666 GitHub starsUsed in 6 repos~1.1k tokens
    Auto-check passed
  • Exa Search

    majiayu000/claude-skill-registry

    Neural search via Exa MCP for web, code, and company research.

    666 GitHub starsUsed in 5 repos~856 tokens
    Auto-check passed
  • Fal AI Media

    majiayu000/claude-skill-registry

    Unified media generation via fal.ai MCP — image, video, and audio.

    666 GitHub starsUsed in 5 repos~1.7k tokens
    Auto-check passed
  • Pyzotero

    majiayu000/claude-skill-registry

    Interact with Zotero reference management libraries using the pyzotero Python client.

    666 GitHub starsUsed in 5 repos~1.6k tokens
    Auto-check: notes
  • Bgpt Paper Search

    majiayu000/claude-skill-registry

    Search scientific papers and retrieve structured experimental data extracted from full-text studies via the BGPT MCP server.

    666 GitHub starsUsed in 4 repos~619 tokens
    Auto-check: notes
  • Bio Alignment Pairwise

    majiayu000/claude-skill-registry

    Perform pairwise sequence alignment using Biopython Bio.Align.PairwiseAligner.

    666 GitHub starsUsed in 4 repos~1.7k tokens
    Auto-check passed

Works with

Categories

Questions about Graphql Architect

What does Graphql Architect do?

GraphQL schema and federation expert specializing in resolver optimization, subscriptions, and API gateway patterns. Graphql Architect is an agent skill from majiayu000/claude-skill-registry.

When should I use Graphql Architect?

Graphql Architect fits situations like: tasks that involve GraphQL.

How do I install Graphql Architect in Claude Code?

Run `npx skills add majiayu000/claude-skill-registry --skill graphql-architect -a claude-code`. Or copy the skill folder (skills/api/graphql-architect-skill in majiayu000/claude-skill-registry) into .claude/skills/graphql-architect in your project. Claude Code loads it when a task matches its description.

How do I install Graphql Architect in Codex?

Run `npx skills add majiayu000/claude-skill-registry --skill graphql-architect -a codex`. Or copy the skill folder (skills/api/graphql-architect-skill in majiayu000/claude-skill-registry) into .agents/skills/graphql-architect in your project. Codex loads it when a task matches its description.

Can I use Graphql Architect 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 majiayu000/claude-skill-registry --skill graphql-architect -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-architect, .gemini/skills/graphql-architect, .github/skills/graphql-architect and .opencode/skills/graphql-architect in your project.

What does Graphql Architect need to run?

SKILL.md names no scripts, command-line tools or credentials: Graphql Architect is instructions for the agent only.

Does Graphql Architect access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Graphql Architect 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 Architect use?

Graphql Architect is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Graphql Architect use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Graphql Architect?

Skills that share tags, products or a category with Graphql Architect: API Designer (Jeffallan/claude-skills, 12k stars), Nodejs Backend Patterns (ever-works/ever-works, 158 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 Architect?

majiayu000 (a GitHub user) maintains it in majiayu000/claude-skill-registry, which has 666 GitHub stars. The repository holds 1,273 skills in this directory. The repository was last updated on October 7, 2026.

Source: majiayu000/claude-skill-registry on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.