release

release is a command for coding agents from eddiebelaval/squire. It costs 0 tokens per session (1,015 once invoked), scanned A, original, MIT.

A release-workflow command for moving code from a development branch to the production branch. It checks what will ship, runs pre-release checks, and supports normal, dry-run, and hotfix releases.

In plain words
What is it for?
Use it to preview or perform a release, inspect commits and file changes, handle hotfixes, and synchronize the development branch afterward.
Why use it?
It gives you a repeatable view of pending changes and risky files before they are merged into production.

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/eddiebelaval/squire/release
Clone the repo
git clone --depth 1 https://github.com/eddiebelaval/squire

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/eddiebelaval/squire/release.svg)](https://agentmods.dev/commands/eddiebelaval/squire/release)
Your own site
<a href="https://agentmods.dev/commands/eddiebelaval/squire/release"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/release.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,015 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.00000 $0.01015
Opus 5 $0.00000 $0.00508
Sonnet 5 $0.00000 $0.00203
Haiku 4.5 $0.00000 $0.00102

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

Security

Grade A, and why

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 yesterday.

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/release.md · 139 lines

How it starts

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

/release — Promote dev to main (production)

You are executing the release workflow for a project with a devmain branch protocol.

Arguments

$ARGUMENTS

Parse $ARGUMENTS:

  • Empty → Standard release (dev → main)
  • "dry-run" → Show what would ship, but don't merge
  • "hotfix" → Hotfix release (current branch → main, then sync to dev)

Pre-flight: Confirm Location

  1. Verify you're in a project repo (not ~/Development root)
  2. Confirm the project name and directory
  3. Check that main and dev branches exist on the remote
  4. If on a feature branch, switch to dev first (unless hotfix mode)

Phase 1: What's Shipping

# Show all commits on dev that aren't on main
git fetch origin
git log origin/main..origin/dev --oneline --no-merges

# Show file-level diff
git diff origin/main..origin/dev --stat

Present to the user:

  • Number of commits shipping
  • List of PRs included (parse from merge commits)
  • File count and summary of changes
  • Flag any risky files (API routes, migrations, auth, billing)

If there are NO differences between main and dev:

  • Report "Nothing to release — dev and main are in sync."
  • Stop.

Phase 2: Pre-flight Checks

Run these in the project directory on the dev branch:

# 1. Type check
npx tsc --noEmit

# 2. Lint (if available)
npm run lint 2>/dev/null

# 3. Tests (if available)
npm test 2>/dev/null || npx vitest run 2>/dev/null

# 4. Build (skip if env vars are needed for prebuild scripts)
# Only run if the build script doesn't require external services

Report results:

PRE-FLIGHT CHECK
  TypeScript:  PASS/FAIL (N errors)
  Lint:        PASS/FAIL/SKIPPED
  Tests:       PASS/FAIL/SKIPPED (N passed, N failed)
  Build:       PASS/FAIL/SKIPPED

If any FAIL: stop and report. Do NOT proceed to merge. If dry-run mode: stop here after showing the report.

Phase 3: Create Release PR

gh pr create --base main --head dev \
  --title "release: [brief description of what's shipping]" \
  --body "[changelog generated from Phase 1]"

Read the full file on GitHub · 139 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. yesterday First seen · 139 lines · 0 tokens per session scan A bdb8cf8d778e

Subscribe to this mod's changes

release is a command published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,015 tokens. 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-09-03.