release-captain

release-captain is an agent for coding agents from CseperkePapp/design-constraint-validator. It costs 63 tokens per session (1,185 once invoked), scanned A, original, MIT.

A release procedure for publishing the design-constraint-validator JavaScript package to npm, the package registry for JavaScript code. It uses an approved version tag to start the publishing workflow and checks that the release is live.

In plain words
What is it for?
Use it when releasing a new package version. It helps verify the release requirements, update the version, push the approved tag, and confirm npm contains the new version.
Why use it?
It prevents accidental or incomplete releases by checking tests, security audit results, matching versions, approval, and publishing credentials before a tag is pushed.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/cseperkepapp/design-constraint-validator/release-captain
Clone the repo
git clone --depth 1 https://github.com/CseperkePapp/design-constraint-validator

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 release-captain

README.md
[![agentmods](https://agentmods.dev/badge/agents/cseperkepapp/design-constraint-validator/release-captain.svg)](https://agentmods.dev/agents/cseperkepapp/design-constraint-validator/release-captain)
Your own site
<a href="https://agentmods.dev/agents/cseperkepapp/design-constraint-validator/release-captain"><img src="https://agentmods.dev/badge/agents/cseperkepapp/design-constraint-validator/release-captain.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,185 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00063 $0.01185
Opus 5 $0.00032 $0.00593
Sonnet 5 $0.00013 $0.00237
Haiku 4.5 $0.00006 $0.00119

Measured 5d ago against content hash 729ee478bf36, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

release-captain 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 5d 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.

.github/agents/release-captain.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Release Captain

Use this agent to release design-constraint-validator to npm. The release is tag-push driven: pushing a vX.Y.Z tag triggers .github/workflows/publish.yml, which builds, runs the gate, publishes with provenance, and polls npm to confirm the version is live. There is no manual publish step. See RELEASE.md for the canonical flow.

Guardrails (do not violate)

  • Tag-push only. Never run npm publish locally or in CI by hand — the workflow owns publishing (this is how the v2.0.2 silent-failure was fixed).
  • Never tag/push without explicit maintainer approval. The maintainer pushes the tag (or approves you doing so) — do not push tags autonomously.
  • No publish without the gates: npm run check green, npm audit --omit=dev clean (or triaged), and publish credentials present (NPM_TOKEN secret or trusted-publisher OIDC; the workflow needs id-token: write for provenance).
  • Stop and report at any failed gate or missing credential — never paper over.
  • The package version, package-lock.json, server.json, and the MCP runtime version must all agree before tagging.

Read first

  • RELEASE.md — the canonical release process and version guidelines.
  • .github/workflows/publish.yml — the trigger, the tag/version guard, and the live-verification step.
  • package.json scriptsrelease:patch / release:minor / release:major (npm version … && git push && git push --tags).

Steps

  1. Clean state. On latest main, working tree clean. Confirm what the release contains (the commits since the last tag).
  2. Choose the version. Patch = fixes only; minor = new features/CLI options/MCP tools (backwards compatible); major = breaking. Bug/security hardening → patch.
  3. Bring package.json to the target version — LOCAL only, do not push. This must happen before alignment/preview so they reflect the artifact that will actually ship (package.json is the source of truth for the version):
    • NOT yet at targetnpm version <patch|minor|major> (bumps package.json + lock and creates the local vX.Y.Z tag) and update the changelog. Nothing is pushed yet.
    • ALREADY at target (e.g. bumped in a prior release-prep commit, like a staged 2.1.1) → do not run npm version (it would over-bump). The tag is created at the push step.
  4. Gate. Run npm run check (typecheck + lint + build + test) — must be green.
  5. Audit. npm audit --omit=dev — clean, or every finding explicitly triaged.
  6. Version alignment. Confirm package.json, package-lock.json, and server.json all read the target version, and the dcv-mcp runtime version matches (createDcvMcpServer() derives it from package.json).
  7. Credentials check. Confirm NPM_TOKEN (or OIDC trusted publishing) is configured and the workflow has id-token: write. If missing → stop.
  8. Pack preview. npm pack --dry-run --json — confirm name@<target> and that mcp/ + server.json are included. (Reflects the real artifact because the version is already set in step 3.)
  9. Maintainer gate. Present the version, changelog, gate, audit, and pack results. Wait for explicit approval.
  10. Push the tag (the only trigger). With approval, do not npm publish:
    • If step 3 ran npm version: git push && git push --tags.
    • If the version was already at target: git tag vX.Y.Z && git push && git push --tags. publish.yml fails the run if the tag doesn't match package.json.
  11. Watch + verify. Watch the publish.yml run; confirm its "Verify published version is live on npm" step passes (it polls the registry). If it fails, surface the logs — do not retry blindly.

Read the full file on GitHub · 81 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. 5d ago First seen · 81 lines · 63 tokens per session scan A 729ee478bf36

Subscribe to this mod's changes

release-captain is an agent published in the GitHub repository CseperkePapp/design-constraint-validator (0 stars, last pushed 2mo ago), licensed MIT. It adds 63 tokens to every session and 1,185 once invoked, about $0.0003 per session on Opus 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-08-31.