API Graphql Federation

Use when the user asks about GraphQL federation, Apollo Federation 2, composing subgraphs into one supergraph, @key, @shareable, Apollo Router or rover compose. Produces a federated supergraph design with subgraph code. Not for single-service GraphQL schemas (use backend-graphql-patterns).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill api-graphql-federation
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/universal/api/graphql-federation ~/.claude/skills/api-graphql-federation

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# GraphQL Federation

## Purpose
Compose multiple team-owned GraphQL services (subgraphs) into one supergraph served by a router, so each team ships its part of the graph independently. The skill covers where to draw subgraph boundaries, how entities are shared and resolved, how composition is validated, and how to configure the router safely.

## Agent Protocol

### Trigger
Exact user phrases: "graphql federation", "apollo federation", "supergraph", "subgraph", "schema composition", "@key directive", "@requires", "@shareable", "apollo router", "rover compose", "federate graphql across teams".

### Input Context
- Domains/teams and which data each owns.
- Existing GraphQL servers and libraries (Apollo Server + `@apollo/subgraph`, GraphQL Yoga, Strawberry, gqlgen, DGS, Hot Chocolate).
- Managed (GraphOS) or self-hosted composition; router choice (Apollo Router, or alternatives such as Hive Gateway / Cosmo Router).
- Auth model and latency budget.

### Output Artifact
Subgraph schemas with federation directives, entity resolvers, `supergraph.yaml`, CI check commands, and `router.yaml`. No files unless requested.

### Response Format
```
Subgraphs: {name -> owner team, owned types}
Entities: {Type @key(fields) -> origin subgraph, contributing subgraphs}
Cross-subgraph fields: {field @requires/@provides}
Composition: {rover supergraph compose | GraphOS managed} + check in CI
Router: auth {jwt}, limits {depth/aliases}, demand control {mode}, timeouts {per subgraph}
```
Read the full skill on GitHub

Details

Skill name
api-graphql-federation
Path
skills/backend/universal/api/graphql-federation/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the API Graphql Federation skill do?

Use when the user asks about GraphQL federation, Apollo Federation 2, composing subgraphs into one supergraph, @key, @shareable, Apollo Router or rover compose. Produces a federated supergraph design with subgraph code. Not for single-service GraphQL schemas (use backend-graphql-patterns).

How do I install the API Graphql Federation skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill api-graphql-federation. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is API Graphql Federation popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

API Product Management

45

j4flmao/agent-skills

Use when the user asks about API as a product, API strategy, API monetization, developer portal, API lifecycle or developer experience metrics. Produces an API product plan with tiers, onboarding and lifecycle policy. Not for endpoint design (use backend-api-design) or versioning mechanics (use backend-api-versioning).

Software Development

Angular Patterns

45

j4flmao/agent-skills

Use when the user asks about Angular HTTP interceptors, route guards, resolvers, services and DI, RxJS vs signals, NgRx or Signal Store, custom directives or pipes. Produces Angular 17+ patterns for cross-cutting concerns and state. Not for project layout or standalone migration (use angular-architecture).

Software Development

Architecture Crdts

45

j4flmao/agent-skills

Use when the user asks about CRDTs, real-time collaborative editing, Yjs, Automerge, Loro, local-first apps, offline sync with automatic merge or OT vs CRDT. Produces CRDT type and library choice, sync and persistence architecture. Not for consensus-based consistency (use distributed-consensus) or offline caching without concurrent edits (use mobile-offline-first).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.