agentleFS
thettwethettwe/nyann/skills/hotfix/SKILL.md

hotfix

Skill6 starsChanged 3 months agoMITView on GitHub

Set up the branch topology for a patch release against a previously tagged version: ensures release/<major>.<minor> exists from the source tag, then creates hotfix/<slug> off it. TRIGGER when the user says "hotfix v1.0.0", "patch the release", "I need to fix something in the v2 line", "create a hotfix branch", "/nyann:hotfix". Match phrases like "fix this for the previous release" or "backport this fix to v1.0". Do NOT trigger on "fix this bug" without a target tag — that's a regular feature branch via `/nyann:branch fix <slug>`. Do NOT trigger on "release a hotfix" if the user already has the branch set up — they're after `/nyann:release` directly.

  • Commits and pushes

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, dev-story and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • cenconq25Skill

    create-stories

    Decomposes a single epic into implementable story files. Each story embeds its TR-ID, governing ADR, acceptance criteria, story type, and test-evidence path. Run after /create-epics for each epic, in dependency order. Stories are what developers pick up — epics are what architects define.

    Also in 6 projects that use this

  • cenconq25Skill

    dev-story

    Read a story file and implement it end-to-end. Loads PRD requirement, governing ADR, control manifest, and routes to the right framework specialist (RN/Flutter/iOS/Android). Use when a story has passed /story-readiness and is ready to be built.

    Also in 6 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • CoralGameSkill

    team-audio

    Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.

    Also in 6 projects that use this

  • +6 more from cenconq25
  • +2 more from CoralGame

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After this skill: the user makes the fix, commits, then runs /nyann:release from the hotfix branch.

    line 28
  2. Distinctive:

    Before invoking, confirm the source tag with the user:

    line 33
  3. Very specific:

    If they said "patch the latest release" without naming a tag, list git tag --sort=-v:refname | head -5 and ask.

    line 38
  4. Distinctive:

    Ask: "what's the change?" Convert their answer to a slug:

    line 43
  5. Very specific:

    Run /nyann:release --version <patch> --push from the release branch.

    line 72
  6. Very specific:

    Consider deleting the hotfix/<slug> branch via /nyann:cleanup-branches once the merge lands.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

hotfix

Wraps bin/hotfix.sh. Creates the two branches a patch-release flow needs:

  1. release/<major>.<minor> — long-lived, branched from the source tag. Idempotent: reused if it already exists. Future patches on the same minor go on the same branch.
  2. hotfix/<slug> — short-lived, branched off the release branch. The user commits the actual fix here.

After this skill: the user makes the fix, commits, then runs /nyann:release from the hotfix branch.

1. Resolve the source tag

Before invoking, confirm the source tag with the user:

  • "I want to patch v1.2.0" → --from v1.2.0.
  • "I want to fix something in the previous minor" → ask which tag exactly.
  • If they said "patch the latest release" without naming a tag, list git tag --sort=-v:refname | head -5 and ask.

2. Pick a slug

Ask: "what's the change?" Convert their answer to a slug:

  • "Fix the broken auth callback" → fix-auth-callback
  • "Patch the SQLi in the user-search endpoint" → patch-sqli-user-search

The script enforces lowercase + alphanumeric + hyphen; it'll reject anything else.

3. Invoke

bin/hotfix.sh --target <cwd> --from <tag> --slug <slug> --checkout

--checkout switches to the hotfix branch immediately. Skip it when the user has uncommitted work in the current branch (the script will warn about a dirty tree if checkout fails — don't let it half-finish).

4. Hand back the next-steps

The output JSON includes a next_steps[] array with the exact commands to run next:

  1. (skip if --checkout was used) git checkout hotfix/<slug>
  2. Make the fix, commit it (use /nyann:commit for a Conventional Commits message).
  3. Merge the hotfix into the release branch: git checkout release/<m>.<n> && git merge --no-ff hotfix/<slug>.
  4. Run /nyann:release --version <patch> --push from the release branch. The script suggests the patch version (source-tag + 1 in the patch slot) — confirm with the user before passing it through. release.sh operates on the current branch (HEAD), so the merge step in (3) is what puts the right commits on the lineage that gets tagged.

5. After the release

  • The release tag (e.g. v1.2.4) is added on release/1.2.
  • The release branch should be merged back into main so the fix isn't lost on the next minor cut. nyann doesn't do this for the user; suggest git checkout main && git merge --no-ff release/1.2 && git push.
  • Consider deleting the hotfix/<slug> branch via /nyann:cleanup-branches once the merge lands.

When to hand off

  • "Just create a feature branch" → /nyann:branch fix <slug> (no release-branch ceremony).
  • "I already have the hotfix branch — just release it" → merge it into the release branch first (git checkout <release> && git merge --no-ff <hotfix>), then /nyann:release --version <patch> from that branch.
  • "Pre-release, not patch" → /nyann:release --version <stable>-rc.1 on the regular feature branch; release.sh's prerelease detection handles it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.