cmd-pr-conflict-resolver
Resolve merge conflicts systematically with context-aware 3-tier classification and escalation protocol
Skill by Olshansk
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/olshansk-cmd-pr-conflict-resolver
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cmd-pr-conflict-resolver
What's inside
- Skill name
cmd-pr-conflict-resolver- Description
- Resolve merge conflicts systematically with context-aware 3-tier classification and escalation protocol
- License
- MIT
- Instructions
- 230 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Resolve Merge Conflicts <!-- omit in toc -->
Your job is to resolve merge conflicts in the current branch using a structured, context-aware approach. You resolve what you can confidently, explain your reasoning for non-trivial resolutions, and escalate when the correct behavior is ambiguous.
- [1. Verify State](#1-verify-state)
- [2. Map All Conflicts](#2-map-all-conflicts)
- [3. Build Context Per Conflict](#3-build-context-per-conflict)
- [3a. Read the full file](#3a-read-the-full-file)
- [3b. Trace commit history on both sides](#3b-trace-commit-history-on-both-sides)
- [3c. Examine surrounding code](#3c-examine-surrounding-code)
- [3d. Check cascading implications](#3d-check-cascading-implications)
- [3e. Assess business logic impact](#3e-assess-business-logic-impact)
- [4. Classify Each Conflict (3-Tier System)](#4-classify-each-conflict-3-tier-system)
- [5. Resolve by Tier](#5-resolve-by-tier)
- [Tier 1: Auto-resolve](#tier-1-auto-resolve)
- [Tier 2: Resolve with type-specific guidance](#tier-2-resolve-with-type-specific-guidance)
- [Tier 3: Escalate](#tier-3-escalate)
- [New code escalation](#new-code-escalation)
- [6. Verify and Stage](#6-verify-and-stage)
- [7. Reflection and Handoff](#7-reflection-and-handoff)
## 1. Verify State
Assume I already ran `git merge` and there are unresolved conflicts.
- Run `git status` to confirm conflicts exist
- Identify the merge target via `git rev-parse MERGE_HEAD` (or `REBASE_HEAD` / `CHERRY_PICK_HEAD` as applicable)
- Run a baseline diff between both sides, excluding lock/generated files:
```bash
git diff MERGE_HEAD...HEAD -- ":(exclude)*.lock" ":(exclude)package-lock.json" ":(exclude)pnpm-lock.yaml"
```
This gives you the big picture before touching individual conflicts.
## 2. Map All Conflicts
Inventory every conflict before resolving any of them.
```bash
git diff --name-only --diff-filter=U
```
```bash
rg "<<<<<<< " --line-number
```
- Create a task list with one entry per conflict chunk, grouped by file
- Note patterns across the conflict set:
- Same subsystem? Paired changes? Generated files?
- How many conflicts total? Are they concentrated or spread across the codebase?
## 3. Build Context Per Conflict
For **each** conflict, before classifying or resolving:
### 3a. Read the full file
Not just the markers. Understand the function/block's role in the file.
### 3b. Trace commit history on both sides
```bash
git log --oneline MERGE_HEAD -- <file>
git log --oneline HEAD -- <file>
```
Read commit messages and diffs to understand **intent** on each side.
### 3c. Examine surrounding code
Read 20-40 lines around the conflict. Identify invariants:
- Ordering conventions (alphabetical imports, specificity-ordered routes)
- Uniqueness constraints (no duplicate keys, no duplicate enum variants)
- Completeness requirements (exhaustive match arms, full registry lists)
- Check for related test files that may clarify expected behavior
### 3d. Check cascading implications
If the conflict is in a signature, type, constant, or export:
```bash
rg "<symbol_name>" --type-add 'src:*.{ts,py,go,rs,java}' -t src
```
Find all usages to identify downstream impact.
### 3e. Assess business logic impact
Answer three questions for each conflict:
1. **Scope**: Mechanical (formatting/imports/whitespace) or runtime behavior change?
2. **Risk**: If resolved wrong, what breaks? (nothing / tests / production / data integrity)
3. **Novelty**: Both sides added new behavior? Or one cleanly supersedes the other?
## 4. Classify Each Conflict (3-Tier System)
| Tier | When | Action |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Tier 1 -- Auto-resolve** | Non-overlapping additions, formatting-only, one side is strict superset, lock/generated files | Resolve immediately. No developer input needed. |
| **Tier 2 -- Resolve + state rationale** | Intent is inferable from context, combining both is clearly right but requires care, test file conflicts | Resolve, then present rationale (see format below). Don't block on confirmation. |
| **Tier 3 -- Escalate before resolving** | Can't determine correct behavior from context, critical path code, silent behavior discard, architectural divergence, cascading multi-file implications | **Stop.** Show conflict, explain both sides' intent, state the ambiguity, offer 2-3 options with trade-offs. Wait for developer direction. |
**Tier 2 rationale format:**
> Resolved `file:line`. [How]. Rationale: [why]. Flag if wrong.
**Key balance**: Tier 1 keeps you decisive. Tier 3 keeps you consultative when it matters. Tier 2 handles the middle ground -- resolve but make reasoning visible.
## 5. Resolve by Tier
### Tier 1: Auto-resolve
- Edit the file to the desired final state
- Remove all conflict markers (`<<<<<<<`, `=======`, `>>>>>>>`)
- Verify the result is syntactically clean
### Tier 2: Resolve with type-specific guidanceFrom Olshansk/agent-skills, MIT.
More from Olshansk/agent-skills
- 0.584score
cmd-makefile-improve
Olshansk
Review a repository's Makefile foundation and propose approval-gated improvements to its helpers, templates, tests, and documentation.
SkillBFreshness: B★ 9Claude Code +9 - 0.572score
cmd-makefile
Olshansk
Create or improve Makefiles with minimal complexity.
SkillBFreshness: B★ 9Claude Code +9 - 0.543score
cmd-mermaid-render
Olshansk
Render and display Mermaid diagrams inline in iTerm2 or Ghostty.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-code-what
Olshansk
Catch the user up on what the agent has been doing in the current session with 3-5 ultra-tight bullet points.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-plan-store
Olshansk
Capture the current conversation's plan, decisions, and action items into a structured markdown file in the project's plans/ directory.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-codex-review-unstaged
Olshansk
Get a second opinion on what Claude just implemented from Codex (codex exec headless mode).
SkillCFreshness: C★ 9Claude Code +9 - 0.535score
cmd-done-check
Olshansk
Ask the agent whether it finished everything or has more to do — a lightweight completeness gate for the end of any task
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-agent-persona-set
Olshansk
Prime the agent with a behavioral persona for the conversation
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-description
Olshansk
Generate a PR title and description, then commit, create/update the PR on approval
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-edgecase
Olshansk
Review branch changes for test gaps, logic edge cases, failure modes, and integration risks
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-docs-idiot-proof
Olshansk
Simplify documentation for clarity and scannability with approval-gated edits
SkillCFreshness: C★ 9Claude Code +9 - 0.532score
cmd-pr-build-context
Olshansk
Build high-signal PR context for review with diff analysis, risk assessment, and discussion questions
SkillCFreshness: C★ 9Claude Code +9
Signals
- Stars
- 9
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 8, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Olshansk/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Olshansk
- 0.584score
cmd-makefile-improve
Olshansk
Review a repository's Makefile foundation and propose approval-gated improvements to its helpers, templates, tests, and documentation.
SkillBFreshness: B★ 9Claude Code +9 - 0.572score
cmd-makefile
Olshansk
Create or improve Makefiles with minimal complexity.
SkillBFreshness: B★ 9Claude Code +9 - 0.543score
cmd-mermaid-render
Olshansk
Render and display Mermaid diagrams inline in iTerm2 or Ghostty.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-codex-review-unstaged
Olshansk
Get a second opinion on what Claude just implemented from Codex (codex exec headless mode).
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-plan-store
Olshansk
Capture the current conversation's plan, decisions, and action items into a structured markdown file in the project's plans/ directory.
SkillCFreshness: C★ 9Claude Code +9 - 0.538score
cmd-code-what
Olshansk
Catch the user up on what the agent has been doing in the current session with 3-5 ultra-tight bullet points.
SkillCFreshness: C★ 9Claude Code +9
Cite this page
cmd-pr-conflict-resolver skill. Agent Mart. https://agentmart.dev/skills/olshansk-cmd-pr-conflict-resolver (last updated 2026-10-24)