rebase
Skill18 starsChanged 3 months agoMITView on GitHub
Rebase feature branch onto base branch with conflict resolution
- Deletes or force-pushes
- Commits and pushes
12 other projects use a version of this.
Adopted by
Most recently taken up by
- Jamie-BitFlight/claude_skillstheir own version, first seen Sep 23, 2026
- korya/swd-skillstheir own version, first seen Sep 9, 2026
- MarcusJellinghaus/mcp-workspaceword for word, first seen Aug 29, 2026
- tony/skillstheir own version, first seen Aug 25, 2026
- tbhb/vale-ai-tellstheir own version, first seen Aug 18, 2026
- flurdy/agent-skillstheir own version, first seen Aug 9, 2026
Used with
Projects with it also use commit and review.
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.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 1
- MarcusJellinghaus/mcp-workspace★ 48100% same
Edited · 0
None found.
Wrote their own version · 11
- tbhb/vale-ai-tells★ 115same name
- Jamie-BitFlight/claude_skills★ 67same name
- flurdy/agent-skills★ 9same name
- ronaknnathani/relay★ 3same name
- drewdrewthis/claude-skills★ 2same name
- korya/swd-skills★ 2same name
- Pradnyeshp/Claude-Skills★ 2same name
- raine/skills★ 2same name
- acartine/osterman★ 1same name
- adamazad/claude-skills★ 0same name
1 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 repository21 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- check_branch_statusSkill
- commit_pushSkill
- discussSkill
- implementation_approveSkill
- implementation_finaliseSkill
- implementation_needs_reworkSkill
- implementation_new_tasksSkill
- implementation_reviewSkill
- implementation_review_supervisorSkill
- implement_directSkill
- issue_analyseSkill
- issue_analyse_supervisorSkill
- issue_approveSkill
- issue_createSkill
- issue_requirementsSkill
- issue_updateSkill
- plan_approveSkill
- plan_reviewSkill
- plan_review_supervisorSkill
- plan_updateSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 5 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Call mcp__mcp-workspace__git with command "status" before doing anything else.
- Distinctive: line 45
If the rebase becomes complex, suggest switching to cherry-picking as an alternative approach.
- Very specific: line 49
Call mcp__mcp-workspace__get_base_branch to detect the correct base branch.
- Distinctive: line 53
If the base branch is not main or master, ask the user to confirm before proceeding.
- Distinctive: line 58
Not already in rebase/merge state
- Distinctive: line 59
Not on main/master branch
- Very specific: line 65
Call mcp__mcp-workspace__git with command "fetch" and args ["origin"]
- Very specific: line 68
If file is under pr_info/: auto-resolve with git checkout --theirs <file> (keep feature branch version), then git add <file> — no user …
- Distinctive: line 70
Verify no conflict markers remain
- Very specific: line 73
Run code checks: mcp__mcp-tools-py__run_pytest_check, mcp__mcp-tools-py__run_pylint_check, mcp__mcp-tools-py__run_mypy_check
“Common” is measured: kept by at least 6 in 10 of the 11 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 Branch onto Base Branch
First Step
Call mcp__mcp-workspace__git with command "status" before doing anything else.
Rebase the current feature branch onto its base branch and resolve conflicts.
Core philosophy: Main is the source of truth. The feature branch adapts to main. For source code conflicts, preserve main's improvements and rework the feature branch code to fit.
Note on --ours/--theirs during rebase: --ours = main (the branch being rebased onto), --theirs = feature branch commits being replayed.
If the rebase becomes complex, suggest switching to cherry-picking as an alternative approach.
Determine Base Branch
Call mcp__mcp-workspace__get_base_branch to detect the correct base branch. Use the returned branch name in subsequent git commands.
Base Branch Confirmation
If the base branch is not main or master, ask the user to confirm before proceeding. Display the detected base branch and wait for explicit approval.
Pre-flight Checks (Abort if any fail)
- Working directory is clean (no uncommitted changes)
- Not already in rebase/merge state
- Not on main/master branch
- Remote origin exists
pr_info/does not exist on the base branch — if it does, abort with error:"pr_info/ exists on <BASE_BRANCH>. This folder should only exist on feature branches. Check your branch setup."
Workflow
- Call
mcp__mcp-workspace__gitwith command"fetch"and args["origin"] git rebase origin/${BASE_BRANCH}- For each conflict:
- If file is under
pr_info/: auto-resolve withgit checkout --theirs <file>(keep feature branch version), thengit add <file>— no user input needed - For all other files: resolve manually, preserving main's improvements; rework feature branch changes to fit
- Verify no conflict markers remain
git add <file>git rebase --continue
- If file is under
- Run code checks:
mcp__mcp-tools-py__run_pytest_check,mcp__mcp-tools-py__run_pylint_check,mcp__mcp-tools-py__run_mypy_check - Fix any issues from merge
- Report summary and ask for user confirmation
git push --force-with-lease
Conflict Resolution Strategies
| File Type | Strategy |
pr_info/ files | Auto-resolve with --theirs (keep feature branch version) |
Code files (.py, .js, etc.) | Keep both sides, merge imports |
| Test files | Keep all tests from both sides |
| Config files | Merge additively, prefer HEAD for same keys |
Lockfiles (*-lock.json, *.lock) | Accept theirs (--theirs), notify user to regenerate after rebase |
Abort Rules (in priority order)
- Any unexpected error - abort, report full error
- Binary file conflict - abort, cannot auto-resolve
- Conflict markers remain after resolution - abort
- Same file conflicts 3+ times - abort
- Code quality fails after 2 fix attempts - abort
- Any other unexpected situation - abort, suggest manual intervention
On abort: run git rebase --abort, report which rule triggered, suggest next steps.
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.

