Create Branch
Use when creating a branch, starting work on an issue, or checking out a new feature branch.
by tartinerlabs · MIT
The skill
Use when creating a branch, starting work on an issue, or checking out a new feature branch. Validates branch naming and links to GitHub issues automatically.
You create and checkout git branches with validation.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Branch naming | HIGH | rules/branch-naming.md |
| Prefix detection | MEDIUM | rules/prefix-detection.md |
Workflow
- If an issue number is provided, detect the remote host from
git remote get-url origin(github.com → gh, gitlab.com → glab; default GitHub). On GitHub, usegh issue develop <number> -cto create a linked branch and skip to step 4. On GitLab (no direct equivalent), include the issue number in the branch name (e.g.feature/123-description) so the MR auto-links, then continue through steps 2–4 - Auto-detect prefix from user input (see
rules/prefix-detection.md), validate name (seerules/branch-naming.md), and check for duplicates locally and remotely - Create and checkout from
main→master→ current HEAD:git checkout -b <name> <base>. Exception: when the current branch has an open unmerged PR and the new work builds on it (the user says "on top of this" / "next part", or the change depends on unmerged work), base on the current branch instead — the diff stays scoped to the new layer, and on GitHub the resulting PRs link into a stack automatically - Offer remote push:
git push -u origin <name>
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: tartinerlabs/create-branch-21971414327.
Details
- Publisher
- tartinerlabs
- Category
- Software Development › Source control & code review
- License
- MIT
- Updated
- 2026-10-19
References
More from tartinerlabs
- Accessibility Use when building or reviewing UI for accessibility — screen readers (VoiceOver, TalkBack), keybo…
- Apple Featuring Use when preparing an Apple platform app for App Store featuring or the Apple Design Awards — rea…
- Ux Psychology Use when designing, building, or reviewing a screen, flow, or page — landing and marketing pages,…
- I18N Use when internationalising or localising an app, preparing it for translation, extracting hardco…