rebase-onto-main
Skill0 starsChanged 4 months agoMITView on GitHub
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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- PX4/PX4-Autopilottheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- PX4/PX4-Autopilot★ 13ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- address-pr-feedbackSkill
- architectureSkill
- code-reviewSkill
- code-structureSkill
- competitive-briefSkill
- contract-guardSkill
- debugSkill
- deep-workSkill
- dependency-upgradeSkill
- deploy-checklistSkill
- diagnoseSkill
- documentationSkill
- explain-pr-step-by-stepSkill
- feedback-checkpointSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- improve-codebase-architectureSkill
- incident-responseSkill
- memory-managementSkill
- observabilitySkill
- plan-criticSkill
- plan-from-rfcSkill
- pr-babysitterSkill
- prototypeSkill
- queue-checkSkill
- releaseSkill
- security-reviewSkill
- setup-engineering-skillsSkill
- squash-and-pushSkill
- synthesize-researchSkill
- system-designSkill
- tddSkill
- tech-debtSkill
- testing-strategySkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- verification-before-completionSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run git branch --show-current.
- Distinctive: line 14
If the working tree is dirty, stop and ask whether to commit or stash first.
- Distinctive: line 18
If the default branch isn't main, detect it (git remote show origin) and use that instead throughout.
- Distinctive: line 24
If a conflict occurs:
- Distinctive: line 25
Run git status --short and report conflicted files.
- Distinctive: line 26
Stop and ask the user whether to continue resolving, abort (git rebase --abort), or take a narrower scope.
- Distinctive: line 30
Run git log --oneline -5 for a quick verification summary.
- Very specific: line 31
If the branch was previously pushed, note that the next push requires --force-with-lease — never plain --force.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

