fix-merge-conflicts
Resolve merge conflicts non-interactively: start the integration, read both sides' intent from their commits, preserve both intents, validate on the resolved tree. Never force-pushes shared branches.
- 01Installs
- New
- 02Files scanned
- 1
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 cb1171d77a90233e… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Fix Merge Conflicts
A conflict is two intents meeting in one file. Resolution that flattens either intent is a bug with a clean git status.
Workflow
- Establish ownership: you resolve conflicts on a branch you own, against a base others own. Conflicts on a shared branch get reported to the owner, not resolved unilaterally.
- Start the approved integration first: fetch the remote base
(
git fetch origin <base>) and merge the fetched SHA —git merge FETCH_HEAD(or the project's rebase convention, when the caller has not constrained it) — so the conflicts you inspect match what GitHub reported; a local base ref can be absent or behindorigin/<base>, andgit mergenever refreshes it implicitly. Amergeable: conflictinganswer from the remote, or a clean local branch, has noMERGE_HEAD—git log --mergebefore integrating exits 128. - Read both intents:
git log --merge -p -- <file>for each conflicted file once the merge is in progress — what did each side change and why (commit messages are evidence). Conflict markers show the what; the commits show the why. On the rebase path there is noMERGE_HEAD—git log --mergereads nothing there; read the topic side withgit show REBASE_HEAD -- <file>(the dotted rangeREBASE_HEAD..HEADexcludes the topic commit itself, so it shows only the base side) and the base side withgit log -p HEAD -- <file>until the rebase continues. When the caller forbids starting an integration at all (e.g. read-only inspection), compare explicit ranges instead:git log -p <base>...HEAD -- <file>. - Resolve: the default is both-intent-preserving — base side's change and branch side's change both survive, composed. When the intents are genuinely incompatible, the base (upstream) intent wins on shared surfaces and the branch adapts, and the override is reported with its reason.
- Validate: run the project's checks (build/test/lint at minimum) on
the resolved tree. A resolution that compiles but breaks a test took the
wrong side somewhere.
If intent analysis, resolution, or validation cannot complete after a
merge starts, run
git merge --abort; after a rebase starts, rungit rebase --abort. If abort is unsafe or unavailable, stop and hand off the repository with the activeMERGE_HEAD/REBASE_HEADand conflict list explicitly reported. - Finalize: for a rebase, stage each resolved file and run
git rebase --continuerepeatedly untilgit statusshows no active rebase. Validate that final tree before pushing. Then commit the resolution with a message naming what each side wanted. No force-push to shared branches, ever; a rebased own-branch uses--force-with-lease— unless a caller (e.g.babysit) forbids rebase and force-push entirely, in which case merge-commit resolution is the only path.
Rules
- Never resolve by "take ours/theirs" wholesale; that is choosing a winner, not resolving.
- Generated files (lockfiles, snapshots) regenerate rather than hand-merge.
- The resolution commit's message states the two intents it composed —
the next archaeologist (
why) will need it.
Files
1- SKILL.md
f77910270d3.7 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from Yeachan-Heo/oh-my-claudecode8
Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before reference, one meaning in one home, no restating what the environment already says. Mandatory at drydock seed generation and the launch C5 se
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
Settle types and module shape before cross-boundary code — competing designs explored in parallel, compared on API surface and invariants, decision recorded with rejected alternatives and an accepted-deviations register.
Periodic architecture survey — walks the module graph and reports ranked deepening candidates (shallow modules, hypothetical seams, logic behind the wrong seam). Survey, not rescue: it finds candidates and hands them to the captain; it never refactors on its own.
Run N parallel candidates at one brief and synthesize: rubric-first framing, isolated fan-out, a cross-judge on a different model, criterion-by-criterion pick, hand grafting. When one attempt would lock in the wrong shape.
Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, Cursor, or Muse via `omc ask`, with artifact capture and no raw CLI assembly
Shipyard's navigator — chart a foggy effort (destination unclear, questions not yet stateable) into a map of decision tickets on the repo's issue tracker, then work the frontier one ticket per session until the way is clear, and hand the collapsed decisions to /launch as a mission brief. Wayfinding,
Full autonomous execution from idea to working code
Related methodology skillsscan passed
Use when writing E2E tests with Playwright, setting up test infrastructure, or debugging flaky browser tests. Invoke to write test scripts, create page objects, configure test fixtures, set up reporters, add CI integration, implement API mocking, or perform visual regression testing. Trigger terms:
Release documentation audit. Use for: update docs after ship, document what changed. (gstack)
Answers questions about Amazon Application Recovery Controller (ARC) Region switch including architecture, plans, execution blocks, workflows, triggers, active/active vs active/passive, cross-account support, recovery time, dashboards, and customer positioning. Applicable when users ask about ARC Re
Search Remotion documentation
Designs, reviews, and optimizes physical table schemas, indexes, and graph topologies for Spanner Graph on Google Cloud. Use when creating a new Spanner Graph schema, selecting node and edge primary key types, optimizing forward, reverse, or per-node Top-K edge traversals, designing interleaved node
Author, validate, test, run, and inspect Elastic Workflow YAML definitions. Use when the user wants to turn natural language into a Kibana workflow, fix workflow YAML, understand triggers or steps, or run a quick test loop against a real Kibana.