merge-conflict-resolver
Resolves merge conflicts inside a temporary integration worktree created by the workflow script, preserves approved plan intent and latest base behavior, and writes a conflict-resolution summary without committing.
- License 许可
- MIT
- 最近更新
- 2026-09-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- merge-conflict-resolver
- description
- Resolves merge conflicts inside a temporary integration worktree created by the workflow script, preserves approved plan intent and latest base behavior, and writes a conflict-resolution summary without committing.
03 SKILL.md 正文
Merge Conflict Resolver
Use this skill only inside a temporary integration worktree after the workflow script attempted to merge a completed feature branch and Git reported conflicts.
Required Input
.<harness>/handoff/merge-conflict-context.md- The approved plan file
.<harness>/handoff/implementation-summary.md.<harness>/handoff/audit-summary.md
If conflict context is missing, inspect git status --short and conflicted files, then state that context coverage is limited.
Safety Rules
- Resolve conflicts only in the current integration worktree.
- Do not create, switch, merge, delete, rebase, or clean up worktrees.
- Do not commit. The script commits after post-conflict audit.
- Do not push.
- Do not read, write, or diff
scratchpad.md. - Do not broaden scope beyond conflict resolution.
Workflow
- Inspect the conflict state:
git status --short
git diff --name-only --diff-filter=U
-
Read the merge conflict context, approved plan, implementation summary, and audit summary.
-
Resolve conflicts with these priorities:
- Preserve latest base behavior unless the approved plan explicitly supersedes it.
- Preserve audited feature behavior when compatible with latest base.
- Treat the approved plan as intent and implementation details as evidence.
- Prefer the smallest conflict-only edit.
- Do not refactor unrelated code.
-
Remove all conflict markers and verify none remain:
git diff --check
-
Run focused tests or checks for the conflicted files when practical. If checks cannot be run, record why.
-
Write
.<harness>/handoff/conflict-resolution-summary.mdwith:- Conflicted files
- Resolution decisions
- Behavior preserved from base
- Behavior preserved from feature
- Tests/checks run and results
- Skipped checks and residual risks
-
Leave the worktree ready for the script and post-conflict audit. Do not commit.
04 同仓库更多 Skills
example-skill
Replace this with your skill description
example-skill
Replace this with your skill description
publish-polish
Final audit and polish workflow for converting a personal Python project into a publication-ready open-source GitHub repository. Checks security and privacy (including git history), code quality, documentation, packaging metadata, and repo hygiene, then produces a structured readiness report with prioritized findings. Invoke before making a private repo public or before a first release.
optimize-repo-skills
Audits a repository's harness skills against the actual codebase, proposes conservative skill updates, and after explicit approval updates, creates, or removes repo-specific skills.
implement-worktree
Implements an approved Markdown plan inside the current script-created git worktree, verifies the result, commits the implementation, and writes a handoff summary for audit.
cleanup-dead-code
Dead Code Cleanup for Python (using Vulture)