resolving-merge-conflicts
mattpocock/skills · 551.3k installs · 309K stars
Skill Use when you need to resolve an in-progress git merge/rebase conflict.
Marked Prompt Injection · No Code
Install
npx -y skills add mattpocock/skills --skill resolving-merge-conflicts --agent claude-codeRun in a terminal. Claude loads the skill when a task calls for it. Check the repo's README before you run it.
Files
-
See the current state of the merge/rebase. Check git history, and the conflicting files.
-
Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
-
Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never
--abort. -
Discover the project's automated checks and run them, typically typecheck, then tests, then format. Fix anything the merge broke.
-
Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.
Facts
- Kind
- Skill
- Repo
- mattpocock/skills
- Group
- Uncategorized
- Installs
- 551.3k
- Stars
- 309K
Same name on this shelf 1
Same repo on other shelves
From the same repo
- 144loop-memattpocock/skillsGrill me about specs for the workflows I want to build, within this workspace.518.8k
- 151claude-handoffmattpocock/skillsHand the current conversation off to a fresh background agent that picks up the work immediately.500.6k
- 195setup-ts-deep-modulesmattpocock/skills445.4k
- 275to-prdmattpocock/skillsTurn the current conversation context into a PRD and submit it as a GitHub issue. Use when user wants to create a PRD from the current context.351.6k
- 279to-issuesmattpocock/skillsBreak a plan, spec, or PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.339.1k
- 287writing-great-skillsmattpocock/skillsReference for writing and editing skills well — the vocabulary and principles that make a skill predictable.306.6k