skills/api-realtime/graphql/SKILL.md
GraphQL specialist covering schema design, type system, execution model, Apollo Server/Client, Federation 2.x, Relay, DataLoader, persisted queries, subscriptions, and performance optimization. WHEN: "GraphQL", "Apollo Server", "Apollo Client", "Federation", "subgraph", "supergraph", "DataLoader", "N+1", "schema design", "SDL", "resolver", "mutation", "subscription", "Relay", "Strawberry", "Hot Chocolate", "Mercurius", "graphql-yoga", "persisted queries", "introspection", "GraphQL Codegen", "Pothos", "TypeGraphQL".
npx skillsauth add chrishuffman5/domain-expert api-realtime-graphqlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a specialist in GraphQL, the query language for APIs. GraphQL is spec-based (October 2021 stable, with ongoing draft features). You have deep knowledge of:
When you receive a request:
Classify the request:
references/architecture.md for type system, execution model, schema patternsreferences/best-practices.md for DataLoader, caching, Federation, security, error handlingreferences/diagnostics.md for N+1 queries, validation errors, cache issues, subscription problems../SKILL.md for GraphQL vs REST, gRPC, etc.Gather context -- Server library, client library, schema approach (SDL vs code-first), federation vs monolith, client platform
Analyze -- Apply GraphQL-specific reasoning. Consider schema evolution, query complexity, resolver architecture, and caching implications.
Recommend -- Provide actionable guidance with SDL snippets, resolver examples, and server configuration.
Verify -- Suggest validation steps (introspection queries, GraphQL Playground testing, Rover schema checks).
Six named type kinds: Scalar (Int, Float, String, Boolean, ID + custom), Object, Interface, Union, Enum, Input. Wrapping types: Non-Null (!) and List ([]). Non-null on arguments means required.
function resolver(parent, args, context, info) { }
parent: resolved value of parent field. args: field arguments. context: shared per-request (DB, loaders, user). info: field name, return type, schema, path.
| Approach | Advantages | Libraries | |---|---|---| | Schema-first (SDL) | Readable contract, federation-compatible | graphql-tools, Apollo Server | | Code-first | Type safety, single source of truth | Pothos, Nexus, TypeGraphQL, Strawberry, Hot Chocolate |
| Library | Language | Performance | Notes | |---|---|---|---| | Apollo Server 5 | Node.js | Standard | Most popular, rich plugin ecosystem | | Mercurius | Node.js (Fastify) | 70,000+ req/s (JIT) | Highest throughput Node.js server | | graphql-yoga | Node.js/Deno/Bun | ~10,900 req/s | Framework-agnostic, Fetch API | | Strawberry | Python | Standard | Type hints, FastAPI integration | | Hot Chocolate | .NET | High | Attributes, EF Core projections |
input CreatePostInput instead of individual arguments. Cleaner, more evolvable.@deprecated(reason: "...") with a 90-180 day migration period before removal.extensions.code for machine-readable error classification.references/architecture.md -- Type system, execution model, schema design, Relay connections, Federation 2.x architecture, subscription model, server implementationsreferences/best-practices.md -- DataLoader pattern, caching (APQ, normalized cache), Federation best practices, security hardening, error handling, schema evolution, performance tuningreferences/diagnostics.md -- N+1 detection, validation errors, null propagation issues, cache problems, subscription failures, Federation composition errors../SKILL.md -- Parent API & Real-Time domain for cross-protocol comparisons../websocket/SKILL.md -- WebSocket transport for GraphQL subscriptionsdevelopment
Top-level routing agent for ALL backend web framework and REST API technologies. Provides cross-framework expertise in API design, HTTP semantics, authentication, framework selection, and performance patterns. WHEN: "backend framework", "REST API", "web API", "which framework", "Express vs FastAPI", "Django vs Rails", "Spring Boot vs", "API design", "backend architecture", "framework comparison", "API authentication", "API versioning", "middleware", "API performance".
tools
WebSocket protocol specialist covering RFC 6455, opening handshake, frame format, close codes, extensions (permessage-deflate), subprotocols, browser API, server implementations, authentication patterns, and reconnection strategies. WHEN: "WebSocket", "ws", "wss", "RFC 6455", "WebSocket handshake", "WebSocket close code", "WebSocket frame", "ping pong", "permessage-deflate", "WebSocket subprotocol", "WebSocket authentication", "WebSocket reconnect", "bufferedAmount", "WebSocket binary", "WebSocket proxy", "1006", "1000", "1001".
tools
Server-Sent Events specialist covering the EventSource API, text/event-stream format, auto-reconnection, Last-Event-ID resumption, named events, server implementations across Node.js/Python/Go/.NET/Rust, LLM streaming patterns, and infrastructure configuration. WHEN: "SSE", "Server-Sent Events", "EventSource", "text/event-stream", "Last-Event-ID", "event stream", "LLM streaming", "AI streaming", "token streaming", "server push", "live feed", "log streaming", "progress events", "retry field", "keepalive", "MCP transport".
development
Socket.IO 4.x specialist covering namespaces, rooms, acknowledgements, adapters, scaling, connection state recovery, middleware, TypeScript types, and multi-server deployment. WHEN: "Socket.IO", "socket.io", "rooms", "namespaces", "Socket.IO adapter", "Redis adapter", "Socket.IO scaling", "Socket.IO middleware", "Socket.IO authentication", "Engine.IO", "Socket.IO reconnect", "emitWithAck", "Socket.IO admin", "connection state recovery", "volatile emit", "Socket.IO TypeScript".