Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/j4flmao/agent-skillsnpx agentmods add skills/j4flmao/agent-skills/graphql-federationWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/j4flmao/agent-skills/graphql-federation)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/graphql-federation"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/graphql-federation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/graphql-federation"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/graphql-federation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.02938 |
| Opus 5.5 | $0.00028 | $0.01175 |
| Sonnet 5.5 | $0.00014 | $0.00588 |
| Haiku 4.5 | $0.00007 | $0.00294 |
Grade A, and why
api-graphql-federation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 302 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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}
When Federation Fits
| Situation | Recommendation |
|---|---|
| One team, one service | Single GraphQL server; federation adds a router hop and composition overhead |
| Several teams, distinct domains, all GraphQL-capable | Federation |
| Mostly REST/gRPC backends owned by others | Wrap them (GraphQL Mesh, Apollo Connectors, or a BFF subgraph) and compose |
| Strong need for cross-domain transactions in one mutation | Fix domain boundaries first; federation does not provide transactions |
Boundary rule: a subgraph per bounded context/team, not per database table. Many tiny subgraphs multiply query-plan fetches.
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/entity-resolution.md 11 KB
- references/federated-tracing.md 7.9 KB
- references/federation-architecture.md 6.9 KB
- references/federation-cost-management.md 12 KB
- references/federation-deployment.md 2.9 KB
- references/federation-migration-monolith.md 11 KB
- references/federation-performance.md 8.7 KB
- references/federation-security.md 10 KB
- references/federation-testing.md 3.0 KB
- references/federation-vs-mesh.md 5.2 KB
- references/graphql-federation-advanced.md 16 KB
- references/graphql-federation-fundamentals.md 14 KB
- references/supergraph-composition.md 8.8 KB
- references/supergraph-config.md 8.1 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago Changed · +1 lines · -73 tokens per session 6cb86ce7c663
- 1mo ago Changed · -462 lines · +73 tokens per session 8215a0acc8d5
- 3mo ago First seen · 763 lines · 71 tokens per session scan A 211030f51a97
api-graphql-federation is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 71 tokens to every session and 2,938 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
api-graphql-federation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-graphql-federationj4flmao/agent-skills | Skill | 47 | 17d ago | MIT | A | 71 | Claude Code, Codex |
| graphql-docspledgeandgrow/pledge-skills | Skill | 11 | 4mo ago | MIT | A | 119 | Claude Code, Codex |
| api-integration-architectsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 33 | Claude Code |
| api-connector-builderericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 80 | Claude Code, Codex |
| pagible-themesaimeos/pagible | Skill | 609 | yesterday | MIT | A | 106 | Claude Code, Codex |
| api-testing-patternsproffesor-for-testing/agentic-qe | Skill | 539 | 2d ago | MIT | A | 34 | Claude Code |
| api-design-principles-v2diegosouzapw/awesome-omni-skills | Skill | 181 | 3d ago | MIT | A | 69 | Claude Code, Codex |