emerge: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from jianzhichun/emerge. It costs 11 tokens per session (888 once invoked), scanned A, original, MIT.

A release command that increases a project's version, creates a Git tag, and pushes the release. It can validate a supplied MAJOR.MINOR.PATCH version or calculate the next patch version.

In plain words
What is it for?
Use it to prepare and publish a new Emerge release, including checking the current version, committing tracked changes, running the documentation gate, bumping the version, tagging, and pushing.
Why use it?
Releasing involves several steps that are easy to perform inconsistently. This command also requires the project's documented consistency checklist to pass before tagging and pushing.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is jianzhichun/emerge's own configuration. It tells Claude Code how to work on emerge 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 emerge configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../../...

Part of the emerge plugin — 15 skills, 10 commands, 3 agents, 24 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to jianzhichun/emerge. 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/jianzhichun/emerge/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/jianzhichun/emerge

Made for: Claude Code.

Or install emerge, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 3 agents, 24 hooks.

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/jianzhichun/emerge/release.svg)](https://agentmods.dev/commands/jianzhichun/emerge/release)
Your own site
<a href="https://agentmods.dev/commands/jianzhichun/emerge/release"><img src="https://agentmods.dev/badge/commands/jianzhichun/emerge/release.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 888 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.1 $0.00011 $0.00888
Opus 5 $0.00005 $0.00444
Sonnet 5 $0.00002 $0.00178
Haiku 4.5 $0.00001 $0.00089

Measured 6d ago against content hash 48f2190f1a22, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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/release.md · 92 lines

What it actually says

Release a new version of Emerge.

The user invokes /emerge:release <version> (e.g. /emerge:release 0.2.6). If no version is given, default to a patch bump: read the current version from .claude-plugin/plugin.json, increment the patch number by 1, and proceed without asking.

Documentation policy:

  • docs/doc-consistency-checklist.md is the canonical pre-release doc gate.
  • /emerge:release MUST run and satisfy that checklist before tagging/pushing.

Steps:

  1. Determine version: if provided, validate it matches MAJOR.MINOR.PATCH (no leading v). If not provided, read the current version with:

    python3 -c "import json; print(json.load(open('.claude-plugin/plugin.json'))['version'])"
    

    then auto-compute MAJOR.MINOR.(PATCH+1).

  2. Commit any uncommitted changes before bumping:

    • Run git status to check for dirty state.
    • If there are uncommitted changes, stage all tracked files and commit:
      git add -u
      git commit -m "chore: pre-release cleanup"
      
    • Note: git add -u stages tracked-file changes only. Untracked files are left untouched unless explicitly added.
    • Skip if working tree is already clean.
  3. Build cockpit frontend (hard gate, fail release if build fails):

    cd scripts/admin/cockpit
    npm ci
    npm run build
    cd ../../..
    test -f scripts/admin/cockpit/dist/index.html
    

    The release is invalid without scripts/admin/cockpit/dist/index.html.

  4. Bump all version files using the version-bump script:

    bash scripts/bump-version.sh {NEW}
    

    This updates .claude-plugin/plugin.json, .claude-plugin/marketplace.json (both version fields) atomically.

  5. Run documentation consistency gate using docs/doc-consistency-checklist.md:

    • Run the automated checker first (hard gate):
      python3 scripts/check_doc_consistency.py
      
    • Verify architecture/data-flow docs are current (README.md canonical diagrams, CLAUDE.md invariants aligned).
    • Verify command/skill docs are current (commands/*.md, skills/*/SKILL.md) and do not describe deprecated connector stub loading behavior.
    • Verify MCP surface docs match scripts/emerge_daemon.py.
    • Verify hook semantics docs match hooks/*.py + hooks/hooks.json.
    • Verify test baseline numbers in README.md (badge + quick verification baseline) are current.
    • Run a targeted stale-token scan and fix any hits that are genuinely stale:
      rg "377|2025-03-26|_write_connector_rules|InstructionsLoaded" README.md CLAUDE.md commands skills
      
      (Keep legitimate historical/compatibility mentions; only fix stale/incorrect claims.)
  6. Update README.md — replace the version badge:

    ![Version](https://img.shields.io/badge/version-v{OLD}-blue)
    

    with:

    ![Version](https://img.shields.io/badge/version-v{NEW}-blue)
    
  7. Commit the version bump and built cockpit assets:

    git add .claude-plugin/plugin.json .claude-plugin/marketplace.json README.md scripts/admin/cockpit/dist
    git commit -m "chore: bump version to {NEW}"
    
  8. Tag the release:

    git tag v{NEW}
    
  9. Push (branch + tag):

    git push origin main
    git push origin v{NEW}
    
  10. Report success: confirm the push succeeded and show the new version. Remind the user that Claude Code will detect the update via marketplace refresh.

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. 6d ago First seen · 92 lines · 11 tokens per session scan A 48f2190f1a22

Subscribe to this mod's changes

release is a command published in the GitHub repository jianzhichun/emerge (107 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 888 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-30.