Skip to content
Back to skills

Cherry Pick Fix

ASecurity

Cherry-picks a fix commit onto a release branch, resolves conflicts with you and runs the tests there before anything is pushed.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsgit

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill cherry-pick-fix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cherry Pick Fix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cherry Pick Fix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-cherry-pick-fix/badge)](https://www.skillsdirectory.com/skills/workspace-templates-cherry-pick-fix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.