release-mobilewright

A release-preparation command for the mobilewright project that updates its changelog for the next patch release. A patch release is a small version change intended for fixes or minor updates.

In plain words
What is it for?
Use it on the main branch when the repository is clean and you are preparing the next mobilewright patch release.
Why use it?
It checks the branch, working tree, latest tag, and changelog before collecting changes and contributor credits, helping prevent an incorrect release entry.

Command for Claude Code

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

Made for: Claude Code.

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 702 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.00702
Opus 5 $0.00000 $0.00351
Sonnet 5 $0.00000 $0.00140
Haiku 4.5 $0.00000 $0.00070

Measured 2d ago against content hash 0ff0f4eb9c4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

release-mobilewright 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 2d 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-mobilewright.md · 60 lines

How it starts

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

Prepare a mobilewright release by updating CHANGELOG.md with the next patch version.

Steps

1. Verify version consistency

  • Make sure you are currently on the main branch, otherwise stop.
  • Make sure there are no staged or modified file, the checkout is clear. Otherwise, stop.
  • Run git tag --sort=-version:refname | head -1 to get the latest git tag (e.g. v0.0.35)
  • Read the first line of CHANGELOG.md to extract the version there (e.g. ## [0.0.35])
  • If they do not match, stop and report the mismatch. Do not proceed.

2. Compute next version

  • Strip the v prefix from the latest tag, split on ., increment the patch segment by 1
  • Example: v0.0.350.0.36

3. Collect changes since last tag

  • Run git log v<LAST_VERSION>..HEAD --oneline to list commits
  • For each commit, try to find an associated PR number:
    • Look for (#NNN) in the commit message, or
    • Run gh pr list --state merged --search "<commit sha>" --json number,title,author via the GitHub API
  • For each PR found, fetch the author: gh pr view <NNN> --repo mobile-next/mobilewright --json author --jq '.author.login'

4. Determine contributor credit

  • Read .github/CODEOWNERS to get the list of maintainer GitHub logins
  • For each change, if the PR author is not in the CODEOWNERS maintainers list, append: thanks to [@<login>](https://github.com/<login>)

5. Format the CHANGELOG entry

Use the existing CHANGELOG.md format:

## [0.0.36] (YYYY-MM-DD)
* Feat: description ([#NNN](https://github.com/mobile-next/mobilewright/pull/NNN))
* Fix: description ([#NNN](https://github.com/mobile-next/mobilewright/pull/NNN)), thanks to [@login](https://github.com/login)
  • Use today's date for the release date
  • Capitalise the type prefix (Feat, Fix, Chore, etc.) from the conventional commit prefix
  • Omit chore/ci/docs commits that are not user-facing unless they are significant
  • Prepend the new entry at the top of CHANGELOG.md, above the previous ## [...] line

Read the full file on GitHub · 60 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. 2d ago First seen · 60 lines · 0 tokens per session scan A 0ff0f4eb9c4e

Subscribe to this mod's changes

release-mobilewright is a command published in the GitHub repository mobile-next/mobilewright (342 stars, last pushed 19d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 702 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-08-30.