Rebase onto main
40 portable full-SDLC agent skills for Claude Code, Cursor, Codex, and GitHub Copilot — deep-work autonomy, contract-guard for external interfaces, TDD, code review, PR babysitting. Install: npx github:IcodeNet/agent-skills
npx -y skills add IcodeNet/agent-skills --skill rebase-onto-mainAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Rebase the current branch onto main with guardrails. Manual command — run with /rebase-onto-main when the user asks to rebase the current branch on main.
SKILL.md
1.2 KB, 254 tokens by cl100k_base, as published. Nobody here has run it
Rebase Onto Main
Rebase the current branch onto the latest main safely.
-
Branch + cleanliness checks
- Run
git branch --show-current; abort if onmain/master. - Run
git status --short. - If the working tree is dirty, stop and ask whether to commit or stash first.
- Run
-
Fetch latest main
- Run
git fetch origin main. - If the default branch isn't
main, detect it (git remote show origin) and use that instead throughout.
- Run
-
Rebase
- Run
git rebase origin/main.
- Run
-
Conflict handling (mandatory)
- If a conflict occurs:
- Run
git status --shortand report conflicted files. - Stop and ask the user whether to continue resolving, abort (
git rebase --abort), or take a narrower scope.
- Run
- If a conflict occurs:
-
Post-rebase verification
- Run
git status. - Run
git log --oneline -5for a quick verification summary. - If the branch was previously pushed, note that the next push requires
--force-with-lease— never plain--force.
- Run
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.