create-branch
Skill1 starsChanged 5 months agoMITView on GitHub
Create and switch to a new git branch with proper naming convention. Trigger for: /create-branch, new branch, create branch, checkout new branch, branch off. Infers branch type from context, names it correctly, and pushes if requested.
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- tartinerlabs/skillstheir own version, first seen Jul 26, 2026
- getsentry/skillstheir own version, first seen Jul 25, 2026
- ForeverAProgrammer/claude-devflowtheir own version, first seen Mar 7, 2026
- Hey-Diga/dotclaudetheir own version, first seen Feb 23, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- getsentry/skills★ 1ksame name
- Hey-Diga/dotclaude★ 17same name
- tartinerlabs/skills★ 8same name
- ForeverAProgrammer/claude-devflow★ 0same name
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.
- cad-designSkill
- cloudflare-tunnelSkill
- context-engineeringSkill
- create-releaseSkill
- digital-fabricationSkill
- docker-swarmSkill
- grafana-prometheusSkill
- k3s-kubernetesSkill
- linux-server-adminSkill
- merge-prSkill
- mikrotik-routerosSkill
- network-engineerSkill
- nextjs-deploymentSkill
- open-projectSkill
- open-prSkill
- proxmox-homelabSkill
- pr-reviewSkill
- python-fastapiSkill
- thai-dev-workflowSkill
- wireguard-vpnSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create and switch to a new git branch with consistent naming.
- Distinctive: line 48
If detached HEAD → STOP: "Check out a branch first before branching off."
- Distinctive: line 54
Always fetch before checking remote conflicts — avoids false "no conflict" on stale data.
- Distinctive: line 63
Read recent git log, staged/unstaged changes, conversation context
- Very specific: line 72
If exists locally or remotely → append -v2 or propose alternative.
- Distinctive: line 84
Ask: "Push to remote now?" (skip if user already said push or implied PR readiness)
“Common” is measured: kept by at least 6 in 10 of the 3 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
Create Branch
Create and switch to a new git branch with consistent naming. After this, use /open-pr when ready.
Invocation Forms
/create-branch— infer type+name from context/create-branch <name>— apply correct prefix automatically/create-branch <type> <description>— fully explicit
Branch Naming Convention
Format: <type>/<short-description>
- Lowercase, hyphen-separated words
- Max 50 chars total
- ASCII only — no spaces, special chars, or accents
| Type | When |
feat/ | new feature |
fix/ | bug fix |
chore/ | tooling, deps, CI, config |
refactor/ | restructure, no behavior change |
docs/ | documentation only |
hotfix/ | urgent production fix |
release/ | release preparation |
Examples:
feat/user-auth-jwtfix/login-redirect-loopchore/update-dependencieshotfix/null-pointer-checkoutrelease/v1.2.0
Workflow
1. Check repo state
git status # must not be in detached HEAD
git branch --show-current # current branch
git log --oneline -5 # recent context to infer intentIf detached HEAD → STOP: "Check out a branch first before branching off."
2. Fetch remote state
git fetch origin --prune 2>/dev/null || trueAlways fetch before checking remote conflicts — avoids false "no conflict" on stale data.
3. Determine base branch
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|.*/||'
# fallback: git branch -r | grep -E 'origin/(main|master)' | head -1 | sed 's|.*/||'4. Infer branch name (if not given)
- Read recent git log, staged/unstaged changes, conversation context
- Propose exactly one name — not a list
- Example:
Creating branch feat/user-auth-jwt from main — confirm?
5. Check for name conflicts
git branch --list "<type>/<name>"
git ls-remote --heads origin "<type>/<name>" | grep -q . && echo "EXISTS"If exists locally or remotely → append -v2 or propose alternative.
6. Create and switch
# From current branch (most common)
git checkout -b <type>/<name>
# From a specific base
git checkout -b <type>/<name> <base>7. Push to remote
Ask: "Push to remote now?" (skip if user already said push or implied PR readiness)
git push -u origin <type>/<name>8. Output
One line only:
feat/user-auth-jwt created from main — ready to code.Edge Cases
- Dirty working tree: warn but do not block — uncommitted changes carry over to new branch
- No remote: skip remote conflict check and push offer
- On a feature branch: offer to branch from
mainor from current branch — one clear question
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.

