/developer-platform-skills:agent-integration-surfacesfrom developer-platform-skills
Plans how a SaaS or developer platform opens itself to AI agents from the provider side, covering agent class access policies, authentication (Web Bot Auth, delegated tokens, provision-then-claim signup), execution paths, discovery listings, and usage measurement.
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 an agent-readiness planner for a platform team. Decide which AI agents may reach which part of the product, how each one authenticates and acts for a user, which execution path it gets, where it finds the product, and how its usage gets counted. Write it down as one agent integration plan.
"Agents" are not one audience. A training crawler, a coding agent in a terminal and a browser agent filling the signup form need different policies, credentials and surfaces. Most "we are not agent-ready" complaints trace to an edge block or a human-only login, not to a missing MCP server.
This skill owns the cross-cutting layers and hands each surface's design to its owner:
| Layer | Owned here | Designed by |
|---|---|---|
| Agent class x surface access policy (marketing, docs, signup, app, API) | yes | - |
| Agent identity, delegation, agent credentials | the model and rules | samber/developer-platform-skills@api-auth-key-management (keys, scopes, rotation), samber/developer-platform-skills@oauth2-provider-design (grants, consent) |
| Provision-then-claim signup | yes | - |
| Execution path per agent class, skill-to-CLI contract | the choice and the contract | samber/developer-platform-skills@cli-interface-design, samber/developer-platform-skills@agent-skill-offering, samber/developer-platform-skills@mcp-server-offering |
| Discovery listings (Context7, api-catalog, agent card) | yes | docs entry points and markdown endpoints: samber/developer-relations-skills@coding-agent-docs-optimization |
| Agent-safe API basics | a checklist | the owners named in Agent-safe API basics |
| Agent-originated usage measurement | yes | MCP server telemetry: samber/developer-platform-skills@mcp-server-offering |
Stop and route elsewhere when:
samber/developer-platform-skills@api-integration-surface-strategy.samber/developer-relations-skills@developer-docs-ai-visibility.Ask one question at a time, multiple choice where possible. Skip what detection or the conversation already answered.
Re-rank the rungs in Rank the rungs against 8-10, and against 1, 4 and 7. Say which answer moved which rung.
--json CLI. Shell-less clients and per-user remote access get MCP. Fleets get the API plus SDKs. Write the skill-to-CLI contract from references/skill-cli-pairing.md.If your environment has persistent memory, store the agent classes, the matrix, the gate results, the baseline and the rung decisions, dated, in the project context file when one exists, so the next run compares against them.
| Rule | Rationalization | Why it is wrong |
|---|---|---|
| Enforce agent policy at the edge, never in robots.txt alone | "robots.txt already blocks the bots" | OpenAI and Google say their user-triggered fetchers may ignore it. Anthropic's honor it. The same line has three effects. |
| robots.txt tokens are per class | "we disallowed ClaudeBot, so Claude is out" | ClaudeBot is the training crawler; Claude-User and Claude-SearchBot stay allowed. Each vendor needs one line per class. |
| A user-agent string is a claim, not an identity | "the UA says ChatGPT-User" | Anyone can send it. Confirm with the vendor's IP list or a verified Web Bot Auth signature. |
| Identity is not delegation | "the request is signed, so it acts for the user" | Web Bot Auth proves the operator. It carries no user grant. Delegation needs a user token. |
| Agents never get a human's long-lived key or session | "the user pasted their API key, it works" | One leaked agent context exposes the whole account, and revocation takes the human down with it. On a shared local CLI the agent inherits the human's per-install session: bound it with refresh-token rotation, an absolute lifetime and narrow scopes. Per-agent revocation is impossible there, so list it. |
| No secret in a URL | "agent browsers cannot set cookies" | URLs land in logs, history, referrers and analytics. Use a one-time code exchanged server-side. Claim links are the only exception: single-use, expiring, and working only after the human logs in or signs up. |
| Never build against an expired or individual draft | "this OAuth agent draft fits exactly" | The on-behalf-of-user draft expired in early 2026. Build on RFC 8693 and drafts' rules, not their wire format. |
| Data on stdout only | "a one-line banner is harmless" | It breaks every JSON parse. Cloudflare's Wrangler shipped exactly that bug. |
| Agent counts need a method | "60% of signups are agents" | Env-var detection is a self-report and a floor. Neon's 80% and Supabase's 60-70% are company claims about database creations. |
Check each; hand failures to the owner. An agent recovers only from what it can parse.
samber/developer-platform-skills@api-error-design.samber/developer-platform-skills@api-idempotency-retry.Retry-After: samber/developer-platform-skills@api-rate-limit-policy.samber/developer-platform-skills@api-test-mode-design.samber/developer-platform-skills@cli-interface-design for the CLI, samber/developer-platform-skills@mcp-server-offering for tools.The reachability gate is not a rung. Until "allow" cells return 200 for the agents meant to use them, every rung below scores zero.
| Rung | What it buys | Effort | Value | Efficiency |
|---|---|---|---|---|
| A. Measurement tags | which agents arrive, by class and client | +++ | ++ | ++++ |
| B. Docs markdown and Context7 claim | coding agents reading current docs | ++ | + | +++ |
| C. Agent credentials and delegation | agents act for users without a human's key | - | ++++ | ++ |
D. Skill plus --json CLI | shell agents complete workflows | - (++ if a CLI exists) | +++ | + |
| E. MCP server | shell-less clients, per-user remote auth | -- | +++ | - |
| F. Provision-then-claim signup | agents start usage with no human in the loop | --- | ++++ | -- |
| G. Discovery files (api-catalog, agent card) | machine discovery by the few readers | ++++ | - | --- |
Symbols score favorability to you: ++++ effort means near-zero effort.
discovery files > measurement tags > docs markdown and Context7 > credentials == skill plus CLI > MCP > claim flowcredentials == claim flow > skill plus CLI == MCP > measurement > docs markdown and Context7 > discovery filesmeasurement > docs markdown and Context7 > credentials > skill plus CLI > MCP > claim flow > discovery filesG scores worst on efficiency despite near-zero effort because almost nothing reads it yet.
Two more axes, because options carry legal and rework exposure:
docs == discovery files > measurement > skill plus CLI == MCP > credentials > claim flow. Measurement adds CLI telemetry, which carries a disclosure or opt-out duty. Skill plus CLI and MCP tie because each opens the same write paths to agents and needs the same security review. The claim flow needs Terms of Service accepted at claim and no personal data in unclaimed resources; credentials trigger a security review. Pay per crawl and denying training need a legal read of existing content licenses.measurement == skill plus CLI == claim flow == api-catalog > credentials > docs > MCP > agent card. G splits here because only the agent card carries rework risk. The claim flow's state machine is product-internal and api-catalog is a final RFC. Credentials built on RFC 8693, 8628 and 9728 hold; only signed-identity verification tracks a draft. MCP's protocol and the agent card's are young and still change.Credentials and the claim flow tie on value: each removes the human from a step an agent otherwise cannot pass. Skill plus CLI and MCP tie on value because each serves a different client class completely; answer 1 decides which one applies.
Default: measurement, then the docs rung (delegated), then credentials. Move up to skill plus CLI once logs show shell agents failing at login or prompts.
Starved: provision-then-claim. It needs signup, billing and abuse controls rebuilt, so it loses every ratio. Promote it to rung 1 when self-serve developers are the funnel and agents already create a share of new accounts or resources.
Delete, do not park:
Re-rank against the user:
samber/developer-platform-skills@mcp-server-offering).++); existing human-only OAuth moves C down to a scope review.This order is a default, not a law. Say which answer moved which rung.
Unanswered 8-10 never block the plan. Default them to no date, a standing channel and one engineer for a quarter, and print each default in the plan so the user can overturn it.
One agent integration plan:
evals/evals.json (opens in a new tab)references/agent-classes-and-access-policy.md (opens in a new tab)references/agent-identity-and-delegation.md (opens in a new tab)references/agent-traffic-measurement.md (opens in a new tab)references/discovery-and-content-serving.md (opens in a new tab)references/skill-cli-pairing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills61 skills in this plugin
/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-error-designDesign the error surface of a public API so integrators self-serve fixes - a machine-readable error-code taxonomy (flat catalog, code/subcode, Google-style domain/reason), the RFC 9457 problem-details envelope with extension members, actionable error messages, retryability signaling (retryable flag, Retry-After), and per-endpoint error documentation with request-ID tracking. Use whenever the user mentions API error codes, an error taxonomy, RFC 9457, application/problem+json, 4xx/5xx response bodies, or confusing API error messages - even if they never say "error design". Do NOT use for client-side retry mechanics - use samber/developer-platform-skills@api-idempotency-retry - nor for incident and status-page communication - use samber/developer-platform-skills@api-status-communication instead./api-idempotency-retryDesign idempotency-key support and client retry guidance for a public API so integrators retry safely - key derivation and per-caller scoping, storage TTL and replay windows, atomic claim mechanisms (DB unique constraint, SERIALIZABLE row lock, conditional writes), payload-mismatch rejection, in-flight duplicate handling, exponential backoff with jitter, retry budgets, timeout propagation, and SDK retry defaults. Use whenever the user mentions an Idempotency-Key header, duplicate or double-submitted requests, safe POST retries, backoff, or jitter - even if they never say "idempotency". Do NOT use for what the error response signals (samber/developer-platform-skills@api-error-design) or webhook delivery retries (samber/developer-platform-skills@webhook-platform-design).