smart-citizen: Command for Claude Code

.claude/commands/start_release.md

start_release is a command for Claude Code from Osiris-DevWorks/smart-citizen. It costs 22 tokens per session (1,128 once invoked), scanned A, original, Apache-2.0.

A release command that opens the next version branch from the main branch and updates the project’s version number. A release branch is a separate line of work used to prepare a software version.

In plain words
What is it for?
Use it with major, minor, or patch to start the corresponding release, update VERSION.TXT, and commit the kickoff change locally.
Why use it?
It applies the project’s versioning rules consistently and stops if a required check fails, while leaving pushing the branch to the user.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

This is Osiris-DevWorks/smart-citizen's own configuration. It tells Claude Code how to work on smart-citizen itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything smart-citizen configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Osiris-DevWorks/smart-citizen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Osiris-DevWorks/smart-citizen/main/.claude/commands/start_release.md
Clone the repo
git clone --depth 1 https://github.com/Osiris-DevWorks/smart-citizen

Made for: Claude Code.

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 start_release

README.md
[![agentmods](https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/start_release/github.svg)](https://agentmods.dev/commands/osiris-devworks/smart-citizen/start_release)
Your own site
<a href="https://agentmods.dev/commands/osiris-devworks/smart-citizen/start_release"><img src="https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/start_release/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for start_release

Your own site · 80×15
<a href="https://agentmods.dev/commands/osiris-devworks/smart-citizen/start_release"><img src="https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/start_release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00022 $0.01128
Opus 5.5 $0.00009 $0.00451
Sonnet 5.5 $0.00004 $0.00226
Haiku 4.5 $0.00002 $0.00113

Measured 2mo ago against content hash 82f7d8136f61, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

start_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 2mo 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.

.claude/commands/start_release.md · 86 lines

How it starts

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

/start_release

Open the next integration branch per the documented release model. Bumps VERSION.TXT and commits the kickoff change locally. Does not push — the user pushes when ready.

Argument

$ARGUMENTS — required, one of major, minor, patch. Determines how to bump the current VERSION.TXT:

  • major: X.Y.Z → (X+1).0.0
  • minor: X.Y.Z → X.(Y+1).0
  • patch: X.Y.Z → X.Y.(Z+1)

If $ARGUMENTS is empty or not exactly one of the three values, abort and ask the user for the missing arg. Do not guess.

Procedure

Stop on the first failure of any step. Never proceed past a failed check.

1. Validate the argument

$ARGUMENTS must be exactly major, minor, or patch (case-sensitive). Otherwise abort with: "/start_release requires one of: major, minor, patch".

2. Read and parse VERSION.TXT

Read VERSION.TXT. Strip whitespace. Split on . — must yield exactly three non-negative integers. If parsing fails, abort with the offending content.

3. Compute the next version

  • major → bump first part, reset second and third to 0
  • minor → bump second part, reset third to 0
  • patch → bump third part only

Build NEW_VERSION = "X.Y.Z" and NEW_BRANCH = "release/X.Y.Z".

4. Safety preconditions

Run each. Abort on the first failure.

  • On main: git branch --show-current must equal main. If not, abort: "Switch to main before starting a release."
  • Clean working tree: git status --porcelain must be empty. If dirty, abort and list the offending files: "Working tree has uncommitted changes; commit or stash before starting a release."
  • main up to date with origin (best-effort): try git fetch origin main. If the fetch succeeds, check git rev-list --count main..origin/main. If > 0, abort: "Local main is behind origin/main. Pull before starting a release." If the fetch itself fails (no network, no origin), warn the user but proceed — don't block on offline work.
  • Branch does not already exist:
    • Local: git rev-parse --verify NEW_BRANCH must fail (exit non-zero). If it succeeds, abort: "NEW_BRANCH already exists locally."
    • Remote: git ls-remote --heads origin NEW_BRANCH must return empty. If non-empty, abort: "NEW_BRANCH already exists on origin."

Read the full file on GitHub · 86 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. 2mo ago First seen · 86 lines · 22 tokens per session scan A 82f7d8136f61

Subscribe to this mod's changes

start_release is a command published in the GitHub repository Osiris-DevWorks/smart-citizen (114 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 1,128 once invoked, about $0.0001 per session on Opus 5.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-30.