ase-repo-merge

ase-repo-merge is a skill for Claude Code from rse/ase. It costs 87 tokens per session (4,194 once invoked), scanned C, original, Apache-2.0.

A Git branch-merging workflow that combines a source branch with a target branch, including uncommitted changes. It can use a regular merge, a rebase with fast-forward, or a squash merge, then reports whether the merge succeeded or had conflicts.

In plain words
What is it for?
Use it to merge branches, resolve conflicts based on the meaning of the code, check that the source branch reached the target, and return a MERGED, CONFLICT, or FAILED result.
Why use it?
It removes the need to handle branch checks, merge choices, conflict resolution, and post-merge verification manually.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ase plugin — 65 skills, 12 agents, 5 hooks shipped together

Good fit Use it to merge branches, resolve conflicts based on the meaning of the code, check that the source branch reached the target, and return a MERGED, CONFLICT, or FAILED result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rse/ase/ase-repo-merge
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rse/ase --skill ase-repo-merge
Clone the repo
git clone --depth 1 https://github.com/rse/ase

Made for: Claude Code.

Or install ase, the plugin that ships this one along with the rest of its 65 skills, 12 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ase-repo-merge

README.md
[![agentmods](https://agentmods.dev/badge/skills/rse/ase/ase-repo-merge/github.svg)](https://agentmods.dev/skills/rse/ase/ase-repo-merge)
Your own site
<a href="https://agentmods.dev/skills/rse/ase/ase-repo-merge"><img src="https://agentmods.dev/badge/skills/rse/ase/ase-repo-merge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ase-repo-merge

Your own site · 80×15
<a href="https://agentmods.dev/skills/rse/ase/ase-repo-merge"><img src="https://agentmods.dev/badge/skills/rse/ase/ase-repo-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,194 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.04194
Opus 5.5 $0.00035 $0.01678
Sonnet 5.5 $0.00017 $0.00839
Haiku 4.5 $0.00009 $0.00419

Measured 6d ago against content hash 966b35c2270a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

ase-repo-merge scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- "Bash(rm -rf *)"
plugin/skills/ase-repo-merge/SKILL.md · 372 lines

How it starts

The opening of the file, as written. The whole thing — 372 lines — stays where its author put it; the contents beside it link to each section on GitHub.

@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md @${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md @${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md

$ARGUMENTS

During the entire operation, you MUST NEVER create, switch, or check out any branch beyond the commands explicitly prescribed by the steps below, and always commit on the branch currently checked out, as a branch switch destroys the in-progress operation state like MERGE_HEAD or SQUASH_MSG -- this overrides any general rule like "branch first if on the default branch".

@${CLAUDE_SKILL_DIR}/../../meta/ase-common-resolve.md

Then only output the following and then immediately STOP processing the entire current skill:

    1. Set to empty, to false, and to false.

    2. Set to with any leading and trailing whitespace stripped. If is empty or contains whitespace, expand the following:

    3. Determine the checked-out branch by running the command git branch --show-current (taken exactly as given) and capturing its output into . If is current, set , otherwise set . If is empty (detached HEAD), expand the following:

    4. For each of the branches and , first check that it matches the regexp ^[A-Za-z0-9._/+@-]+$, which keeps it safe for being passed quoted to the git commands, and only then run the command git rev-parse --verify --quiet "refs/heads/<branch/>" (with substituted). If the check or the command fails for a branch, expand the following:

    5. Determine the worktrees by running the command git worktree list --porcelain (taken exactly as given). Set to the worktree path of the entry whose branch line is refs/heads/<source/> (or to empty if there is none), and set to the worktree path of the entry whose branch line is refs/heads/<target/> (or to empty if there is none). Do not output anything.

    1. If is empty, skip this entire STEP 2, as a branch not checked out anywhere carries no uncommitted changes.

    2. Run the command git -C "<source-dir/>" status --porcelain. If its output is empty, skip the remaining items of this STEP 2.

    3. Stage all changes by running the command git -C "<source-dir/>" add --all, inspect them by running the command git -C "<source-dir/>" diff --cached, and craft a commit in the format <type/>: <summary/>, where is one of FEATURE, IMPROVEMENT, BUGFIX, UPDATE, CLEANUP, or REFACTOR and is a 60-80 character, imperative-mood summary without a trailing period, without Markdown formatting, and without any double-quote ("), backtick (`), dollar ($), or backslash (\) characters. Never add Co-Authored-By trailers to commit messages.

Read the full file on GitHub · 372 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +22 lines 966b35c2270a
  2. 13d ago Changed · +2 lines a50b20557b64
  3. 1mo ago Changed · +1 lines 229e28fc4ddf
  4. 2mo ago First seen · 347 lines · 87 tokens per session scan C 65881678e832

Subscribe to this mod's changes

ase-repo-merge is a skill published in the GitHub repository rse/ase (78 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 4,194 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

ase-repo-merge compared with skills from other repositories

ase-repo-merge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ase-repo-mergerse/aseSkill78todayApache-2.0C87Claude Code
moai-workflow-worktreemodu-ai/moai-adkSkill1.3ktodayApache-2.0A41Claude Code
moai-ref-git-workflowmodu-ai/moai-adkSkill1.3ktodayApache-2.0A58Claude Code
git-commit-helperalirezarezvani/claude-code-tresorSkill79020d agoMITA55Claude Code
verifymodu-ai/moai-adkSkill1.3ktodayApache-2.0A60Claude Code
moai-syncmodu-ai/moai-adkSkill1.3ktodayApache-2.0A16Claude Code
release-checkPromptPartner/agentsmithSkill1443d agoMITA43Claude Code