rebase

Featured

Replay the current branch onto its base and establish that the result is sound. Preflight settles the base by comparing the local default branch against origin's copy. The rebase runs under pinned settings. A range-diff afterwards says what the replay did to each commit. The gates then run against a tree no commit ever saw. Conflicts route to the resolve-rebase-conflicts skill. Use this whenever the user asks to rebase or to bring a branch current, and whenever a workflow needs the branch moved first.

AI & Automation 92 stars 8 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Rebase workflow Move the branch onto its base, then establish that what came out is right. A guard hook runs alongside. It refuses a rebase started by hand and a continue past a conflict git never checked. It also refuses a dropped commit that isn't empty, a bare stash pop, and a force push without a lease. ## Preflight !`bash ${CLAUDE_SKILL_DIR}/scripts/preflight.sh` ## Step 0: open the task list Create these with `TaskCreate`, then move each through `in_progress` and `completed`. 1. Choose the base 2. Settle the working tree 3. Start the rebase 4. Resolve whatever it stops on 5. Verify the result 6. Report Preflight reporting a merge or cherry-pick in progress stops everything. Say what's in the way and hand back. A rebase already in progress is the other case, and that one resumes at step 4. ## Step 1: choose the base Preflight computed this under `== rebase base ==`. Take its recommendation. - Local default branch carries everything the remote has, so rebase onto the local branch. - Local default branch sits behind the remote, so rebase onto `origin/<default>` and skip the stale local copy. The `commit` skill's preflight makes the same decision, and both reach the same answer. Where the operator names a different base, use theirs and say why it differs. Nothing to replay means nothing to do. Say so and stop. ## Step 2: settle the working tree `--autostash` handles a dirty tree, and `start-rebase.sh` passes it. It scopes the save to this rebase and never t...

Details

Author
tbhb
Repository
tbhb/vale-ai-tells
Created
9 months ago
Last Updated
yesterday
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

rebase

Rebase a work-in-progress or completed branch onto a new base, ensuring the rebased changes still satisfy their original spec, comply with the (possibly updated) architecture, conventions, and invariants of the new base, and introduce no regressions. Use when the user says "rebase this branch on X", "rebase my work on master", "move these commits onto the new base", or otherwise asks to migrate a set of commits onto a different base than they were authored against.

2 Updated yesterday
korya
AI & Automation Listed

pr-rebase

Bring a feature branch up to date with its base without changing what the branch does: capture a pre-rebase check baseline, fetch, rebase onto the latest base, resolve each conflict from both sides' intent with the rationale recorded to disk, re-run the same checks, and treat any check that passed before and fails after as a regression that blocks the push. Ends with an unprompted, lease-verified publish through the repo's own publisher — a `--force-with-lease --force-if-includes` push by default. Invoke ONLY on explicit rebase intent — the user says "rebase onto main", "pull main and rebase", "update the branch", "get this branch current", or runs "/pr-rebase". A rebase rewrites history and the push rewrites the remote: never infer rebase intent from a branch merely being behind its base, from a red CI run, or from a merge-conflict warning on the PR page.

11 Updated today
bostonaholic
AI & Automation Listed

branch-rebaser

Rebase the current branch onto its base and walk every conflict methodically, resolving each by understanding both sides. Use when your feature branch has fallen behind main and you want a clean, linear history without clobbering changes.

1 Updated today
imtiazrayhan