resolving-merge-conflicts
Skill3 starsChanged 2 months agoMITView on GitHub
Resolves an in-progress git merge or rebase conflict by understanding each change's intent and preserving both where possible. Use when a git merge or rebase has stopped with conflicts, files show conflict markers, or the user asks to resolve merge conflicts.
138 other projects use a version of this.
Adopted by
Most recently taken up by
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
- dfirmin/compasstheir own version, first seen Nov 8, 2026
- kazemcodes/skill-treetheir own version, first seen Nov 8, 2026
- ValorVie/custom-skillstheir own version, first seen Nov 8, 2026
- Tresnanda/kyberntheir own version, first seen Nov 8, 2026
- HarryMtv/create-frontstacktheir own version, first seen Nov 8, 2026
Used with
Projects with it also use setup-ts-deep-modules, decision-mapping 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.
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 28 projects that use this
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 5 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 33 projects that use this
ryotaroh180105Skillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 28 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 32 projects that use this
simo97Skillmigrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
Also in 35 projects that use this
Other versions138 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 138
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- bestofjs/bestofjs★ 3.1ksame name
- crbnos/carbon★ 2.8ksame name
- CelestoAI/SmolVM★ 1.2ksame name
- moeru-ai/xsai★ 667same name
- nodetool-ai/nodetool★ 615same name
- stevesolun/ctx★ 583same name
- aws/graph-explorer★ 490same name
- hcloud-talos/terraform-hcloud-talos★ 362same name
128 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- dispatch-ticketsSkill
- grill-with-docsSkill
- implementSkill
- improve-codebase-architectureSkill
- orchestrateSkill
- prototypeSkill
- researchSkill
- setup-omskillsSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wayfinderSkill
- cavemanSkill
- designSkill
- excalidrawSkill
- grill-meSkill
- handoffSkill
- model-routingSkill
- prompt-comprehension-auditsSkill
- teachSkill
- tmux-workerSkill
- voiceSkill
- wormholeSkill
- write-a-skillSkill
- writing-great-skillsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Inspect the operation state: Check Git status, the merge or rebase todo state, the commit ranges on both sides, and every file Git reports …
- Distinctive: line 11
Run automated checks: Use the repository-defined commands and order.
“Common” is measured: kept by at least 6 in 10 of the 16 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.
Files
Resolving Merge Conflicts
- Inspect the operation state. Check Git status, the merge or rebase todo state, the commit ranges on both sides, and every file Git reports as conflicted.
- Trace each side's intent. For every conflict, inspect the commits that introduced both sides and locate the originating PRs, issues, or tickets from links, commit messages, or repository history.
- Resolve every hunk within the established scope. Determine the intended resolution from available project artifacts, including issues, pull requests, specifications, ADRs, documentation, and commit history. Make ordinary implementation decisions needed to carry out that intent, preserving both intended behaviors when they can coexist. If a resolution would exceed the established scope or the intended behavior cannot be determined, preserve completed resolutions and unrelated work, leave the merge or rebase paused, and report the blocker and remaining conflicts. Do not reset, abort, or discard work merely because a later hunk is blocked.
- Run automated checks. Use the repository-defined commands and order; when no order is defined, typically run typecheck, then tests, then formatting. Fix anything the merge or rebase broke.
- Finish the operation. Stage only resolved conflict paths and intentional fixes required by the merge or rebase; preserve unrelated staged, unstaged, and untracked work. Inspect the complete staged candidate; stop if continuing would commit unrelated work. Run
git merge --continueorgit rebase --continueas applicable; if Git requires a direct merge commit, create it. For a rebase, repeat these steps for each subsequent conflict until Git reports that all commits have been rebased.
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
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.

