rebase
Skill43 starsChanged 4 months agoMITView on GitHub
Use when you need to rebase the current branch onto main, resolve merge conflicts, and force-push
- Deletes or force-pushes
- Commits and pushes
27 other projects use a version of this.
Adopted by
Most recently taken up by
- TDesktop-x64/tdesktoptheir own version, first seen Nov 9, 2026
- mazzsva/claude-skillstheir own version, first seen Nov 8, 2026
- mustafarslan/skillstheir own version, first seen Nov 8, 2026
- korya/swd-skillstheir own version, first seen Nov 1, 2026
- tkadauke/syrustheir own version, first seen Nov 1, 2026
- tony/skillstheir own version, first seen Oct 31, 2026
Used with
Projects with it also use dependency-watch, perform-task and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
telegramdesktopSkilldependency-watch
Audit Telegram Desktop dependencies on freshly fetched origin/dev for releases and security fixes, including upstream lag and backport candidates in patched forks. Use for the scheduled dependency monitor or an explicitly requested dependency report.
Also in 5 projects that use this
telegramdesktopSkillperform-task
Resolve, start or resume, implement, review, test, and publish exactly one existing ai-tdesktop task by short slug or full dated id, including rare blocked retries and split-required results. Use when the user invokes $perform-task or /perform-task with a known task name, or when the continue scheduler delegates one selected task. Runs standard review lenses with fast applicability bailouts and selects task-specific domain and evidence instruments without selecting additional work.
Also in 5 projects that use this
JerovinoSkillprocess-inbox
Processes tasks.md inbox items by triaging each one to its proper location in the vault
Also in 5 projects that use this
Trejon-888Skillcontinue
Load project context, alignment audit, status check, suggest next action. Auto-invoke at session start, after context switches, or when user says 'continue', 'pick up where we left off', 'resume', 'what's next', 'status check', 'what now'.
Also in 6 projects that use this
lepinkainenSkillcode-health
Analyze codebase health - large files, test coverage gaps, duplicate code, dead/legacy code, and documentation issues. Use when asked to scan, audit, or assess code quality, find refactoring targets, or identify technical debt.
Also in 3 projects that use this
dekozaSkillfix-pr
Repair an existing pull request's review findings and target-branch conflicts, verify the result, and update the same open PR.
Also in 3 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- telegramdesktop/tdesktop★ 33ksame name
- raine/workmux★ 3ksame name
- TDesktop-x64/tdesktop★ 3ksame name
- openmeterio/openmeter★ 2.4ksame name
- kukuruzka165/materialgram★ 1.2ksame name
- deadlock-mod-manager/deadlock-mod-manager★ 584same name
- opsmill/infrahub★ 548same name
- burhancodes/fagramdesktop★ 205same name
- fagramdesktop/fadesktop★ 205same name
- tbhb/vale-ai-tells★ 118same name
17 more not listed
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 repository20 other files it gives its agents.
- build-write-like-meSkill
- clarifySkill
- commitSkill
- deliver-prSkill
- exploreSkill
- implementSkill
- open-prSkill
- planSkill
- pr-fixSkill
- pr-monitorSkill
- relay-archiveSkill
- relay-statusSkill
- review-prSkill
- reviewSkill
- simplifySkill
- stack-shipSkill
- tlSkill
- todoSkill
- validateSkill
- write-like-meSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If $ARGUMENTS contains a branch name, use it as the base.
- Distinctive: line 24
If output is non-empty, the working tree is dirty.
- Distinctive: line 31
Do NOT auto-stash — too easy to lose work.
- Distinctive: line 47
If the rebase stops with conflicts:
- Very specific: line 49
Run git diff --name-only --diff-filter=U to list conflicted files
- Distinctive: line 51
Read the file to understand the conflict markers
- Distinctive: line 53
Prefer keeping our changes where they don't conflict with upstream intent
- Distinctive: line 54
If unsure about a conflict, ask the user
- Distinctive: line 57
If more conflicts appear, repeat steps 1-4
- Distinctive: line 69
Check whether the branch has an upstream:
- Distinctive: line 79
If the command succeeds: check ahead/behind state:
- Very specific: line 84
If both ahead == 0 and behind == 0: nothing to push, skip.
- Distinctive: line 97
If the branch already has an open PR, the force-push updates it automatically.
“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rebase — Rebase, Fix Conflicts, Push
Rebase the current branch onto the base branch (default: main), resolve any merge conflicts, and force-push.
Steps
1. Determine Base Branch
- If
$ARGUMENTScontains a branch name, use it as the base. - Otherwise, default to
main.
2. Pre-check Working Tree
git status --porcelainIf output is non-empty, the working tree is dirty. Abort and report to the user:
Working tree has uncommitted changes. Commit or stash before rebasing:
<output of git status --porcelain>Do NOT auto-stash — too easy to lose work.
3. Fetch Latest
git fetch origin <BASE_BRANCH>4. Rebase
git rebase origin/<BASE_BRANCH>5. Handle Conflicts
If the rebase stops with conflicts:
- Run
git diff --name-only --diff-filter=Uto list conflicted files - For each conflicted file:
- Read the file to understand the conflict markers
- Resolve the conflict by understanding both sides (ours = current branch work, theirs = base branch changes)
- Prefer keeping our changes where they don't conflict with upstream intent
- If unsure about a conflict, ask the user
- Stage the resolved files:
git add <resolved-files> - Continue the rebase:
git rebase --continue - If more conflicts appear, repeat steps 1-4
- Max 10 conflict rounds — if still conflicting, abort and ask the user
6. Verify
After successful rebase:
git log --oneline -57. Push
Check whether the branch has an upstream:
git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null- If the command fails (no upstream): the branch has never been pushed. Use:
git push -u origin "$(git rev-parse --abbrev-ref HEAD)" - If the command succeeds: check ahead/behind state:
ahead=$(git rev-list --count @{upstream}..HEAD) behind=$(git rev-list --count HEAD..@{upstream})- If both
ahead == 0andbehind == 0: nothing to push, skip. - Otherwise (ahead, behind, or diverged):
git push --force-with-lease
- If both
--force-with-lease (not --force) fails safely if someone else pushed to the branch.
8. Report
Rebased onto origin/<BASE_BRANCH>.
Conflicts resolved: <COUNT> files
Push: <force-with-lease | initial -u | skipped (already in sync)>If the branch already has an open PR, the force-push updates it automatically.
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.

