rebase-all

rebase-all is a skill for Claude Code from motlin/claude-code-plugins. It costs 33 tokens per session (310 once invoked), scanned A, original, Apache-2.0.

A workflow for rebasing every local Git branch onto its configured upstream branch. Rebasing replays a branch's commits on top of newer commits.

In plain words
What is it for?
Use it to update all local branches, handle conflicts on affected branches, and report progress and completion.
Why use it?
It keeps branches aligned with their upstream branches and provides a repeatable way to work through conflicts until the updates finish.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the git plugin — 12 skills shipped together

Good fit Use it to update all local branches, handle conflicts on affected branches, and report progress and completion.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add motlin/claude-code-plugins
Claude Code
/plugin install git

Made for: Claude Code.

Or install git, the plugin that ships this one along with the rest of its 12 skills.

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 rebase-all

README.md
[![agentmods](https://agentmods.dev/badge/skills/motlin/claude-code-plugins/rebase-all/github.svg)](https://agentmods.dev/skills/motlin/claude-code-plugins/rebase-all)
Your own site
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/rebase-all"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/rebase-all/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 rebase-all

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/rebase-all"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/rebase-all.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00033 $0.00310
Opus 5.5 $0.00013 $0.00124
Sonnet 5.5 $0.00007 $0.00062
Haiku 4.5 $0.00003 $0.00031

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

Security

Grade A, and why

rebase-all scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/git/skills/rebase-all/SKILL.md · 26 lines

What it actually says

Rebase All

Resolve <plugin-root> before running plugin scripts:

  • In Claude Code, use ${CLAUDE_PLUGIN_ROOT}.
  • In Codex, use the plugin root that contains this skills/rebase-all/SKILL.md file.

Run:

<plugin-root>/scripts/rebase-all

The script first runs replay-all, which moves every branch that replays cleanly without checking it out, then rebases only the branches replay left behind.

It reads UPSTREAM_REMOTE, which defaults to upstream. When the repository has no upstream remote, pass UPSTREAM_REMOTE=origin, and suggest adding export UPSTREAM_REMOTE=origin to the project's .envrc.

If it stops on merge conflicts, resolve them in the affected branch with the git:conflicts skill, then run the script again. Repeat until it completes without errors or conflicts, naming the branch you're on and summarizing the conflicts after each pass.

Once every branch is rebased, offer to clean up merged branches with <plugin-root>/scripts/delete-merged. It deletes local branches merged into upstream main and also runs git push --delete origin for merged remote branches, so it is outward-facing. Ask the user before running it, and skip it if they decline.

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. 3d ago Changed · +4 lines 30623b148414
  2. 9d ago Changed · +2 lines 8fa479c6865e
  3. 22d ago Changed · -11 lines fed35a8e32f6
  4. 1mo ago First seen · 31 lines · 33 tokens per session scan A de77f5d2975c

Subscribe to this mod's changes

rebase-all is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 310 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.