web-graphql
Web GraphQL Skill
Version: 1.0 Stack: GraphQL + Apollo Server + Express + Prisma
GraphQL is deceptively easy to start and deceptively hard to maintain. Fat resolvers become untestable. Database-shaped schemas lock you into implementation details. No DataLoader means N+1 queries that silently degrade as data grows. The API works in development and collapses under real traffic — not because of scale, but because of patterns that don't survive it.
Schema-first design, thin resolvers, and structured errors prevent these problems before they compound.
Core Principles
- Schema-First Thinking — Design the schema for client needs, not database shape.
- Thin Resolvers — Resolvers orchestrate; business logic lives in services.
- Type Safety End-to-End — Prisma types flow through to GraphQL.
- N+1 Prevention — Use DataLoader for batching.
- Explicit Errors — Structured error responses, not vague messages.
More from alexanderstephenthompson/claude-hub
unity-csharp
C# patterns for Unity - MonoBehaviour, async, architecture, and VR/mobile performance optimization
50design
Design and UI standards for accessibility, semantic HTML, and responsive layouts
36architecture
Architecture principles, module boundaries, folder structure, and project type profiles
34vrc-udon
VRChat Udon and UdonSharp patterns - networking, sync, interactions
33data-python
Python patterns for data processing - pandas, polars, pyspark
33web-performance
Performance patterns for Apollo caching, Redis, and CloudFront optimization
33