This one walks you through production GraphQL APIs with Apollo Server 4, from schema design to subscriptions. It covers the stuff that actually matters: DataLoader patterns to avoid N+1 queries, proper resolver chains, cursor-based pagination, and real-time subscriptions over WebSocket. The examples show complete server setups with authentication context, input validation, and error handling. If you're building a GraphQL API and need to handle schema federation, query complexity limits, or just want to understand why your resolvers are slow, this has the patterns. Particularly solid on the DataLoader batching implementation, which is usually where teams mess up performance.

skills.sh installs
167
GitHub stars
44
last updated
Aug 21, 2026

Install

$ npx -y skills add personamanagmentlayer/pcl --skill graphql-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

GraphQL Expert

Expert guidance for GraphQL API development, schema design, resolvers, subscriptions, and best practices for building type-safe, efficient APIs.

Core Concepts

Schema Design

  • Type system and schema definition language (SDL)
  • Object types, interfaces, unions, and enums
  • Input types and custom scalars
  • Schema stitching and federation
  • Modular schema organization

Resolvers

  • Resolver functions and data sources
  • Context and info arguments
  • Field-level resolvers
  • Resolver chains and data loaders
  • Error handling in resolvers

Queries and Mutations

  • Query design and naming conventions
  • Mutation patterns and best practices
  • Input validation and sanitization
  • Pagination strategies (cursor-based, offset)
  • Filtering and sorting

Subscriptions

  • Real-time updates with WebSocket
  • Subscription resolvers
  • PubSub patterns
  • Subscription filtering
  • Connection management

Performance

  • N+1 query problem and DataLoader
  • Query complexity analysis
  • Depth limiting and query cost
  • Caching strategies (field-level, full response)
  • Batching and deduplication

GraphQL Federation

Federated Schema

Sponsors

Details

Repository
github.com/personamanagmentlayer/pcl
Categories
Backend & APIs, Design & UI/UX
First seen
Jun 3, 2026

More from personamanagmentlayer/pcl

All 99
1andrelandgraf avatarauthenticationandrelandgraf/fullstackrecipesComplete authentication system with Better Auth, email verification, password reset, protected routes, and account management.132skills.sh installs
2andrelandgraf avatarneon-drizzle-setupandrelandgraf/fullstackrecipesConnect a Next.js app to Neon Postgres using Drizzle ORM with optimized connection pooling for Vercel serverless functions.128skills.sh installs
3huangjia2019 avatarapi-conventionshuangjia2019/claude-code-engineeringAPI design patterns and conventions for this project. Covers RESTful URL naming, response format standards, error handling, and authentication requirements. Use0skills.sh installs
4supabase avatarsupabase-postgres-best-practicessupabase/agent-skillsPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres data479.8Kskills.sh installs
5prisma avatarprisma-computeprisma/skillsPrisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a P399.3Kskills.sh installs
6firebase avatarfirebase-hosting-basicsfirebase/agent-skillsDeploys and configures classic Firebase Hosting for static websites, single-page apps (SPAs), and microservices. Use when deploying static sites/SPAs, setting u177.5Kskills.sh installs