| name | rebase |
| description | Use when the user asks to rebase the current branch onto another branch or update branch history without merging. |
| argument-hint | [target-branch] (defaults to master/main) |
input = $ARGUMENTS
Goal: clean linear history, ready to push.
Read at the point of use, not up front:
- Conflicts →
~/.claude/skills/shared/conflict-heuristics.md
- Migration files touched →
~/.claude/skills/shared/migration-reconciliation.md
Execution
Announce commits ahead + target, then proceed without waiting for confirmation.
After the rebase:
- If any migration files were touched: reconcile per the migration guide (re-chain + apply to local DB if running).
- Run the repository's configured quality gates — rebase bypasses pre-commit hooks, so inspect its scripts and configuration rather than relying on a separate instruction document.
- Force-push with
--force-with-lease. Invoking /rebase = intent to push; no additional confirmation needed.
Report: commits applied/dropped, conflicts resolved, migration reconciliation results, quality gate results.