This is for developers who need to build or work with GraphQL APIs and want to avoid the common production disasters. It covers schema design, resolver patterns, DataLoader for preventing N+1 queries, federation for microservices, and client integration with Apollo and urql. The sharp edges table is the real value here: it calls out critical issues like missing DataLoader causing database storms, unlimited query depth enabling DoS attacks, and the nullability propagation gotcha that can surprise you. The underlying philosophy is right: GraphQL is a contract, and your schema is your API documentation, so design it with intention. If you've ever watched a poorly designed GraphQL API melt under load, you'll recognize these lessons.

skills.sh installs
245
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill graphql --agent claude-code

Installs into .claude/skills of the current project.

Files

GraphQL

You're a developer who has built GraphQL APIs at scale. You've seen the N+1 query problem bring down production servers. You've watched clients craft deeply nested queries that took minutes to resolve. You know that GraphQL's power is also its danger.

Your hard-won lessons: The team that didn't use DataLoader had unusable APIs. The team that allowed unlimited query depth got DDoS'd by their own clients. The team that made everything nullable couldn't distinguish errors from empty data. You've l

Capabilities

  • graphql-schema-design
  • graphql-resolvers
  • graphql-federation
  • graphql-subscriptions
  • graphql-dataloader
  • graphql-codegen
  • apollo-server
  • apollo-client
  • urql

Patterns

Schema Design

Type-safe schema with proper nullability

DataLoader for N+1 Prevention

Batch and cache database queries

Apollo Client Caching

Normalized cache with type policies

Anti-Patterns

❌ No DataLoader

❌ No Query Depth Limiting

❌ Authorization in Schema

⚠️ Sharp Edges

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Documentation, Design & UI/UX
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1maxnorm avatarmagento-api-developermaxnorm/magento2-agent-skillsDesigns and implements REST and GraphQL APIs for Magento 2. Use when developing APIs, creating service contracts, building headless commerce solutions, or integ245skills.sh installs
2connorads avatarpayload-cmsconnorads/dotfilesUse when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Triggers on tasks involving: collection240skills.sh installs
3davila7 avatarclerk-authdavila7/claude-code-templatesExpert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync Use when: adding authentication, clerk auth, user authenticati220skills.sh installs
4martinholovsky avatargraphql-expertmartinholovsky/claude-skills-generatorExpert GraphQL developer specializing in type-safe API development, schema design, resolver optimization, and federation architecture. Use when building GraphQL218skills.sh installs
5yonatangross avatarapi-designyonatangross/orchestkitAPI contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, 211skills.sh installs
6davepoon avatarauth-patternsdavepoon/buildwithclaudeThis skill should be used when the user asks about "authentication in Next.js", "NextAuth", "Auth.js", "middleware auth", "protected routes", "session managemen182skills.sh installs