/developer-platform-skills:agent-skill-offeringfrom developer-platform-skills
Guides tool maintainers on shipping an Agent Skill (SKILL.md) inside their library/CLI/SDK repo, versioned with the code. Covers repo placement, metadata.version bumping, CI gating on stale skills, tag-pinned installs, and plugin manifests.
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; scripts run unread.
You are a release engineer for agent-facing tooling. Make a library, CLI, SDK or tool ship its own Agent Skill, in its own repo, so the skill an agent loads always matches the code version it runs.
The problem this solves: coding agents misuse tools from stale training data - removed flags, renamed functions, old defaults. A shipped skill fixes that only while it matches the installed version. A skill that drifts from the code teaches the same wrong calls, now with the maintainer's authority. Everything below exists to keep the two in lockstep.
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.
The hard rule of this skill. Audit every plan against it before anything else.
metadata.version MUST equal the code version, bumped in the same commit or release job that bumps the code, because an installer or agent can only detect a mismatch it can read.Rationalizations to reject:
| Rationalization | Why it fails |
|---|---|
| "Patch release, the skill didn't change, skip the bump." | The version is the lookup key. A skill still saying 1.3.0 on the 1.3.1 tag reads as stale to every check and every user. Bump it by script; content can stay identical. |
"We'll keep skills for all our tools in one org/skills repo." | That repo releases on its own clock. Its HEAD documents some mix of versions. The rule is per tool repo. |
| "Users install from the default branch anyway." | Then the default branch documents unreleased features to users on the last release. Pin installs to tags (step 6), or the gap is guaranteed. |
| "The version check is enough." | Equal versions prove only that someone bumped a string. Rule 4 also needs the content check (step 5). |
Ask before designing; each answer changes a later step. Batch them - this is a tactical build, not a strategy interview.
package.json, pyproject.toml, a version constant)? Are tags prefixed (monorepo components), and are there maintenance branches or prereleases? What is the repo's license? (the skill's license matches it)If your harness has persistent memory, record: the version source of truth, the tag format, the gate list, the chosen channels and the pinned-install command. A later release run then checks the same gates instead of re-deriving them.
The skill always ships (lockstep rule). This step decides what it carries and what sits beside it, by who calls the tool and what they need:
references/. This is where skills measurably help most.samber/developer-platform-skills@mcp-server-offering.samber/developer-relations-skills@coding-agent-docs-optimization.What to add beside the skill, for a coding-agent audience:
MCP server > bundled docs + agent-instructions pointer > JSON output on the CLI > nothingJSON output on the CLI > bundled docs + agent-instructions pointer > MCP server > nothingJSON output on the CLI > bundled docs + agent-instructions pointer > nothing > MCP serverDefault rung: skill + JSON output on the CLI; hand the CLI's command, --json and exit-code design to samber/developer-platform-skills@cli-interface-design. Add the bundled-docs pointer when agents keep calling removed APIs even with the skill installed. Promote MCP only for an audience without a shell.
skills/<skill-name>/SKILL.md at the repo root. Most installers discover skills/ without configuration, and plugin manifests point at ./skills/.acme-cli, acme-cli-migrations. The name is public API (rule 5).SKILL.md passes ~250 lines. Keep the set small: focused skills beat exhaustive bundles, and large skill libraries measurably shadow each other..claude/skills/, .agents/skills/): those serve agents working on the repo itself, as does the repo's AGENTS.md. User-facing skills go in skills/.files list, archive contents, embedded assets), and check it in CI (gate 3). A skill that exists only in git is invisible to registry users. Go modules carry skills/ in the module zip automatically.Split ownership so nothing is stated twice:
<tool> --help, <tool> <cmd> --help or the generated reference instead of copying them.references/ owns the long tail: per-domain detail loaded only when needed.Open the body with a two-sided version guard the agent executes. Some harnesses never show the frontmatter to the model, so the body carries one Skill version: line outside any code fence; the bump script rewrites it and gate 2 checks it. Name no other version anywhere in the prose.
Skill version: 1.4.0
Run `acme --version` first (libraries: read the installed package version).
- Same major.minor: continue. If only the patch differs, mention the matching tag once.
- Major or minor differs, in either direction: trust `acme --help` over this skill's
command names, and tell the user to install the skill from their version's tag.
- A development build reporting `dev`: continue.
Follow the Agent Skills spec with keys name, description, license (the repo's own license), compatibility, metadata. Omit the spec's experimental allowed-tools: it pre-approves tools without a prompt. Put the version in metadata.version as a quoted string; the spec has no top-level version. Declare the binary in compatibility without a version number ("Requires acme-cli on PATH"), so no second version string goes stale. Write the description as what + when, with the tool's name and the tasks users type. For general skill-writing quality, use your preferred skill-authoring guidance; this skill covers shipping, not prose.
Good and bad bodies for CLI and library skills: references/skill-content-examples.md.
SKILL.md metadata.version, .claude-plugin/plugin.json, .codex-plugin/plugin.json, .cursor-plugin/plugin.json, gemini-extension.json. Leave version out of the marketplace file's plugins[] entry: the plugin's own manifest silently wins when both are set.Skill version: body line (step 3), so the bump lands in the release PR.make release VERSION=x.y.z target that runs scripts/check-skill-version.py x.y.z --write --manifest ..., then the gates, commits, tags and pushes. Goreleaser itself runs after the tag and cannot bump.release/1.3) as on the default branch.1.5.0-rc.1). Version equality is the contract. Some plugin installers key their cache on the manifest version: a set but unbumped version reports "already latest" and users keep the stale copy.metadata.version and its Skill version: body copy as provenance for humans, guards and checks. No installer reads them; installers resolve a git tag, a commit or a manifest version.Run on every pull request that touches code or skills, and again before the tag is created. Ranked:
golden agent tasks > content check > changed-surface check > version equality == spec validation == security scancontent check > golden agent tasks > version equality > changed-surface check > security scan > spec validationversion equality == spec validation > content check > security scan > changed-surface check > golden agent tasksThe version-equality / spec-validation tie is real: both are one offline command, and each catches a failure the other cannot.
scripts/check-skill-version.py (Python 3.8+ standard library; --help lists the options) into the tool's repo. Run it on every pull request against the version source of truth (for tag-only repos, the last tag: git describe --tags --abbrev=0), on the release PR or in make release before tagging, and once more on the tag as a backstop (a tag-time failure means deleting the tag). It checks metadata.version, the Skill version: body line and every manifest; it rejects a top-level version:, unquoted, duplicate, flow-style or nested metadata keys (--allow-nested openclaw admits OpenClaw's block), and strips monorepo tag prefixes with --tag-prefix.<tool> help --json, nested --help, the exported API). Stale direction: every command, flag and identifier the skill names must exist. New-surface direction: every public command added since the last release must be mentioned or allowlisted. For libraries, compile or type-check every code block. Also assert the packaged artifact contains skills/. Projects whose version checks stayed green have shipped skills naming APIs removed a major version earlier; this gate is what catches that.skills/ changed, fail or require an explicit "skill unaffected" label.skills/ (see step 8).Default rung: gates 1-3 and 6 before tagging, gates 1-4 and 6 on pull requests. Workflow snippets, the --help extraction pattern, the library variant and release-tool hooks: references/ci-release-gates.md.
No installer resolves "the skill matching the code I installed" by itself. Most can pin a git tag or commit; one resolves the latest tagged release when unpinned; others follow the default branch. A tag-pinned install matches only at install time: the binary can upgrade silently (package manager, auto-update) while the pinned skill stays put, which is why the guard in step 3 checks both directions. Ranked:
effort: bundled with the code > plugin marketplace pinned to a tag > tag-pinned git install > default-branch install
value (version match guaranteed): bundled with the code > plugin marketplace pinned to a tag > tag-pinned git install > default-branch install
efficiency: tag-pinned git install > bundled with the code > plugin marketplace pinned to a tag > default-branch install
Default rung: tag-pinned git install. Generate the exact tag-pinned command per channel into every release note. In the README, print the commands with a v<your-installed-version> placeholder and the tool's version command, so the README never goes stale. Near-zero effort once tags carry matching skills (rule 3).
Binary-only package managers (Homebrew, apt, a release download): users get the binary and no skill, so a git install is a second manual step they skip. Print the matching install command in the tool's own --help or first-run output, and treat this as the promotion condition for the bundled rung below.
Starved option: bundled with the code - the skill ships inside the package or binary and a subcommand installs or syncs it (<tool> install --skills, <tool> update), or the skills installer links it from the installed package. Version match by construction, highest effort. Promote it when most users install through a package manager, or when stale-skill issues keep arriving.
Add a runtime drift notice when the tool can know: compare the installed skill's recorded version with its own version and print one agent-parseable line, e.g. skill acme-cli 1.3.0 differs from acme 1.4.0; run: acme skills update.
Self-hosted plugin marketplace (source: "./"): users who add it from the default branch get merged-but-unreleased skill text under the last released version, and the cache may never refresh. Tell them to add the marketplace at a release tag, or keep a stable branch moved only at release.
Keep the default branch releasable, or tell users that a default-branch install may document unreleased features.
Prereleases: keep them off every default install. Cut them from a next branch (or tag a commit off the default branch), mark the GitHub release as a prerelease so latest-release resolution skips it, and move the stable branch or recommended marketplace tag only on final releases.
Per-channel commands, ref syntax, lockfiles, update behaviour and manifest fields: references/distribution-channels.md.
./skills/: .claude-plugin/plugin.json, .claude-plugin/marketplace.json (self-hosting the plugin, source: "./", no version in the entry), .codex-plugin/plugin.json, .cursor-plugin/plugin.json, gemini-extension.json.version comes from step 4's source of truth and is checked by gate 2.metadata.openclaw block map whose requires.bins block list names the tool's binary, so OpenClaw offers the skill only where the tool is installed. It is a spec deviation; allow it in gate 2 only for that key. Keys, ClawHub publishing and the MIT-0 catch: references/distribution-channels.md § OpenClaw and ClawHub.plugin.json and marketplace.json field, source form and directory check: references/plugin-manifest-fields.md.SKILL.md folders and rank them by installs reported by the installer's telemetry. The README install section is the listing's real driver.agent-skills, gemini-cli-extension), and link the install command from the tool's official docs.https://claude.ai/directory/manage (paid claude.ai plan): Submit new, Plugin bundle, the repository, then Validate. Set Branch or tag to the stable branch moved only at release (step 6): left empty it follows the default branch, so every merge becomes a candidate version that goes live once auto-publish is on or someone selects Publish. A tracked tag must be re-pointed each release. A README under 40 words or a missing license blocks the listing.scripts/ few, readable, offline and dependency-pinned; call the tool's own published CLI instead of bundling binaries.snyk-agent-scan) in CI next to the spec validator, and sign release tags. Workflow step, token and flag cautions: references/ci-release-gates.md § Gate 6.version: 1.4.0 at frontmatter top level -> non-spec; move under metadata as a quoted string.metadata.version -> invisible to the agent in harnesses that strip frontmatter; keep the Skill version: body line.owner/repo with no ref -> users get the default branch, not their version.--help.version set in both the plugin manifest and its marketplace entry -> one silently wins; keep it in the plugin manifest.--version -> the registry picks its own next patch; pass the release version.metadata.openclaw copied in flow form ({...} or [...]) -> strict YAML validators reject the file; convert to block style.stable branch.AGENTS.md mistaken for the user-facing skill -> different audience, different file.Expected output: the repo layout, the version-wiring change, the CI gate list with commands, the install commands per channel, and the manifests - each checked against the lockstep rule.
The setup passes when all hold:
metadata.version fails before its tag exists.version equals the tag on the last three releases.samber/developer-platform-skills@api-integration-surface-strategy - for a SaaS platform choosing among all its integration surfaces; this skill starts once an agent skill is chosen.samber/developer-platform-skills@sdk-package-publishing - registry publishing mechanics for the package the skill rides in.samber/developer-platform-skills@github-action-offering - the same release discipline (frozen contract, immutable tags, CI gates) for the tool's official GitHub Action.samber/developer-platform-skills@agent-integration-surfaces - the platform-wide agent plan the skill sits in: access policy, agent identity, signup, measurement.evals/evals.json (opens in a new tab)references/ci-release-gates.md (opens in a new tab)references/distribution-channels.md (opens in a new tab)references/plugin-manifest-fields.md (opens in a new tab)references/skill-content-examples.md (opens in a new tab)scripts/check-skill-version.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
61 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)./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.npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills