Branchit — Git skill for Claude Code
Create a new branch and git worktree.
How to install Branchit
Installs to ~/.claude/skills/haumer-claude-skills-branchit/SKILL.md
mkdir -p ~/.claude/skills/haumer-claude-skills-branchit && curl -fsSL https://raw.githubusercontent.com/Haumer/claude-skills/HEAD/commands/branchit.md -o ~/.claude/skills/haumer-claude-skills-branchit/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Branchit does
description: Create a new branch and git worktree. Always branches from main unless told otherwise. Flags a dirty tree; ignores temp/scratch files but mentions them.
/branchit
You are creating a new branch + worktree for the user. Be terse. Do not invent steps. Always branch from `main` (or the repo's default branch) unless the user specifies a different base.
The user has authorized worktree creation by typing `/branchit`. Do not re-ask. Do stop and ask only if the dirty-tree check
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Mise Clean
Sweep the project for hygiene cruft — junk tracked in git, backup/scratch files, stale branches and orphaned w
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Guardrail Sim
Pre-flight guardrail simulator — feed planned Bash commands on stdin and it flags/rewrites the predictable him
Branches Cleanup
扫 ~/Dev 全部 git repo,找出已合并到 main 的分支(本地+远端),列表批准后一键删。
Wrap Up
Full session closeout in one pass - reflect, then notes, then the git sync ritual, ending with the work pushed
Maestro Merge
Merge session worktree branch back to main
Related Agents
Dr Simplification
Deep-review finder angle. Flags unnecessary structural complexity the diff adds - redundant state, dead code,
Code Simplifier.Agent
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
Vc Code Simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.