跳到主要内容
知仓学习社ZHICANG

resolve-merge

Resolve an active merge or rebase conflict, including safe renumbering of colliding plans and chronicles.

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Resolve Merge Conflicts

  1. Verify MERGE_HEAD or REBASE_HEAD; otherwise stop with No merge in progress.
  2. Before any write, list conflicts and classify each as AUTO or JUDGMENT.
  3. 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, but git rm if 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.
  1. 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.
  2. Show every conflict with file, code, action, and classification. Ask once: Approve / Modify / Abort. Abort writes nothing.
  3. Apply approved AUTO actions; report only counts and failures.
  4. For each JUDGMENT file, show exact OURS and THEIRS hunks plus the proposed merge. Ask Approve / Edit / Skip; Skip leaves it conflicted.
  5. A file failure stays conflicted and goes under Skipped; continue with others.
  6. Verify no tracked conflict markers, valid numbering and references when relevant, and known build/lint checks.
  7. Report N resolved: X AUTO, Y JUDGMENT; Skipped: …, then hand off to /commit without 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

同一个仓库里的其他技能

看这个仓库的全部 1910 个技能