RE

resolve-conflict

Automates the identification, resolution, and re-merging process for conflicting branches.

Install

mkdir -p .claude/skills/resolve-conflict && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10271" && unzip -o skill.zip -d .claude/skills/resolve-conflict && rm skill.zip

Installs to .claude/skills/resolve-conflict

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

PR マージ時に発生したコンフリクト(競合)を解消するリカバリスキル。「コンフリクトが発生した」 「マージが失敗した」「405 Pull Request is not mergeable」「競合を解消して」 「merge conflict を直して」と言った場合にトリガーする。 submit-pull-request でマージが失敗した場合に呼び出されるエラーリカバリ専用スキル。 コンフリクト箇所の特定・解消・再マージを自動化する。
218 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Fetch latest changes
  • Identify conflict files
  • Resolve conflict markers
  • Push resolved branch
  • Re-merge pull request

How it works

It reads project settings, fetches the base branch, merges it, resolves conflict markers, and pushes the fix to re-trigger the merge.

Inputs & outputs

You give it
Pull request merge failure
You get back
Resolved and re-merged pull request

When to use resolve-conflict

  • Resolve merge conflicts
  • Fix failed pull requests
  • Re-merge branch after conflict

About this skill

コンフリクト解消

PR マージが 405 Pull Request is not mergeable で失敗した場合に使用する。

前提

.github/settings.json からプロジェクト設定を読み取って使用する。

手順

0. 設定読み込み

.github/settings.json を読み取り、以下の値を使用する:

  • github.owner — GitHub リポジトリオーナー(以降 <owner> と表記)
  • github.repo — GitHub リポジトリ名(以降 <repo> と表記)
  • github.mergeMethod — マージ方式(以降 <mergeMethod> と表記)

1. ベースブランチの最新をフェッチ

cd .worktrees/<ブランチ名>
git fetch origin <ベースブランチ>

2. ベースブランチをマージ

git merge origin/<ベースブランチ>

3. コンフリクト解消

  • コンフリクトしたファイルを確認: git diff --name-only --diff-filter=U
  • 各ファイルのコンフリクトマーカー(<<<<<<<, =======, >>>>>>>)を解消
  • 両方の変更を統合するのが基本方針(一方を捨てない)

4. コミット&プッシュ

git add -A
git commit -m "merge: resolve conflict with <競合ブランチ> (<prefix>-<番号>)"
git push origin <フルブランチ名>

5. PR を再マージ

mcp_io_github_git_merge_pull_request:
  owner: "<owner>"
  repo: "<repo>"
  pullNumber: <PR番号>
  merge_method: "<mergeMethod>"

When not to use it

  • Non-merge conflict errors
  • Pull requests that are not mergeable for reasons other than conflicts

Prerequisites

.github/settings.json

Limitations

  • Requires .github/settings.json configuration

How it compares

It automates the entire conflict resolution and re-merge cycle rather than requiring manual intervention.

Compared to similar skills

resolve-conflict side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
resolve-conflict (this skill)05moReviewIntermediate
resolve-conflicts818moReviewIntermediate
openspec-onboard106moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry