/developer-platform-skills:graphql-federation-offeringfrom developer-platform-skills
Designs how a platform lets outside partners contribute fields to its public GraphQL graph via federation. Covers the extension ladder from custom fields to partner-hosted subgraphs, SDL claims, blast radius, and offboarding.
Ships in developer-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a platform architect deciding how outside parties extend a public GraphQL graph. Federation tooling assumes every subgraph author is a trusted team of one organization; the moment a partner contributes, composition still validates the schema but no longer protects the platform.
No major public API platform verifiably composes raw partner-owned subgraphs into its production public graph. The ones that let partners extend the graph keep schema ownership: app-owned namespaced data, connectors the platform runs, operator-added remote schemas. Start from that fact, and treat "partners ship subgraphs into our supergraph" as the rung a team must earn, not the default.
Memory (advised): When memory lives in a file, consider using developer-platform-context.md; if a different memory system is in use, rely on that instead. The file is an advisory reference, not a mandatory requirement. Separate task info in different sections. Remove finished tasks. Add a date to a task; no date for general project context. Some interview responses may differ between 2 tasks.
Ask before designing. Each answer deletes or re-ranks rungs in step 2.
If your harness has persistent memory, store the decisions so later runs (a new partner, a review, an offboarding) start from them:
Steps 3-7 apply in full to rungs 4-5. Rungs 0-2 keep partner code out of the request path. Rung 3 puts the partner's endpoint in it while the platform writes the schema: apply steps 4-7 and only the namespace rule of step 3.
When the request is a review of an existing or already-approved design (a config, an SDL, a launch checklist):
Map interview answer 1 to one shape before looking at mechanisms. The shape deletes rungs; it never ranks them.
A request that mixes shapes splits into one design per shape. "Partners want to extend our graph" almost always turns out to be stored data plus events, which never needs a partner resolver.
Six rungs. Each one higher puts more partner code, data flow and failure into the platform's request path.
| # | Rung | What the partner provides | Platform effort | Live partner data in one query | Security and compliance exposure | Durability |
|---|---|---|---|---|---|---|
| 0 | Webhooks plus API callback | Its own endpoint and API calls | +++ near-zero beyond the webhook platform | --- none | +++ platform sends only event payloads | +++ |
| 1 | App-owned extension data: namespaced custom fields and objects the platform stores | Definitions and values via API | ++ a storage and definitions API, once | - stored, not live | ++ data stays in platform storage under platform schema | +++ |
| 2 | Platform-ingested connector into canonical types | A sync into platform object types | + per canonical type | - synced, not live | ++ same as rung 1 | ++ |
| 3 | Platform-operated connector or remote schema: the platform maps the partner's REST or GraphQL API under a partner namespace | An HTTP endpoint | - mapping work per partner | + live, platform-shaped | - platform calls out, controls headers and timeouts | ++ |
| 4 | Mediated extension field: one platform-owned field (Order.extension(app: ID!)) resolved through a platform proxy | A resolver endpoint behind a published contract | -- proxy, contract, per-partner limits | ++ live, partner-shaped | -- partner code in the request path | + |
| 5 | Partner subgraph in an isolated partner variant or router | A subgraph | --- review staff, policy CI, separate router, isolation | ++ live, partner-shaped | --- composition plus request path | - tied to the router's federation dialect |
Composing partner subgraphs into the first-party production supergraph is not a rung. Every partner failure, hijack and composition break would land on first-party traffic; rung 5 gives the same partner capability behind a boundary. Refuse it by name when asked.
Rung 4 has a hosted variant: the partner's function runs in a platform sandbox instead of on the partner's endpoint. It removes partner egress only when the sandbox has no outbound network; otherwise keep the data-clearance list, an egress allowlist approved per tenant, and the SSRF rules of step 5. Either way, cap CPU, memory and wall time per invocation and mount no platform credential into the runtime. Prefer it at rung 4 whenever the platform already runs such a runtime.
Ranking, per axis. Re-emit each line with only the rungs step 1 left standing:
app-owned extension data > webhooks plus callback > platform-operated connector > ingested connector > mediated extension field > isolated partner subgraphisolated partner subgraph > mediated extension field > platform-operated connector > ingested connector > app-owned extension data > webhooks plus callbackisolated partner subgraph == mediated extension field > platform-operated connector > ingested connector == app-owned extension data > webhooks plus callbackisolated partner subgraph > mediated extension field > platform-operated connector > ingested connector == app-owned extension data > webhooks plus callbackwebhooks plus callback == app-owned extension data > ingested connector == platform-operated connector > mediated extension field > isolated partner subgraphTies, justified:
Default rung per shape from step 1. A need that turns out to be live is a reclassification in step 1, never a promotion up the ladder.
The order starves rung 5: highest value, highest effort, so it loses every efficiency round. Promote it anyway when a few strategic partners under contract must contribute live entity data that a single mediated field cannot shape, and the platform can staff partner schema review as a standing job.
Re-rank against the interview, and say which answer moved which rung:
See references/platform-cases.md for how Shopify, Atlassian, Hasura, Hygraph, Apollo, Cosmo and Block each sit on this ladder.
Composition checks that a schema is valid, never that a contributor may claim what it claims. Write the authorization layer composition lacks:
@override), co-resolution of platform fields (@shareable), assertion of another owner's data (@provides), global hiding (@inaccessible outside the partner namespace) and interface-wide extension (@interfaceObject) are rejected. @requires is limited to the data-clearance list.@shareable fields: those are the ones a partner can co-resolve, by redefining the type rather than extending an entity. The namespace rule must reject any partner definition of them.For rung 4, decide what the mediated field returns; that choice sets the SDL policy, the cost model and client codegen:
For rung 3, apply only the namespace rule: the platform writes the mapping, so it controls the rest.
See references/partner-sdl-policy.md for the full directive table, good and bad SDL, CI wiring per registry, and removal-impact checks.
@requires field, client arguments - and the consent that covers each. A @requires field ships to the partner even when the client never selected it, once per entity, so a list query ships it once per row._service and introspection only to the platform. Partner endpoints are public URLs; without this, anyone can post _entities keys and enumerate partner data about every tenant.extensions through to clients.@requires hop runs after the platform fetches), minus a margin. Router defaults sit at 30-60 seconds.@requires fetch always loses to it on defaults.See references/router-isolation.md for the per-control detail, the router CVEs that widen partner exposure, and engine defaults.
Show partner data only to tenants that installed the partner and consented to its data flow. A field visible to every tenant implies a partner relationship most tenants never chose.
For rungs 1-2, partner data sits behind generic platform fields, so control access per value, not per schema field:
For rungs 3-5:
Partners who ship subgraphs depend on the platform's federation dialect, registry and router. That makes the router choice a partner-facing contract:
@override, or @shareable/@provides on fields the platform already marks shareable, that composes and ships, because composition passed.@requires pulling a field outside the data-clearance list.Authorization or Cookie forwarded to a partner through a catch-all propagation rule._entities calls without verifying a platform credential.Gates, each binary; iterate the design until all pass:
@override on a platform field is rejected.Authorization, Cookie or platform key.These pass conditions are set by this skill from the controls above, not published benchmarks; adjust the canary setup, never the direction.
Order in our public GraphQL API. We run a federated graph already - can they just ship subgraphs?"Customer type and query it back through GraphQL."Expected output: a design record with the need classification, the chosen rung per need with the ranking lines and which interview answer moved them, then - for the chosen rung - the partner contract, the data-clearance list, the credential model, blast-radius values, the visibility rule, and the lifecycle steps. A review of an existing partner integration emits the same sections as findings, each naming the failure mode it hits.
samber/developer-platform-skills@public-graphql-api-design - the single-owner public schema and the internal federation trust boundary (only the router is public); this skill starts where outside contributors enter.samber/developer-platform-skills@api-integration-surface-strategy - whether GraphQL is the right surface at all.samber/developer-platform-skills@api-versioning-policy - notice windows for platform changes that break partner composition, and for partner offboarding.samber/developer-platform-skills@partner-app-onboarding - the partner's journey to a first submitted integration, which this design plugs into.samber/developer-platform-skills@webhook-platform-design - rung 0 in depth.samber/developer-relations-skills@developer-ecosystem-strategy - whether to open the platform to third parties at all, in the sibling collection.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills62 skills in this plugin
/agent-integration-surfacesPlans how a SaaS or developer platform opens itself to AI agents, provider side - which agent classes may reach which surface, how an agent proves its identity and acts for a user (Web Bot Auth, delegated tokens, provision-then-claim signup), which execution path each gets, where agents find it (Context7, api-catalog) and how agent usage is counted. Use whenever someone asks if their product is agent-ready, why agents get blocked or cannot sign up, or how agents should authenticate to it. Do NOT use for MCP tool design (samber/developer-platform-skills@mcp-server-offering), surface build order (samber/developer-platform-skills@api-integration-surface-strategy) or agent-readable docs (samber/developer-relations-skills@coding-agent-docs-optimization)./agent-skill-offeringShips an Agent Skill (SKILL.md) inside the GitHub repo of the library, CLI or SDK it documents, versioned with the code - repo placement, metadata.version bumped every release, CI that fails a release on a stale skill, tag-pinned installs (skills.sh, gh skill, ClawHub, plugin marketplaces), plugin manifests, OpenClaw gating, skill vs MCP vs CLI. Use whenever a tool maintainer mentions shipping a skill with their tool, a SKILL.md for their library, keeping a skill in sync with releases, or plugin.json versions for a skill beside code - even if they never say "agent skill". Not for standalone skill collections. Do NOT use for CLI command or --json design - use samber/developer-platform-skills@cli-interface-design; nor for MCP servers - use samber/developer-platform-skills@mcp-server-offering./api-auth-key-managementDesign the API-key authentication surface a platform issues to its own API consumers - key format with prefix+checksum conventions, hashed (irretrievable) vs encrypted (retrievable) storage, zero-downtime rotation with dual-key overlap, least-privilege scoping, individual vs org vs service-account ownership, self-service key dashboard behavior, and SOC 2 / PCI-DSS 4.0 lifecycle governance. Use whenever the user mentions API keys, secret keys, key prefixes, key rotation, key scoping, or revoking keys after an employee departure - even if they never say "API key management". Provider side only, not consuming another vendor's API. Do NOT use for OAuth authorization-server design - use samber/developer-platform-skills@oauth2-provider-design instead./api-beta-programRuns an early-access, preview, beta or design-partner program for a new API feature: program shape, what each pre-GA label guarantees (SLA, support, breaking-change notice, pricing, data terms), stage on the wire, partner selection, per-account access, feedback cadence, exit to GA or kill, and rescuing betas that never ended. Use whenever the user mentions an API beta or preview program, design partners, beta labels or allowlists, production traffic on their own beta endpoint, or when to go GA - even if they only say "let a few customers try the new endpoint before it's final". Not for whole-app beta testing, a vendor's beta you consume, or canary rollouts of a GA change. Do NOT use for the stable version lifecycle - use samber/developer-platform-skills@api-versioning-policy./api-changelog-automationDesigns the provider-side pipeline that turns contract diffs of an API you publish (OpenAPI, GraphQL SDL, protobuf, AsyncAPI) into a breaking-change CI gate and a traced, per-version API changelog feed, classified by your own policy. Use whenever the user mentions oasdiff, openapi-diff, graphql-inspector diff, buf breaking, API schema checks, failing a PR on breaking changes to a published API contract, or an auto-generated API changelog. Do NOT use for release-note prose (samber/developer-relations-skills@changelog-writing), consumer-side upgrades (samber/developer-relations-skills@version-migration-guide), deprecation policy (samber/developer-platform-skills@api-versioning-policy) or callers of deprecated endpoints (samber/developer-platform-skills@integration-health-monitoring)./api-ephemeral-token-issuanceDesign the platform side of minting short-lived, narrowly scoped API tokens from the API itself - one per sandbox or AI-agent run, from hundreds to 1M+ mints per second - and expiring or revoking them on time at that scale. Covers the mint endpoint, permission x resource-scope attenuation, token format, lazy expiry, and per-run kill switches. Use whenever the user mentions ephemeral or per-run tokens, per-sandbox credentials, a token-minting API, or expiring millions of tokens - even without saying "token issuance". Provider side only, never consuming another vendor's tokens. Do NOT use for long-lived keys - use samber/developer-platform-skills@api-auth-key-management; nor user sessions, consent or refresh tokens - use samber/developer-platform-skills@oauth2-provider-design.Other plugins' skills for the same job