Git Mergeのロゴ

Git Merge

組織
SpecterOps
git-merge

Complex git operations — merge conflict resolution, cherry-picks, rebases. Use when merging branches, resolving conflicts, cherry-picking commits, or rebasing.

概要

公開者SpecterOps
リポジトリskills
スキル名git-merge
スター
706
フォーク
80
同梱ファイル
3
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SpecterOpsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルGit MergeをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SpecterOps/skills/tree/main/plugins/workflows-development/skills/git-merge
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SpecterOps/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/workflows-development/skills/git-merge .claude/skills/git-merge
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGit Mergeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にGit Mergeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Git Mergeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Git Merge & Conflict Resolution

Handle complex git operations: merges, cherry-picks, rebases, and conflict resolution.

Parse the user's input to determine the action:

  • $git-merge or $git-merge resolve — detect and resolve current conflicts
  • $git-merge branch <name> — merge a branch into current, handle conflicts
  • $git-merge cherry-pick <commit>... — cherry-pick with conflict handling
  • $git-merge rebase <base> — non-interactive rebase onto base
  • $git-merge abort — abort in-progress merge/rebase/cherry-pick
  • $git-merge status — show current merge/rebase/cherry-pick state

Prerequisites

  1. Verify we're in a git repository (git rev-parse --is-inside-work-tree)
  2. If not in a git repo, tell the user and stop

Action: status

  1. Run git status to show branch and state
  2. Check for in-progress operations:
    • .git/MERGE_HEAD → merge in progress
    • .git/rebase-merge/ or .git/rebase-apply/ → rebase in progress
    • .git/CHERRY_PICK_HEAD → cherry-pick in progress
  3. If conflicts exist, list conflicted files with git status --porcelain (look for UU, AA, DD, AU, UA)
  4. Report current branch, upstream tracking, and any in-progress operation

Action: resolve (default)

  1. Run git status --porcelain to find conflicted files (UU, AA, DD, AU, UA prefixes)
  2. If no conflicts found, report clean state and stop
  3. For each conflicted file: a. Read the file to find <<<<<<<, =======, >>>>>>> conflict markers b. Read surrounding context and related tests to understand intent of both sides c. If the resolution is clear (e.g., both sides made non-overlapping changes within the same hunk), resolve by editing the file — remove all conflict markers and produce the correct merged result d. If the resolution is ambiguous, show both sides to the user and ask which approach to take — never silently pick a side e. For binary file conflicts, ask the user to choose --ours or --theirs f. After resolving each file, run git add <file>
  4. After all files are resolved:
    • If merge: git commit (use git's default merge message, do NOT use conventional commit style)
    • If rebase: git rebase --continue
    • If cherry-pick: git cherry-pick --continue

Action: branch

  1. Verify the branch exists (git rev-parse --verify <name>)
  2. Show what will be merged: git log --oneline HEAD..<name> (commits coming in)
  3. Run git merge <name>
  4. If merge succeeds cleanly, report success with merge commit
  5. If merge has conflicts, follow the resolve workflow above
  6. Use git's default merge commit message — do NOT override with conventional commit style

Action: cherry-pick ...

  1. Validate each commit exists (git rev-parse --verify <commit>)
  2. Show what will be cherry-picked: git log --oneline -1 <commit> for each
  3. Run git cherry-pick <commit>...
  4. If clean, report success
  5. If conflicts, follow the resolve workflow above

Action: rebase

  1. Identify current branch name
  2. Protected branch warning: If current branch is main, master, or develop, warn the user that rebasing a protected branch is dangerous and ask for explicit confirmation before proceeding
  3. Show what will be replayed: git log --oneline <base>..HEAD
  4. Warn the user: after rebase, they'll need git push --force-with-lease to update the remote — never force-push automatically
  5. Run git rebase <base> (non-interactive only — git rebase -i requires an interactive terminal)
  6. If clean, report success
  7. If conflicts, follow the resolve workflow for each step, using git rebase --continue after each resolution

Action: abort

  1. Detect what's in progress:
    • .git/MERGE_HEAD → git merge --abort
    • .git/rebase-merge/ or .git/rebase-apply/ → git rebase --abort
    • .git/CHERRY_PICK_HEAD → git cherry-pick --abort
  2. If nothing is in progress, tell the user
  3. Run the appropriate abort command
  4. Show git status to confirm clean state

Safety Rules

  • Never force-push — warn the user they'll need --force-with-lease after rebase
  • Never use git rebase -i — interactive mode requires a terminal that cannot be provided in this context
  • Ask on ambiguous conflicts — never silently choose a side
  • Warn on protected branches — main, master, develop get explicit warnings before rebase
  • Merge commits use git's default message — only manual commits follow conventional commit style
  • Check for uncommitted changes before starting operations — warn if working tree is dirty

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Git Merge」では何ができますか?

Complex git operations — merge conflict resolution, cherry-picks, rebases. Use when merging branches, resolving conflicts, cherry-picking commits, or rebasing.

TypingMindでGit Mergeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Git Mergeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGit Mergeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SpecterOps/skills/tree/main/plugins/workflows-development/skills/git-mergeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Git Mergeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Git Mergeは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGit Mergeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Git Merge」は無料ですか?

はい。SpecterOpsがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇