api-graphql-federation

api-graphql-federation is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 71 tokens per session (2,938 once invoked), scanned A, original, MIT.

A design for combining several GraphQL services into one API that clients can query. Each service, called a subgraph, owns part of the data while a central layer joins them together.

In plain words
What is it for?
Use it to plan subgraphs, shared entities, schema composition, and the gateway or router that serves the combined API.
Why use it?
It helps multiple teams expose one consistent API without putting every feature in a single service. It also supports decisions about GraphQL Federation and alternatives such as GraphQL Mesh.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is file: ./schemas/accounts.graphql.

Good fit Use it to plan subgraphs, shared entities, schema composition, and the gateway or router that serves the combined API.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills
agentmods
npx agentmods add skills/j4flmao/agent-skills/graphql-federation

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for api-graphql-federation

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/graphql-federation/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/graphql-federation)
Your own site
<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.

agentmods 80×15 button for api-graphql-federation

Your own site · 80×15
<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>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,938 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 16d ago against content hash 6cb86ce7c663, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/backend/universal/api/graphql-federation/SKILL.md · 302 lines

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.

Read the full file on GitHub · 302 lines

Changes

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.

  1. 16d ago Changed · +1 lines · -73 tokens per session 6cb86ce7c663
  2. 1mo ago Changed · -462 lines · +73 tokens per session 8215a0acc8d5
  3. 3mo ago First seen · 763 lines · 71 tokens per session scan A 211030f51a97

Subscribe to this mod's changes

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.

Related

api-graphql-federation compared with skills from other repositories

api-graphql-federation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-graphql-federationj4flmao/agent-skillsSkill4717d agoMITA71Claude Code, Codex
graphql-docspledgeandgrow/pledge-skillsSkill114mo agoMITA119Claude Code, Codex
api-integration-architectsickn33/agentic-awesome-skillsSkill51ktodayMITA33Claude Code
api-connector-builderericrisco/rsc-harnessSkill7072d agoMITA80Claude Code, Codex
pagible-themesaimeos/pagibleSkill609yesterdayMITA106Claude Code, Codex
api-testing-patternsproffesor-for-testing/agentic-qeSkill5392d agoMITA34Claude Code
api-design-principles-v2diegosouzapw/awesome-omni-skillsSkill1813d agoMITA69Claude Code, Codex