
Git merge
Guides an agent through merging a feature branch into the default branch with inspection
Git merge is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 12
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Git merge
This skill walks an AI coding agent through merging a feature or dev branch into the default branch using a non-fast-forward merge that is staged but not committed. That lets the agent and user inspect the diff summary and run the build and tests before the merge commit is created.
The workflow has two main phases. First, the default branch is pulled into the feature branch and any conflicts are resolved there. Second, the feature branch is merged into the default branch, with a confirmation step before committing and pushing. The skill also covers pre-commit checks, handling lockfile conflicts by regenerating them, backing out safely with merge abort or a non-destructive reset, and recovering when a push is rejected. Optional release tagging and branch cleanup steps are included.
The skill expects a git repository with a default branch and the user's own build and test commands. If merges go through pull requests, the skill directs the agent to open one instead, and it points to a separate code-review skill for that.
When your agent uses it
Merges a feature or dev branch into the default branch with --no-ff --no-commit so the merge can be inspected and built before it is committed. Use for branch, release and sync merges, merge conflicts (lockfiles too) or a half-done merge; if merges go through PRs, open a PR. The code-review skill opens PRs.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the konductor plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductorOr copy only this skill to ~/.claude/skills/git-merge:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/git-merge &&
cp -R "$tmp/skills/git-merge" ~/.claude/skills/git-merge &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/git-merge inside it instead.
Copy the skill folder to ~/.agents/skills/git-merge to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/git-merge &&
cp -R "$tmp/skills/git-merge" ~/.agents/skills/git-merge &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/git-merge inside it instead.
Copy the skill folder to ~/.cursor/skills/git-merge to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/git-merge &&
cp -R "$tmp/skills/git-merge" ~/.cursor/skills/git-merge &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/git-merge inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/aws-solutions/konductor.git --path skills/git-mergeOr copy the folder to ~/.gemini/skills/git-merge yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/git-merge:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/git-merge &&
cp -R "$tmp/skills/git-merge" ~/.copilot/skills/git-merge &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/git-merge inside it instead.
Get the folder:
git clone --depth 1 https://github.com/aws-solutions/konductor.gitThen copy konductor/skills/git-merge into your agent's skills folder as git-merge. Agents that support SKILL.md read one folder per skill.
What it does
- Non-fast-forward merge
- Creates merges with --no-ff and --no-commit so history is kept and the result can be checked first.
- Pre-commit verification
- Checks for unmerged paths, leftover conflict markers and whitespace errors, then runs the repo's build and tests.
- Two-phase merge flow
- Syncs the feature branch with the default branch first, then merges the feature branch back in.
- Conflict and lockfile handling
- Explains how to resolve source conflicts and regenerate lockfiles instead of hand-editing markers.
- Safe recovery steps
- Uses merge abort or a non-destructive reset rather than hard resets or force pushes.
- Confirmation before pushing
- Requires explicit user approval before merging into or pushing to the default branch.
Good for
- Merge my feature branch into main with a non-fast-forward merge
- Sync my feature branch with the latest main before merging back
- Resolve merge conflicts in package-lock.json during a merge
- Recover from a half-finished merge without losing changes
- Tag a release after merging the dev branch
Git merge FAQ
When does Git merge trigger?
It is meant for branch merges, release merges, merge conflicts including lockfiles, and half-finished merges. Trigger words include merge, merge branch, merge into main and release merge.
Does Git merge commit or push on its own?
No. The merge is staged first, the diff summary is shown, and the user must confirm before the commit and push happen.
What if the repository uses pull requests?
The skill tells the agent to open a pull request from the feature branch instead of merging locally, and to refer to the code-review skill for that.
Does Git merge force-push or rebase?
No. The skill states that force-pushing and rebasing shared branches are not allowed.
How do I install Git merge in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/git-merge to use it in all your projects, or to .claude/skills/git-merge in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.
Does Git merge run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Git merge?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Git merge?
The closest alternatives to Git merge are Fix merge conflicts, Resolve merge conflicts, Git workflow and versioning, GitHub workflow and Git workflow.
Where this comes from
- Description: from the skill's own SKILL.md.
More from aws-solutions/konductor

Helps diagnose and troubleshoot an existing Konductor install, CLI, and MCP setup
- Open source
- 12 GitHub stars
- Developer tools

Installs, updates or removes the Konductor toolkit in a Kiro workspace with consent gates
- Open source
- 12 GitHub stars
- Developer tools

Onboards you to Konductor: install the CLI, set up agent content, and start a session
- Open source
- 12 GitHub stars
- Developer tools

Adversarial second-pass code review that hunts for disclosure, data integrity
- Open source
- 12 GitHub stars
- Security

Reviews a code diff for data integrity risks like partial writes and lost updates
- Open source
- 12 GitHub stars
- Developer tools

Reviews code diffs for schema, API contract and backward-compatibility risks
- Open source
- 12 GitHub stars
- Developer tools





