split-mr
Skill by gitlabhq
Analyzes all changes on the current git branch, committed and uncommitted, and proposes whether to split them into smaller, focused merge requests. Built for developers with a PoC or a large open MR.
Install split-mr
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gitlabhq/gitlabhq /tmp/gitlabhq && mkdir -p ~/.claude/skills && cp -r /tmp/gitlabhq/.claude/skills/split-mr ~/.claude/skills/split-mrRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gitlabhq/gitlabhq /tmp/gitlabhq && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gitlabhq/.claude/skills/split-mr ~/.gemini/antigravity-cli/skills/split-mrAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Split-mr reviews every change on the current branch against its base, usually master, using git diff. It covers both uncommitted work and commits already made, so it works on a fresh set of edits or on an existing MR.
The skill applies split heuristics such as backend and frontend separation, migrations landing before the code that uses them, and independent refactors kept apart from features. It labels MR pairs as stacked or parallel, then either proposes a split plan or confirms the changes are cohesive enough to keep as one. After the user confirms, it can recreate branches, commit, push and open merge requests with glab. It is aimed at developers whose branch or MR has grown too large to review easily.
Written from the project's SKILL.md and checked against it.
What it can do
- Branch change analysisGets the full changed file list against the base branch, covering committed and uncommitted work.
- Split heuristicsApplies rules for backend and frontend, migrations, specs, independent refactors and cohesion.
- Dependency classificationLabels each MR pair as a true dependency, convenience bundling or soft dependency.
- Split plan outputLists proposed MRs with titles, files, target branch and the reason each comes first.
- Frontend import checkTraces webpack entry point imports before splitting frontend files.
- Split executionAfter confirmation, creates branches, commits, pushes and opens MRs with glab mr create.
- Generated file handlingRegenerates derived files with lefthook run autofix before each commit.
What you need
- git
- glab CLI
- lefthook
Try asking
- Analyze my current branch and tell me if it should be split into smaller MRs.
- Propose a split plan for the changes in this PoC branch against master.
- Check whether my open MR mixes backend, frontend and refactor changes.
Good to know
- Execution steps run only if the user confirms the split plan.
- Uses master as the base branch in its examples.
- Small changes under about 10 files with one concern are kept as one MR.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/split-mr/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(git diff:*)Bash(git log:*)Bash(git status:*)Bash(git show:*)Bash(git checkout:*)Bash(git branch:*)Bash(git push:*)Bash(glab mr create:*)Bash(glab mr view:*)ReadGrepGlob
-
SKILL.md5 KB
Alternatives to split-mr
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
split-mr: common questions
When should I use split-mr?
Use it when a branch or open MR mixes several concerns, such as backend and frontend changes or a feature with unrelated refactors. The skill then proposes a split or confirms the changes belong together.
Does it split uncommitted changes too?
Yes. The source says it analyzes both uncommitted work and commits already made, using the diff against the merge base with the base branch.
Does it create the merge requests automatically?
Only after the user confirms the plan. The execution step then creates branches, commits, pushes and runs glab mr create for each proposed MR.
How do I install split-mr?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is split-mr free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is split-mr safe to use?
It scores 75 of 100. Grades: maintenance B, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to split-mr?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
