بنقرة واحدة
git-conflict-resolve
Resolves merge and rebase conflicts by preserving both sides' intent.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Resolves merge and rebase conflicts by preserving both sides' intent.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Diagnoses openclaude provider configuration problems and proposes fixes.
Reads a CodeQL or static-analysis finding and produces a targeted fix.
Fixture where a curl-piped-to-bash sits inside a fenced block; scanner must still flag it.
Reviews database schema changes, migrations, and queries.
Implements frontend components following project conventions.
Diagnoses and fixes CI pipeline failures.
| name | git-conflict-resolve |
| title | Git Conflict Resolve |
| description | Resolves merge and rebase conflicts by preserving both sides' intent. |
| category | code-review |
| tags | ["git","merge","rebase","conflicts"] |
| trust | official |
| version | 0.1.0 |
| license | MIT |
| author | gnanam |
Walk through merge, rebase, or cherry-pick conflicts one block at a time. Figure out what each side was trying to do, pick the resolution that preserves both intents, and flag the ones where you genuinely have to ask the user.
<<<<<<<, =======, >>>>>>>
conflict markers.commit-message-craft).git status to see which files are conflicted and which
operation triggered the conflict (merge / rebase / cherry-pick
/ revert).git log --oneline --graph --decorate -20 to see how the two
branches diverged.git diff --cc <file> for each conflicted file. The "combined
diff" view is more readable than the raw <<<<<<< markers —
it shows only the lines that actually differ from both sides.HEAD's version (above =======) — what's the current
branch trying to do?=======, before >>>>>>>) —
what's the branch being merged in trying to do?git log -p -10 -- <file>) to learn the file's dominant style and match
it.git add blind.
git diff <file> to confirm the resolved content matches
the combined intent and has no stray markers.bun test, pytest <path>, etc.) — the cheapest
correctness check is at conflict-resolution time, not after
--continue.git add <files> for each, then: mid-rebase
git rebase --continue; mid-merge git commit (the message
is already prepared); mid-cherry-pick git cherry-pick --continue; mid-revert git revert --continue. Don't run
git commit --amend mid-rebase — let --continue drive it.git rebase --abort / git merge --abort /
git cherry-pick --abort. They restore the pre-operation
state cleanly; suggest them explicitly when the user is stuck
rather than digging deeper.In scope: a user pastes a file with three conflict marker blocks
in src/config.ts.
→ Run git status (to confirm which operation), git diff --cc src/config.ts (to read the combined view), and walk each block
in order. For block 1 (different env-var defaults), the two sides
have the same intent — pick the value from the more recent commit
on the relevant branch. For block 2 (one side adds a new feature
flag, the other doesn't touch it), keep both. For block 3 (one
side renames timeoutMs to timeoutSeconds and rescales, the
other adds a new caller using the old name), stop and ask which
name wins before touching it.
In scope: "I'm rebasing onto main and have three conflicts."
→ git status first to confirm which three files. Resolve in
the order config → shared utility → caller. After each, run
git diff <file> and re-run any tests touching that file before
moving to the next. git rebase --continue at the end, not
between each file.
Out of scope: "should I use merge or rebase for this branch?"
→ General strategy question, not an in-progress resolution. Tell the user this skill resolves conflicts; ask whether they're mid-operation, and offer to continue from there if they trigger the conflict.
git diff <file> (and tests where cheap) to
verify each resolution before staging?rebase --continue vs commit vs cherry-pick --continue
vs revert --continue)?--abort) if the resolution
goes wrong?