sema: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from sema-lisp/sema. It costs 0 tokens per session (1,283 once invoked), scanned A, original, MIT.

A procedure for preparing and publishing a software release, including tests, linting, documentation checks, version updates, tagging, and pushing.

In plain words
What is it for?
Use it to cut patch, minor, or major releases after verifying the workspace and updating the required version files.
Why use it?
It prevents a release from being tagged or published while the CI-equivalent checks are failing.

Command for Claude Code

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

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/check-web-runtime-fresh.sh # must print "current ✓".

Reuse

Borrowing it

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

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 release

README.md
[![agentmods](https://agentmods.dev/badge/commands/sema-lisp/sema/release/github.svg)](https://agentmods.dev/commands/sema-lisp/sema/release)
Your own site
<a href="https://agentmods.dev/commands/sema-lisp/sema/release"><img src="https://agentmods.dev/badge/commands/sema-lisp/sema/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 release

Your own site · 80×15
<a href="https://agentmods.dev/commands/sema-lisp/sema/release"><img src="https://agentmods.dev/badge/commands/sema-lisp/sema/release.svg" alt="Reviewed on agentmods" width="80" 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,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.01283
Opus 5.5 $0.00000 $0.00513
Sonnet 5.5 $0.00000 $0.00257
Haiku 4.5 $0.00000 $0.00128

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

Security

Grade A, and why

release scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

(e.g. `curl failed` / `HTTP2 framing layer` / `download of config.json failed`)
.claude/commands/release.md · 131 lines

How it starts

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

Cut a Release

Run the Sema release procedure end-to-end. $ARGUMENTS may contain the target version (e.g. 1.21.2) or a bump kind (patch/minor/major); if absent, infer the bump from the unreleased changes and confirm before tagging.

This mirrors Release Procedure in CLAUDE.md. Do the steps in order and stop on the first failure — never tag or push a red build.

Step 1 — Pre-flight (run the FULL CI-equivalent suite; must be green)

Plain cargo test is NOT enough — CI also runs the example + bytecode smoke tests, and a gap there once shipped a regression past four releases. Run what CI runs:

cargo test --workspace      # unit + integration tests
jake examples               # smoke-test every .sema example (catches eval regressions)
jake smoke-bytecode         # bytecode round-trip smoke test
jake lint                   # fmt-check + clippy -D warnings
jake docs-check             # builtin doc index fresh
git status --short          # the release commit should only bump version + Cargo.lock

Fix anything red before proceeding. The crates.io/npm publish workflows now gate on a verify job (.github/workflows/verify.yml) running these same checks, so a red suite blocks publishing — but catch it locally first to avoid a failed tag.

Step 2 — Choose the version

Read the top of CHANGELOG.md and the current version in Cargo.toml. Decide the new X.Y.Z:

  • patch — bug fixes only
  • minor — new user-facing features / additive APIs
  • major — breaking changes

If $ARGUMENTS didn't pin a version, state your choice and the reasoning.

Step 3 — Bump the version (13 lines: workspace + 12 inter-crate pins)

The #1 release footgun: there are 12 =OLD inter-crate pins plus the workspace version. Bump all 13 in one shot, then verify the counts:

OLD=<current>; NEW=<target>
sed -i '' -e "s/^version = \"$OLD\"/version = \"$NEW\"/" -e "s/version = \"=$OLD\"/version = \"=$NEW\"/g" Cargo.toml
grep -c "$NEW" Cargo.toml   # expect 13
grep -c "$OLD" Cargo.toml   # expect 0

Read the full file on GitHub · 131 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 · 131 lines · 0 tokens per session scan A 7765879d3713

Subscribe to this mod's changes

release is a command published in the GitHub repository sema-lisp/sema (60 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,283 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

release compared with commands from other repositories

release next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
releasesema-lisp/semaCommand609d agoMITA0Claude Code
design-shipyonatangross/orchestkitCommand299yesterdayMITA50Claude Code, Cursor
commitechoVic/blade-codeCommand18124d agoMITA8Claude Code
prepare-releasesaeedkolivand/ai-job-hunter-appCommand63yesterdayApache-2.0A20Claude Code
propsmill/infrahub-mcpCommand10yesterdayApache-2.0A18Claude Code
reconcilenaimkatiman/continuous-improvementCommand95d agoMITA80Claude Code
carefulyonatangross/orchestkitCommand299yesterdayMITC84Claude Code, Cursor