pr-rebase
Skill11 starsChanged 4 months agoMITView on GitHub
Use for branch rebases only on explicit request. Never infer from a behind branch. Rebases onto the branch base.
- Deletes or force-pushes
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wyattjoh/skillstheir own version, first seen Sep 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- wyattjoh/skills★ 2same 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 repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- create-team-skillSkill
- version-bumpSkill
- agent-promptSkill
- audit-complexitySkill
- audit-testsSkill
- code-reviewSkill
- eng-design-doc-reviewSkill
- groom-backlogSkill
- howSkill
- no-commentsSkill
- paparazziSkill
- pr-cleanupSkill
- principle-fix-root-causesSkill
- pr-open-commentsSkill
- proveSkill
- pr-screenshotsSkill
- pr-watch-as-authorSkill
- pr-watch-as-reviewerSkill
- retroSkill
- shipitSkill
- team-designSkill
- team-fixSkill
- team-implementSkill
- team-planSkill
- team-prSkill
- team-questionSkill
- team-researchSkill
- teamSkill
- team-structureSkill
- team-worktreeSkill
- whySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Never take a side whole, never git rebase --skip, and ask the user when the code and its history do not decide.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
pr-rebase — rebase onto the latest base
Fetch the base, rebase the current branch onto it, resolve conflicts from both sides' intent, and confirm the branch still works before publishing it.
- Base. Resolve it from
$ARGUMENTSwhen that names a PR number or URL — a failed lookup stops the run — otherwise from the repository's default branch (git symbolic-ref refs/remotes/origin/HEAD), thenmain. Fetch it fromorigin, or from the remote that owns the base repository when they differ. The argument selects the base only; the branch rebased is always the current checkout. - Pre-flight. Refuse to start on a dirty tracked tree, a rebase or merge
already in progress, or a checkout of the base branch itself. Record
git rev-parse HEADas the recovery point, reportgit reset --hard <sha>whenever the run stops, and run the project's checks once, keeping each result. - Rebase the checkout onto the fetched base, with
--rebase-mergeswhen the branch contains merge commits. On a conflict, read the stages (git show :1:,:2:,:3:) and keep both sides' intent. During a rebase--oursis the base and--theirsis your commit — the reverse of a merge. Never take a side whole, nevergit rebase --skip, and ask the user when the code and its history do not decide. - Verify by re-running the same checks. A check that passed before and fails now stops the run, as does an undecided conflict; nothing reaches the remote while either stands.
- Publish with
git push --force-with-lease=<branch>:<pre-fetch-sha> --force-if-includes, the lease sha captured before the fetch. Never use a bare--force; a branch that was never pushed getsgit push -uinstead. The explicit invocation authorized the rewrite — do not stop to confirm it.
Report the base and its source, the commits replayed, the conflicts resolved, the before/after checks, and whether the push happened. Does not wait for CI and does not merge.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

