LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/apollographql/skills --skill apollo-federation
or paste the link and ask your coding assistant to install it
https://github.com/apollographql/skills/tree/main/skills/apollo-federation
View on GitHub

What This Skill Does

Helps you write Apollo Federation 2.x subgraph schemas for composing multiple GraphQL APIs into a single supergraph. Covers entity definitions with @key, field sharing with @shareable, computed fields via @requires, and other federation directives.

Federation directive rules are easy to get wrong, and composition errors are cryptic. Having the correct syntax, constraints, and patterns inline while editing schemas saves repeated trips to the docs.

When to use it

  • Defining entity types with @key when splitting a monolith GraphQL API into subgraphs
  • Adding fields to an existing entity from a new subgraph without breaking composition
  • Setting up computed fields that depend on data owned by another subgraph
  • Debugging composition errors after changing federation directives
  • Migrating a field from one subgraph to another using @override