smart-citizen: Command for Claude Code

.claude/commands/PRE_RELEASE.md

PRE_RELEASE is a command for Claude Code from Osiris-DevWorks/smart-citizen. It costs 54 tokens per session (3,795 once invoked), scanned A, original, Apache-2.0.

A pre-release review command for the branch that combines changes for a software release before it is merged into the main code line. It checks code quality, tests, translations, documentation, acknowledgements, and tester verification.

In plain words
What is it for?
Use it before merging a release branch to audit test coverage, translated user-facing text, the tester plan, contributor recognition, preview builds, and issue status.
Why use it?
It gathers the final release checks in one ordered process. Checkpoints give you a chance to review each finding before continuing.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; 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/PRE_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 PRE_RELEASE

README.md
[![agentmods](https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/pre_release/github.svg)](https://agentmods.dev/commands/osiris-devworks/smart-citizen/pre_release)
Your own site
<a href="https://agentmods.dev/commands/osiris-devworks/smart-citizen/pre_release"><img src="https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/pre_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 PRE_RELEASE

Your own site · 80×15
<a href="https://agentmods.dev/commands/osiris-devworks/smart-citizen/pre_release"><img src="https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/pre_release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,795 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.00054 $0.03795
Opus 5.5 $0.00022 $0.01518
Sonnet 5.5 $0.00011 $0.00759
Haiku 4.5 $0.00005 $0.00380

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

Security

Grade A, and why

PRE_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/PRE_RELEASE.md · 241 lines

How it starts

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

/pre_release

Run before merging the active release/X.Y.Z integration branch to main. This is the final gate before the release ships — it confirms code quality, doc currency, test coverage, that every activated language covers the release's user-facing strings and docs, that the tester Test Plan reflects this release's scope, that every code contributor is acknowledged in the project's in-app About and the README, that frequent issue reporters are recognized as testers, and that every issue fixed this cycle is closed (when tester-verified) or explicitly held.

Work through every step in order. After each step, stop at the CHECKPOINT and wait for the user before continuing.

Preflight

  • Confirm the current branch is release/X.Y.Z. If not, abort and ask the user to switch.
  • Confirm working tree is clean (git status --porcelain). If dirty, abort.
  • Confirm VERSION.TXT matches X.Y.Z. If mismatched, surface the discrepancy and ask the user before proceeding.

CHECKPOINT — preflight confirms release branch is ready for audit. Proceed? Wait for the user.

1. Test coverage check

Follow the procedure in .claude/commands/test_coverage_check.md. Present findings grouped by severity (Critical / Major / Minor) and end with the verdict line.

CHECKPOINT — ready for the next check? Wait for the user.

2. UI / docs / tutorial sync check

Follow the procedure in .claude/commands/docs_sync_check.md. Present findings grouped by severity and end with the verdict line.

CHECKPOINT — ready for the next check? Wait for the user.

3. Language support check

Follow the procedure in .claude/commands/language_support_check.md. Present findings grouped by severity and end with the verdict line.

This is the pre-release docs-sync moment the translation policy points at: with the user's approval at this step's checkpoint, AI backfill of missing translations is in scope here (fill at only, never touch a non-empty ht, record the work per languages/TRANSLATIONS.md). New strings that landed this cycle in english/ui.json only are exactly what this step exists to catch.

Read the full file on GitHub · 241 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 · 241 lines · 54 tokens per session scan A 61c5c2902507

Subscribe to this mod's changes

PRE_RELEASE is a command published in the GitHub repository Osiris-DevWorks/smart-citizen (114 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 3,795 once invoked, about $0.0002 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.