resolving-merge-conflicts
Use when you need to resolve an in-progress git merge/rebase conflict.
- License 许可
- MIT
- 所属仓库
- Roeelfs/keel
- 最近更新
- 2026-11-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- resolving-merge-conflicts
- license
- MIT
- description
- Use when you need to resolve an in-progress git merge/rebase conflict.
03 SKILL.md 正文
-
See the current state of the merge/rebase. Check git history, and the conflicting files.
-
Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
-
Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never
--abort. -
Run the project's automated checks — your project's verify gate (the command your project documents), NOT a bare
npx tsc/vitest(those can bypass any locking wrapper and miss CI-only steps). Fix anything the merge broke. -
Finish the merge/rebase. Stage everything and commit, following your project's commit-trailer conventions (if any). If rebasing, continue until all commits are rebased.
Project guardrails (override the generic flow above)
- NEVER rebase a stale branch onto a moved
origin/main— it manufactures N-way conflicts (a contamination class seen in a past incident).git fetch originfirst. - A contaminated branch is not a conflict to resolve — it is closed. If a scope audit (
git diff --name-status origin/main HEAD) shows files you never touched, do NOT salvage by resolving conflicts (salvage failed every time it was attempted). Re-integrate ONLY by cherry-picking the one clean commit onto freshorigin/main. - To squash, reset to the merge-base (
git reset --soft $(git merge-base origin/main HEAD)), never to theorigin/maintip (that collapses newer main work into your commit as deletions).
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
work-report
Use when generating development reports, calculating billable hours, reviewing work done in a period, or when the user asks for a project status summary. Triggers on keywords like report, billable, hours, invoice, timesheet, work summary.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
triage
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).