hsnsaboor/open-engineer/apollo-federation
Claude Code and agent skill by hsnsaboor/open-engineer
- community
Checking that the SKILL.md file is still in the repository.
Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated supergraph, (2) defining or modifying entities with @key, (3) sharing types/fields across subgraphs with @shareable, (4) working with federation directives (@external, @requires, @provides, @override, @inaccessible), (5) troubleshooting composition errors, (6) any task involving federation schema design patterns.
Install
npx vskill@latest install hsnsaboor/open-engineer/apollo-federationSKILL.md
The same SKILL.md was published earlier as neversight/learn-skills.dev/apollo-federation.
Apollo Federation Schema Authoring
Apollo Federation enables composing multiple GraphQL APIs (subgraphs) into a unified supergraph.
Federation 2 Schema Setup
Every Federation 2 subgraph must opt-in via @link:
Import only the directives your subgraph uses.
Core Directives Quick Reference
| Directive | Purpose | Example | |
|---|---|---|---|
@key | Define entity with unique key | type Product @key(fields: "id") | |
@shareable | Allow multiple subgraphs to resolve field | type Position @shareable { x: Int! } | |
@external | Reference field from another subgraph | weight: Int @external | |
@requires | Computed field depending on external fields | shippingCost: Int @requires(fields: "weight") | |
@provides | Conditionally resolve external field | @provides(fields: "name") | |
@override | Migrate field to this subgraph | @override(from: "Products") | |
@inaccessible | Hide from API schema | internalId: ID! @inaccessible | |
@interfaceObject | Add fields to entity interface | type Media @interfaceObject |
Reference Files
Detailed documentation for specific topics:
- Directives - All federation directives with syntax, examples, and rules
- Schema Patterns - Multi-subgraph patterns and recipes
- Composition - Composition rules, error codes, and debugging
Key Patterns
Entity Definition
Entity Contributions Across Subgraphs
Computed Fields with @requires
Value Types with @shareable
Entity Stub (Reference Without Contributing)
Ground Rules
- ALWAYS use Federation 2.x syntax with
@linkdirective - ALWAYS import only the directives your subgraph uses
- NEVER use
@shareablewithout ensuring all subgraphs return identical values for that field - PREFER
@keywith single ID field for simple entity identification - USE
rover supergraph composeto validate composition locally - USE
rover subgraph checkto validate against production supergraph
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/skills/bundled/apollo-federation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hsnsaboor/open-engineer/apollo-federation)