Проектирование GraphQL API и Apollo Federation
web-development
Graphql architect is a Claude Code skill that designs GraphQL schemas, implements Apollo Federation 2.5+, and builds distributed API graphs with real-time subscriptions. Reach for it when you need to break a monolithic REST API into GraphQL subgraphs, when N+1 query problems are killing performance, when you need to stitch multiple subgraphs together under a federated gateway, or when clients need live data via WebSocket subscriptions. The skill follows a six-step workflow: domain modeling, schema-first design, subgraph composition validation, resolver implementation with DataLoader batching, security hardening through query complexity and depth limiting, and performance tuning with caching and persisted queries. Built around Apollo Server, Apollo Federation, GraphQL SDL, DataLoader, Redis pub/sub, and WebSocket. Output includes SDL schema definitions with federation directives, JavaScript resolver code, and example queries, mutations, and subscriptions with documented design decisions. The direction is designing and implementing GraphQL APIs — not REST or gRPC architecture (use api-designer for general API design, microservices-architect for non-GraphQL service decomposition). A good fit for teams building product APIs on the Apollo stack; less relevant if the schema is already stable and the bottleneck is purely at the database layer — that's where database-optimizer applies.
- #graphql
- #apollo-federation
- #api-architecture
- #schema-design
- #performance-optimization
- #dataloader