Git Merge logo

Git Merge

Organization
SpecterOps
git-merge

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

Overview

PublisherSpecterOps
Repositoryskills
Skill namegit-merge
Stars
706
Forks
80
Bundled files
3
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by SpecterOps on GitHub. Read the source before you install it.

Installation

Install the Git Merge AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/SpecterOps/skills/tree/main/plugins/workflows-development/skills/git-merge
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Git Merge in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Git Merge on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Git Merge is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Git Merge AI skill do?

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

Why use Git Merge on TypingMind?

Because you install it once and use it with any model. Git Merge is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Git Merge in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SpecterOps/skills/tree/main/plugins/workflows-development/skills/git-merge. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Git Merge?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Git Merge?

As many as you like. As long as a model supports skills, you can use Git Merge with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Git Merge AI skill free?

Yes. It is published on GitHub by SpecterOps under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇