This skill handles GraphQL schema definition, queries, mutations, and server setup with detailed resolver patterns. You'll want it when building flexible APIs that need to serve multiple client types without the usual REST overfetching problems, or when you're aggregating microservices behind a single endpoint. The progressive disclosure is well structured: quick start gets you from schema to working Apollo Server in minutes, then the full content covers everything from DataLoaders and subscriptions to TypeScript codegen and federation patterns. It's opinionated toward Apollo but covers the fundamentals that transfer across implementations. The resolver examples and type system sections are thorough enough to be genuinely useful, not just reference material.

skills.sh installs
340
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill graphql --agent claude-code

Installs into .claude/skills of the current project.

Files

GraphQL Skill

Summary

GraphQL is a query language and runtime for APIs that enables clients to request exactly the data they need. It provides a strongly-typed schema, single endpoint architecture, and eliminates over-fetching/under-fetching problems common in REST APIs.

When to Use

  • Building flexible APIs for multiple client types (web, mobile, IoT)
  • Complex data requirements with nested relationships
  • Mobile-first applications needing bandwidth efficiency
  • Reducing API versioning complexity
  • Real-time data with subscriptions
  • Microservices aggregation and federation
  • Developer experience with strong typing and introspection

Quick Start

1. Define Schema (SDL)

# schema.graphql
type User {
  id: ID!
  name: String!
  email: String!
  posts: [Post!]!
}

type Post {
  id: ID!
  title: String!
  content: String!
  author: User!
  publishedAt: DateTime
}

type Query {
  user(id: ID!): User
  users: [User!]!
  post(id: ID!): Post
}

type Mutation {
  createPost(title: String!, content: String!, authorId: ID!): Post!
  updatePost(id: ID!, title: String, content: String): Post!
  deletePost(id: ID!): Boolean!
}

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Backend & APIs, Code Review & Quality
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1secondsky avatarbun-http-serversecondsky/claude-skillsUse when building HTTP servers with Bun.serve, handling requests/responses, implementing routing, creating REST APIs, or configuring fetch handlers.336skills.sh installs
2jezweb avatarazure-authjezweb/claude-skillsMicrosoft Entra ID (Azure AD) authentication for React SPAs with MSAL.js and Cloudflare Workers JWT validation using jose library. Full-stack pattern with Autho327skills.sh installs
3patricio0312rev avatarqueue-job-processorpatricio0312rev/skillsImplements background job processing with BullMQ/Redis including job queues, workers, scheduling, retries, and monitoring. Use when users request "background jo295skills.sh installs
4patricio0312rev avatarapi-security-hardenerpatricio0312rev/skillsHardens API security with rate limiting, input validation, authentication, and protection against common attacks. Use when users request "API security", "secure284skills.sh installs
5pedronauck avatarbetter-auth-best-practicespedronauck/skillsSkill for integrating Better Auth - the comprehensive TypeScript authentication framework.281skills.sh installs
6whoamihappyhacking avatarlazycat-auth-integrationwhoamihappyhacking/lazycat-skills用于处理懒猫微服(Lazycat MicroServer)应用接入官方认证体系(OIDC单点登录)、HTTP Header用户身份识别、API Auth Token 以及配置独立鉴权(public_path)的专业指南。231skills.sh installs