From git
Use when the user wants to create a well-named feature branch from a ticket ID, description, or task summary. Triggers: "create branch", "new branch", "branch for", "start working on".
How this skill is triggered — by the user, by Claude, or both
Slash command
/git:branchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Announce: "I'm using the branch skill to create a well-named feature branch."
Announce: "I'm using the branch skill to create a well-named feature branch."
Run in parallel:
git status --short (check for uncommitted changes)git branch --show-current (current branch)git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null (detect default branch)If this is not a git repository: inform the user and stop.
Extract from $ARGUMENTS:
[A-Z]+-[0-9]+ (e.g., PROJ-1234, JIRA-567).If no arguments are provided:
AskUserQuestion(
header: "Branch name",
question: "What should the branch be for? Provide a ticket ID and/or short description.",
options: []
)
Determine the branch prefix from git config user.name (lowercase, first token, e.g., "Rodrigo Fernandes" becomes rodrigo). Fall back to feature if git config is not set.
Construct the branch name using this pattern:
<prefix>/<slug>-<TICKET-ID><prefix>/<TICKET-ID><prefix>/<slug>Where:
<prefix> is the user prefix derived above<slug> is the description converted to lowercase, with spaces replaced by hyphens, non-alphanumeric characters removed, and truncated to 50 characters.Examples (assuming prefix rodrigo):
add user authentication PROJ-1234 -> rodrigo/add-user-authentication-PROJ-1234PROJ-1234 -> rodrigo/PROJ-1234fix login timeout bug -> rodrigo/fix-login-timeout-bugrefactor database layer CORE-99 -> rodrigo/refactor-database-layer-CORE-99Determine the base branch:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null — extract branch name (e.g. origin/main → main).git remote set-head origin --auto 2>/dev/null and retry step 1.main if origin/main exists, then master if origin/master exists.If there are uncommitted changes: warn the user but proceed (the changes will carry over to the new branch).
Run:
git fetch origin <base> (fetch latest)git checkout -b <branch-name> origin/<base>Report the created branch name and base to the user:
Created branch: <branch-name> (from origin/<base>)
npx claudepluginhub rtfpessoa/code-factory --plugin gitCreates traceable Git branches for current tasks using ticket IDs or short summaries (e.g., <ticket-id>-<short-kebab-summary>). Inspects git status, safely switches/creates, reports uncommitted work.
Creates git branches following Sentry naming conventions. Automatically determines branch type and description from arguments or local diff. Useful when starting new work.
Creates git branches following Sentry naming conventions by analyzing changes and classifying branch types. Useful for standardizing branch creation.