git-rebase

git-rebase is a skill for Claude Code, Codex from djscheuf/agentic-dev-ecosystem-template. It costs 121 tokens per session (3,792 once invoked), scanned A, original, MIT.

A guide to rebasing a Git feature branch onto the latest main branch. Rebasing replays your branch's changes on top of newer changes so the project history stays linear.

In plain words
What is it for?
Use it before opening a pull request, to sync a personal branch with main, or to handle conflicts during a rebase.
Why use it?
It helps update a branch and resolve conflicts before review without adding a merge commit. It also covers cleaning up commits, while warning against rebasing shared branches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before opening a pull request, to sync a personal branch with main, or to handle conflicts during a rebase.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/djscheuf/agentic-dev-ecosystem-template/git-rebase
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 djscheuf/agentic-dev-ecosystem-template --skill git-rebase
Clone the repo
git clone --depth 1 https://github.com/djscheuf/agentic-dev-ecosystem-template

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/djscheuf/agentic-dev-ecosystem-template/git-rebase/github.svg)](https://agentmods.dev/skills/djscheuf/agentic-dev-ecosystem-template/git-rebase)
Your own site
<a href="https://agentmods.dev/skills/djscheuf/agentic-dev-ecosystem-template/git-rebase"><img src="https://agentmods.dev/badge/skills/djscheuf/agentic-dev-ecosystem-template/git-rebase/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 git-rebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/djscheuf/agentic-dev-ecosystem-template/git-rebase"><img src="https://agentmods.dev/badge/skills/djscheuf/agentic-dev-ecosystem-template/git-rebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,792 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.00121 $0.03792
Opus 5.5 $0.00048 $0.01517
Sonnet 5.5 $0.00024 $0.00758
Haiku 4.5 $0.00012 $0.00379

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

Security

Grade A, and why

git-rebase 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 21d 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.

.devin/skills/git-rebase/SKILL.md · 672 lines

How it starts

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

Git Rebase

This skill guides you through rebasing your feature branch onto the latest main for a clean, linear history.

When to Use This Skill

  • Preparing branches before creating a PR
  • Updating feature branch with latest main changes
  • Cleaning up commit history before review
  • Syncing personal branches with main
  • Handling rebase conflicts
  • Interactive rebase for commit cleanup

When to Use Rebase

✅ Good Use Cases:

  • Before creating a PR - Clean history before review
  • Updating feature branch - Alternative to merge for cleaner history
  • Personal branches - When you're the only one working on the branch
  • Syncing with main - Keep your branch up-to-date with latest changes

❌ When NOT to Rebase:

  • Shared branches - Never rebase branches others are working on
  • Already pushed commits - Changes history that others may have
  • After merge commits - Can cause complex conflicts
  • On main/master - Never rebase the main branch itself

Basic Usage

Standard Rebase

# Rebase current branch onto main
git fetch origin main
git rebase origin/main

With Conflict Handling

# Continue after resolving conflicts
git add <resolved-files>
git rebase --continue

# Abort rebase in progress
git rebase --abort

# Skip current commit (use cautiously)
git rebase --skip

Force Push After Rebase

# Safer force push (recommended)
git push --force-with-lease

# Standard force push (use with caution)
git push --force

Rebase Workflow

Step 1: Pre-flight Checks

Check current branch:

git branch --show-current

Verify not on main/master:

  • Cannot rebase main onto itself
  • Must be on a feature branch

Check for uncommitted changes:

git status

If you have uncommitted changes:

# Option A: Stash changes
git stash save "WIP: description"

# Option B: Commit changes
git add .
git commit -m "WIP: checkpoint"

Step 2: Update Target Branch

Fetch latest main:

git fetch origin main

Read the full file on GitHub · 672 lines

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. 21d ago First seen · 672 lines · 121 tokens per session scan A f3a743fabac4

Subscribe to this mod's changes

git-rebase is a skill published in the GitHub repository djscheuf/agentic-dev-ecosystem-template (12 stars, last pushed 20d ago), licensed MIT. It adds 121 tokens to every session and 3,792 once invoked, about $0.0005 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-10-02.