home/claude/skills/git-resolve/SKILL.md
Analyze and logically resolve git merge/rebase conflicts
npx skillsauth add lambdalisue/dotfiles git-resolveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A rebase or cherry-pick replays multiple commits, so conflicts can surface one step at a time: resolving the current step and continuing the operation may immediately reveal the next conflicted step. This skill loops — resolve → continue → resolve again — until the operation is fully complete.
Detect operation - Determine the in-progress operation so the right continue command is used later:
git status
.git/rebase-merge or .git/rebase-apply exists → rebase → git rebase --continue.git/MERGE_HEAD exists → merge → git merge --continue.git/CHERRY_PICK_HEAD exists → cherry-pick → git cherry-pick --continueResolve (loop) - Repeat the following until the operation finishes:
a. Resolve - Use the Task tool (subagent_type: "git-resolve") to
analyze and resolve the current conflicts autonomously. The agent
stages resolved files but does NOT commit or continue.
b. Handle unresolved - If the agent's result contains an
## Unresolved section, present each ambiguous conflict to the user
via AskUserQuestion with the options the agent described, then
re-invoke the agent with the user's choices to apply the remaining
resolutions. Do not continue the operation until all conflicts in the
current step are resolved.
c. Continue - Run the continue command for the detected operation
(git rebase --continue / git merge --continue /
git cherry-pick --continue). Set GIT_EDITOR=true so it does not
open an editor for the commit message.
d. Check - Run git status:
If a continue command fails for a reason other than conflicts (e.g. a pre-commit hook, an empty commit), stop and report — do NOT improvise around the failure.
Report - Present a consolidated summary in Japanese: which steps were resolved, the strategy used per conflict, and confirmation that the operation completed.
tools
Update the title and body of an existing pull request WITHOUT asking for approval
tools
Create a pull request with title and body based on commits WITHOUT asking for approval
tools
Create a Conventional Commit from already staged changes WITHOUT asking for approval
tools
Map staged changes to existing commits and create fixup commits for autosquash WITHOUT asking for approval