agentleFS
RoboFinSystemsRoboFinSystems/robosystems/.claude/skills/hotfix/SKILL.md

hotfix

Skill31 starsChanged 15 days agoApache-2.0View on GitHub

Ship a fix to production ahead of the next release — the two-PR pattern (main + release-branch twin). Runs only when the user invokes it explicitly.

  • Commits and pushes

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use playtest-report, team-live-ops 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.
  • 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 14 projects that use this

  • lilangMaxSkill

    team-live-ops

    Orchestrate the live-ops team for post-launch content planning: coordinates live-ops-designer, economy-designer, analytics-engineer, community-manager, writer, and narrative-director to design and plan a season, event, or live content update.

    Also in 11 projects that use this

  • lilangMaxSkill

    test-flakiness

    Detect non-deterministic (flaky) tests by reading CI run logs or test result history. Aggregates pass rates per test, identifies intermittent failures, recommends quarantine or fix, and maintains a flaky test registry. Best run during Polish phase or after multiple CI runs.

    Also in 12 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 14 projects that use this

  • +2 more from CoralGame
  • +6 more from lilangMax

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not from urgency words in a reply — "now", "urgent", "asap", "yes let's do it" after a recommendation to ride the next release.

    line 16
  2. Distinctive:

    Not from the fix touching deployed behavior, a customer-facing surface, or production evidence.

    line 17
  3. Distinctive:

    Not from a memory file, a CLAUDE.md section, or a runbook that describes the pattern.

    line 18
  4. Very specific:

    If a hotfix *might* be warranted, say so in one line ("this could ship ahead of the release via /hotfix if you want it in prod before …

    line 20
  5. Distinctive:

    If a main-branch PR for the fix already exists (third argument: a PR number or branch), reuse it.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 30 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

Ship a fix to production ahead of the next release using the two-PR pattern: one PR to main (reviewed; makes the fix permanent) and one PR carrying the same commits to the current release/<x.y.z> branch (CI on the exact ref that will be deployed).

This skill is the trigger — never infer a hotfix

A hotfix is a deploy-timing decision with real cost: a second PR, a cherry-pick, and a full production deploy from the release branch. It is chosen by the user, and invoking this skill is how they choose it. Do not start this flow from anything else:

  • Not from urgency words in a reply — "now", "urgent", "asap", "yes let's do it" after a recommendation to ride the next release.
  • Not from the fix touching deployed behavior, a customer-facing surface, or production evidence.
  • Not from a memory file, a CLAUDE.md section, or a runbook that describes the pattern.

If a hotfix might be warranted, say so in one line ("this could ship ahead of the release via /hotfix if you want it in prod before then") and stop. Absent /hotfix, a fix goes to main and rides the next release.

How releases work here

create-release.yml cuts a release/<x.y.z> branch, and production deploys from that branch while main keeps moving. So a fix merged only to main waits for the next release, and a fix merged only to the release branch is lost at the next cut. Two PRs, same commits. Committing straight onto the release branch is retired practice: the PR into it is what gets CI run on the ref the deploy will use.

Instructions

1. Preflight

RELEASE=${2:-$(git branch -r | grep 'origin/release/' | sort -V | tail -1 | sed 's#.*origin/##')}
VERSION=${RELEASE#release/}            # x.y.z
SUFFIX=$(echo "$VERSION" | tr . -)     # x-y-z, for the branch name
git fetch -q origin
  • Confirm the bug exists on the release branch. For a regression, git merge-base --is-ancestor <regressing-merge-sha> origin/$RELEASE; for a long-standing defect, git diff origin/main origin/$RELEASE -- <files> (empty means the same code). If the release branch does not carry the defect, stop — there is nothing to hotfix; say so.
  • Working tree clean, not on main. Branch creation goes through just create-feature only.
  • Security fixes. The twin's diff and body are public the moment they are pushed, often before the deploy lands. Keep both PR bodies terse and non-actionable (the disclosure rules in /create-pr apply to both), and sequence the deploy with — or ahead of — the public push.

2. The main PR — the reviewed one

If a main-branch PR for the fix already exists (third argument: a PR number or branch), reuse it. Otherwise:

just create-feature bugfix <name>       # branches from origin/main and pushes
# commit the fix (stage files by name), then:
git push

Open it with /create-pr (target main). This is the PR that gets the @claude review, per that skill's §5. Record its number as MAIN_PR and its branch as MAIN_BRANCH.

3. The release-branch twin

just create-feature hotfix <name>-$SUFFIX $RELEASE          # branches from origin/release/x.y.z
git log --reverse --format=%H origin/main..origin/$MAIN_BRANCH   # every commit of the main PR, oldest first
git cherry-pick <sha> [<sha> ...]
git push
  • Cherry-pick all of the main PR's commits, in order; never squash or rewrite them.
  • On a conflict, stop and report — do not resolve it into something the main PR does not contain. A twin that differs from the reviewed commits is not a twin.
  • Write the body to a temp file and open the PR against the release branch, following .github/PULL_REQUEST_TEMPLATE.md (Summary / Changes / Breaking Changes / Testing / Certification). The Summary states that it is the release-branch twin of #MAIN_PR, carries the same commits, and exists so CI runs on the ref the deploy will use.
gh pr create --base "$RELEASE" --head "hotfix/<name>-$SUFFIX" --title "hotfix(<scope>): <title> ($VERSION)" --body-file /tmp/hotfix-pr-body.md
  • Do not post the @claude review comment on the twin. This is the one deliberate exception to /create-pr §5: the commits are identical and were reviewed once, on the main PR; the twin's job is the CI gate ahead of the deploy. If the review workflow fires on its own when the PR opens, leave it — just do not request it.

4. Hand-off

The user merges the twin and deploys production from the release branch; the main PR merges on green. Never: push to release/* (the pre-push hook refuses it), merge either PR, dispatch the deploy, or delete the hotfix branch — branch lifecycle is the user's.

Output

  1. Both PR URLs, labelled main and twin (release/x.y.z).
  2. The commits carried (short SHAs on each branch).
  3. What is now the user's: merge the twin → deploy prod from release/x.y.z → merge the main PR.
  4. Anything that stopped the flow (defect not on the release branch; cherry-pick conflict).

Arguments

$ARGUMENTS: the fix's short name (required — it names both branches), an optional release branch (default: the highest origin/release/*), and an optional existing main PR number or branch to reuse for step 2.

$ARGUMENTS

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.