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
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
- Deep Agents From Scratch 809 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Allele
Native macOS session manager for Claude Code. APFS copy-on-write workspaces branch your real working tree — di
GitRecon
调查当前 Git 仓库整体状态(branch / worktree / HEAD / ahead-behind / dirty / 风险)
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
Stack List
Show the current stack — the chain of branches from the current branch up to main, plus any descendants below
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.
Aif Code Simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.