本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)48k · #5623

resolving-merge-conflicts

できること

このツールは、異なるバージョンのコードをマージしようとしたときに発生するコンフリクトを解決するのに役立ちます。変更内容を理解し、正しく組み合わせる手順を案内します。

使う場面

  • ✓Gitがコードのマージ後にコンフリクトを警告したとき。
  • ✓どのファイルに問題があり、それぞれ何が変わったのかを確認したいとき。
  • ✓どちらのコードを残すか、または両方をどう組み合わせるかを決める必要があるとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/resolving-merge-conflicts/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/resolving-merge-conflicts/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Gitのコンフリクトが発生しています。解決を手伝ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、現在のコードの状態を分析し、メッセージや履歴を読んでコンフリクトの原因となった変更を把握します。そのうえで、プロジェクトの主な目的を保ちながら、各部分をどう組み合わせるかを一緒に決めていきます。最後に、すべてが問題なく動くかを確認して作業を完了させます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

When to Use

Use when you need to resolve an in-progress git merge/rebase conflict.

  1. See the current state of the merge/rebase. Check git history, and the conflicting files.

  2. 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.

  3. 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.

  4. Discover the project's automated checks and run them — typically typecheck, then tests, then format. Fix anything the merge broke.

  5. Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.

Example

User request:

Use @resolving-merge-conflicts for this task: Use when you need to resolve an in-progress git merge/rebase conflict.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
よくある質問

マージ/リベースのコンフリクトとは何ですか?

2つのコードのバージョンが同じ箇所を異なる方法で変更しているため、Gitが自動で結合できない状態のことです。

「hunkを解決する」とはどういう意味ですか?

「hunk」とは、変更が入っているコードのまとまりのことです。解決するとは、そのまとまりのどちらのバージョンを残すか、または両方をどう組み合わせるかを決めることを指します。

なぜ新しい動作を勝手に作ってはいけないのですか?

目的は、それぞれの変更の本来の意図をマージすることであり、新しいものを作ることではないからです。勝手に作ると、すでに動いていた機能が壊れたり、プロジェクトの目的から外れたりする可能性があります。

詳細

作者による元の説明

Use when you need to resolve an in-progress git merge/rebase conflict.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5623
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル