Guidelines for designing efficient, secure, and type-safe GraphQL APIs that avoid common pitfalls like performance bottlenecks.

Install

mkdir -p .claude/skills/graphql && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1464" && unzip -o skill.zip -d .claude/skills/graphql && rm skill.zip

Installs to .claude/skills/graphql

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.
499 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Design type-safe schemas
  • Implement DataLoader for N+1 prevention
  • Configure query depth limiting
  • Integrate Apollo client

How it works

The skill applies established patterns like DataLoader and query depth limiting to ensure API performance and security.

Inputs & outputs

You give it
Schema definition or query request
You get back
Optimized resolver or schema design

When to use graphql

  • Implement DataLoader to fix N+1 performance issues
  • Design a type-safe GraphQL schema
  • Configure query depth limiting for security
  • Integrate Apollo client with caching

About this skill

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

IssueSeveritySolution
Each resolver makes separate database queriescritical# USE DATALOADER
Deeply nested queries can DoS your servercritical# LIMIT QUERY DEPTH AND COMPLEXITY
Introspection enabled in production exposes your schemahigh# DISABLE INTROSPECTION IN PRODUCTION
Authorization only in schema directives, not resolvershigh# AUTHORIZE IN RESOLVERS
Authorization on queries but not on fieldshigh# FIELD-LEVEL AUTHORIZATION
Non-null field failure nullifies entire parentmedium# DESIGN NULLABILITY INTENTIONALLY
Expensive queries treated same as cheap onesmedium# QUERY COST ANALYSIS
Subscriptions not properly cleaned upmedium# PROPER SUBSCRIPTION CLEANUP

Related Skills

Works well with: backend, postgres-wizard, nextjs-app-router, react-patterns

When not to use it

  • When the API does not require complex data fetching
  • When introspection is needed in production

Prerequisites

GraphQL server frameworkDatabase access

Limitations

  • Requires careful nullability design
  • Authorization must be implemented at the field level

How it compares

It focuses on preventing common GraphQL failures like N+1 queries and DDoS attacks through structured design patterns.

Compared to similar skills

graphql side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
graphql (this skill)66moNo flagsAdvanced
api-security-best-practices156moReviewIntermediate
nodejs-backend-patterns122moNo flagsIntermediate
graphql-architect14moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

software-architecture

davila7

Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.

333868

planning-with-files

davila7

Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.

233106

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

scroll-experience

davila7

Expert in building immersive scroll-driven experiences - parallax storytelling, scroll animations, interactive narratives, and cinematic web experiences. Like NY Times interactives, Apple product pages, and award-winning web experiences. Makes websites feel like experiences, not just pages. Use when: scroll animation, parallax, scroll storytelling, interactive story, cinematic website.

101142

humanizer

davila7

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases. Credits: Original skill by @blader - https://github.com/blader/humanizer

90175

game-development

davila7

Game development orchestrator. Routes to platform-specific skills based on project needs.

70195

Search skills

Search the agent skills registry