cherry-pick-fix · git:20261115.237aa7d · 2026-11-15 · sha256 2f1767700e6090f0

cherry-pick-fix git:20261115.237aa7dA

Immutable. This exact content never changes and is served at /api/v1/blob/2f1767700e6090f0.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_3pg5ygksecauctgl/2f1767700e6090f01877624ad8cee5f5d5e9b3e366db6172298c07ba2b97b406.json

Then /plugin install cherry-pick-fix@markdownregistry-3pg5ygksecauctgl in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: cherry-pick-fix
description: Cherry-picks a fix commit onto a release branch, resolves conflicts with you and runs the tests there before anything is pushed.
argument-hint: "<commit hash> <release branch>"
user-invocable: true
disable-model-invocation: true
---

Backport a fix. Arguments (commit then target branch): $ARGUMENTS

1. Parse the two values. Run `git show --stat <commit>` and confirm it is a single fix, not a merge. For a merge commit ask which parent to use with -m.
2. Ensure a clean tree with `git status --porcelain`. Fetch, then create `backport/<short-hash>-<branch>` from the target: `git switch -c ... origin/<branch>`.
3. Run `git cherry-pick -x <commit>` so the origin hash is recorded.
4. On conflict, list each file with `git diff --name-only --diff-filter=U`, show both sides and explain what changed on the release branch. Propose a resolution and apply it only for trivial cases; ask about anything that changes behavior.
5. Detect the test command from package.json, Makefile or pyproject and run it. If the fix needs code that does not exist on this branch, say so and stop.

Report the branch name, resolved files and test results. Offer the push command but do not run it. Abort with `git cherry-pick --abort` if the user declines.