resolve-merge
Resolve an active merge or rebase conflict, including safe renumbering of colliding plans and chronicles.
它会碰到什么
扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Resolve Merge Conflicts
- Verify
MERGE_HEADorREBASE_HEAD; otherwise stop withNo merge in progress. - Before any write, list conflicts and classify each as AUTO or JUDGMENT.
- AUTO requires mechanical proof; default to JUDGMENT. AUTO cases:
- Sides byte-identical (
git show :2:<f>vs:3:<f>) or differing only in whitespace/EOL → take either. - AU →
git add, butgit rmif its slug already exists in theirs at another number (duplicate). - Lock file → checkout one side, regenerate via the package manager.
CHANGELOG.md→ merge unique entries, dedupe, keep category order.
- For numbered plans/chronicles, keep THEIRS numbers. Renumber colliding OURS-only files from the next free number without gaps or duplicates; fix self, research, and cross-references.
- Show every conflict with file, code, action, and classification. Ask once: Approve / Modify / Abort. Abort writes nothing.
- Apply approved AUTO actions; report only counts and failures.
- For each JUDGMENT file, show exact OURS and THEIRS hunks plus the proposed merge. Ask Approve / Edit / Skip; Skip leaves it conflicted.
- A file failure stays conflicted and goes under
Skipped; continue with others. - Verify no tracked conflict markers, valid numbering and references when relevant, and known build/lint checks.
- Report
N resolved: X AUTO, Y JUDGMENT; Skipped: …, then hand off to/commitwithout committing. Stop on failed checks.
On Codex, translate gates with [codex-tools.md](../using-development-skills/references/codex-tools.md).
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 1,027
本站分层T1
该仓技能数1910
原文件路径
plugins/reidemeister94/development-skills/skills/resolve-merge/SKILL.md