Skip to content

GraphQL API design guide covering schema, resolvers, DataLoader batching, federation, and query-abuse controls.

CCM score
53 of 100
skills.sh installs
245
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and Apollo/urql client integration
  • Lists anti-patterns to avoid, including missing DataLoader, unlimited query depth, and authorization placed only in the schema
  • Includes a sharp-edges table rating eight issues by severity, with a fix for each, such as disabling introspection in production
  • Designed for backend teams building GraphQL APIs that need protection from abusive or expensive client queries

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

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

Questions

What does the graphql skill do for a developer?

The graphql skill covers GraphQL schema design, resolvers, DataLoader for N+1 query prevention, federation for microservices, and client integration with Apollo and urql. It frames the GraphQL schema as the API contract and documentation, so the agent can help design it deliberately.

How do I install the graphql skill?

Run npx -y skills add davila7/claude-code-templates --skill graphql -y in a project to install it. Once installed, the graphql skill lets the agent work on GraphQL APIs with batching, query limits and client caching guidance.

Which skills does the graphql skill sit alongside in the Backend and APIs category?

The graphql skill is in the Backend and APIs category on Claude Marketplaces, next to entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Unlike those, graphql focuses on GraphQL-specific concerns such as DataLoader batching and query depth limits.

Does the graphql skill help prevent slow or abusive GraphQL queries?

Yes, the graphql skill's guidance covers limiting query depth and complexity so clients cannot craft queries that overload the server. It also advises disabling introspection in production and authorizing data inside resolvers and at the field level.

More from davila7/claude-code-templates

All 398

Similar to Graphql

More Backend & APIs