Rewrite a branch into clean, narrative-quality commits. Creates a backup, reimplements the changes on a fresh branch, verifies the result is byte-identical to the backup, then replaces the original branch history.
Rewrite the current branch's history into clean, narrative-quality commits suitable for code review.
Transform messy development history into a logical story reviewers can follow commit-by-commit. Original branch is rewritten; backup preserved for rollback.
$ARGUMENTS = optional flags (--auto skips interactive approval)
Abort with clear error if:
{branch}-backup-{timestamp} — permanent until manually deleted--no-verify for intermediate commitsgit diff {original-branch} MUST be empty—abort if any difference--force-with-leaseThe byte-identical check is non-negotiable. If git diff {backup-branch} shows ANY difference after reimplementation:
type(scope): description--force-with-lease for push (never --force)Unless $ARGUMENTS contains --auto:
If anything goes wrong: git reset --hard {branch}-backup-{timestamp}
Report commit count, backup branch name, and the new commit log.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer