spec-release

A release-preparation command that creates release notes, changelog entries, migration checklists, environment-variable documentation, and deployment steps.

In plain words
What is it for?
Use it to prepare a completed feature for deployment and, optionally, create a Git tag or GitHub release.
Why use it?
It helps catch the work between finishing development and safely putting a feature into use.

Command

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 commands/habib0x0/spec-driven-plugin/spec-release
Clone the repo
git clone --depth 1 https://github.com/Habib0x0/spec-driven-plugin
Per session 13 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,049 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.00013 $0.01049
Opus 5 $0.00006 $0.00524
Sonnet 5 $0.00003 $0.00210
Haiku 4.5 $0.00001 $0.00105

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

Security

Grade A, and why

spec-release 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 2d 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.

commands/spec-release.md · 157 lines

How it starts

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

/spec-release Command

Prepare a feature for release by generating changelog entries, migration checklists, environment variable documentation, and deployment steps. Optionally creates a git tag and GitHub release.

Philosophy

The gap between "all tasks complete" and "shipped" is where things break. This command makes deployment preparation systematic — no forgotten migrations, missing env vars, or undocumented breaking changes.

Workflow

1. Locate the Spec

If a spec name is provided, use it. Otherwise auto-detect from .claude/specs/.

2. Gather Release Context

Read the spec files and codebase to collect:

From tasks.md:

  • All completed tasks (these become changelog items)
  • Task descriptions and requirement tracebacks

From design.md:

  • Data model changes (migrations needed?)
  • New environment variables
  • External service dependencies
  • Breaking changes to existing APIs

From requirements.md:

  • User-facing changes (for user-facing changelog)
  • Non-functional changes (for ops changelog)

From acceptance.md (if exists, from /spec-accept):

  • Acceptance status and any conditions

From git log:

  • All commits related to this feature (scan for spec name or task IDs)
  • Authors who contributed

3. Ask Release Configuration

Use AskUserQuestion:

Version bump type:

  • Patch (bug fix, no breaking changes)
  • Minor (new feature, backwards compatible)
  • Major (breaking changes)

Release scope:

  • Full release — Changelog, deployment checklist, env vars, migrations
  • Changelog only — Just the changelog entry
  • Deployment checklist only — Just the ops checklist

4. Generate Release Artifacts

Write to .claude/specs/<feature-name>/release.md:

## Release: [Feature Name]

### Version
[version bump type] — [rationale]

### Release Date
[current date]

### Changelog

#### User-Facing Changes
- [Change derived from user stories — written for end users]
- [Another change]

#### Technical Changes
- [Change derived from tasks — written for developers]
- [Another change]

#### Breaking Changes
- [Any breaking changes from design.md — with migration path]

### Deployment Checklist

#### Pre-Deployment
- [ ] Database migrations applied: [list specific migrations]
- [ ] Environment variables set: [list with descriptions]
- [ ] External services configured: [list dependencies]
- [ ] Feature flags configured: [if applicable]
- [ ] Rollback plan reviewed

#### Deployment
- [ ] Deploy to staging
- [ ] Run smoke tests on staging (see /spec-verify)
- [ ] Deploy to production
- [ ] Run smoke tests on production

#### Post-Deployment
- [ ] Verify health checks pass
- [ ] Monitor error rates for 30 minutes
- [ ] Notify stakeholders
- [ ] Update documentation (see /spec-docs)

### Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| [VAR_NAME] | Yes/No | [default] | [purpose] |

### Database Migrations
[List of schema changes with migration commands, or "No migrations required"]

### Rollback Plan
[Steps to revert this release if issues are found]

### Contributors
[From git log — authors who committed to this feature]

Read the full file on GitHub · 157 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. 2d ago First seen · 157 lines · 13 tokens per session scan A a40ad4aa7f56

Subscribe to this mod's changes

spec-release is a command published in the GitHub repository Habib0x0/spec-driven-plugin (10 stars, last pushed 3mo ago), licensed MIT. It adds 13 tokens to every session and 1,049 once invoked, about $0.0001 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.