nyann:hotfix

nyann:hotfix is a command for coding agents from thettwe/nyann. It costs 69 tokens per session (836 once invoked), scanned A, original, MIT.

A command that prepares Git branches for a patch release based on an existing version tag. A patch release is a small corrective release, such as a bug fix.

In plain words
What is it for?
Use it to create a hotfix branch from a tagged version, make the fix there, merge it into the release branch, and release the patch.
Why use it?
It sets up the required branch structure while protecting existing hotfix work and reporting the commands needed to finish shipping the fix.

Command

Part of the nyann plugin — 15 skills, 41 commands, 3 hooks shipped together

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/thettwe/nyann/hotfix
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Or install nyann, the plugin that ships this one along with the rest of its 15 skills, 41 commands, 3 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 nyann:hotfix

README.md
[![agentmods](https://agentmods.dev/badge/commands/thettwe/nyann/hotfix.svg)](https://agentmods.dev/commands/thettwe/nyann/hotfix)
Your own site
<a href="https://agentmods.dev/commands/thettwe/nyann/hotfix"><img src="https://agentmods.dev/badge/commands/thettwe/nyann/hotfix.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 836 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.00069 $0.00836
Opus 5 $0.00034 $0.00418
Sonnet 5 $0.00014 $0.00167
Haiku 4.5 $0.00007 $0.00084

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

Security

Grade A, and why

nyann:hotfix 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 3d 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.

commands/hotfix.md · 77 lines

How it starts

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

Plugin root: This is a Claude Code plugin, NOT a CLI tool. Do NOT search via which, npm list, pip list, or brew list. This file is at <plugin_root>/commands/. All scripts: <plugin_root>/bin/. Read the matching skills/*/SKILL.md for the full flow.

/nyann:hotfix

Wraps bin/hotfix.sh. Minimal-state setup: this command creates branches, the user commits the fix, then /nyann:release does the tag + push.

Safety

  • Refuses to overwrite an existing hotfix/<slug> branch (no silent stomp of in-progress work).
  • Reuses an existing release/<major>.<minor> branch idempotently (multiple patches on the same minor live on the same branch).
  • Source tag must exist locally — explicit error if missing, with a hint to git fetch --tags origin.

Output

A HotfixResult JSON. Most useful field is next_steps[] — concrete commands the user runs to take the hotfix from setup to shipped:

  1. (Optional) git checkout hotfix/<slug> — only when --checkout wasn't passed.
  2. Make the fix, commit it.
  3. git checkout release/<m>.<n> && git merge --no-ff hotfix/<slug>
  4. /nyann:release --version <suggested-patch> --push (from the release branch — release.sh tags HEAD).

When to invoke

  • "I need to patch v1.2.0" → run this.
  • "Backport this fix to the previous minor" → run this against the most recent tag on that minor.
  • "We have a security issue in the v1 line" → run this; release.sh's prerelease detection handles -rc suffixes if you want a pre-release patch.

When NOT to invoke

  • The user just wants a feature branch (no release-branch lineage): /nyann:branch fix <slug>.
  • The user already has the hotfix branch ready and committed: merge into the release branch first (git checkout <release> && git merge --no-ff <hotfix>), then /nyann:release --version <patch>.

See also:

  • /nyann:release — the tag + push step that runs after this.
  • /nyann:branch — for non-hotfix branches (no tag lineage).
  • /nyann:cleanup-branches — prune hotfix/<slug> after the release has merged back to main.

Read the full file on GitHub · 77 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. 3d ago First seen · 77 lines · 69 tokens per session scan A 7086b487dc8d

Subscribe to this mod's changes

nyann:hotfix is a command published in the GitHub repository thettwe/nyann (6 stars, last pushed 4d ago), licensed MIT. It adds 69 tokens to every session and 836 once invoked, about $0.0003 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-31.