Agent skill
branch-create
Create a feature branch from naming convention and issue context.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/branch-create
SKILL.md
Branch Create
The Orchestrator drives this workflow. Create a feature branch following the workspace naming convention, from the correct base branch.
Prerequisites: Issue number and type known, no uncommitted changes on current branch.
Branch Naming Convention
Read workspace.config.yaml for:
project.base-branch— the branch to create from (default:main)project.branch-pattern— the naming pattern
Pattern
<type>/<issue-number>-<kebab-description>
Types
| Type | When to Use |
|---|---|
feat |
New feature or capability |
fix |
Bug fix |
docs |
Documentation only |
chore |
Maintenance, dependencies, tooling |
refactor |
Code restructuring, no behavior change |
test |
Test additions or corrections |
perf |
Performance improvement |
Examples
feat/42-add-redis-cachefix/99-null-pointer-on-logindocs/55-api-reference-updatechore/128-phase7-checkpoint
Steps
- Determine the branch type from the issue labels or context:
type:feature→feattype:bug→fixtype:docs→docstype:chore→choretype:spike→chore- If no label, infer from the issue title or ask
- Compose the branch name:
<type>/<issue-number>-<kebab-description> - Present the proposed branch name for approval
⛔ CHECKPOINT
STOP. Await approval of the branch name.
- Checkout the base branch and pull latest:
bash
git checkout <base-branch> && git pull origin <base-branch> - Create the feature branch:
bash
git checkout -b <branch-name> - Verify the branch was created:
bash
git branch --show-current
Output
## Context Anchors
- **Issue:** #<number> - <title>
- **Branch:** `<branch-name>`
## Branch Created
- **From:** `<base-branch>`
- **Name:** `<branch-name>`
## Next Step
Branch created. Ready to begin implementation.
**Approval Required:** No
Error Handling
| Error | Recovery |
|---|---|
| Branch already exists | Report it; ask whether to checkout existing or rename |
| Uncommitted changes | Report them; ask whether to stash or commit first |
| Base branch not found | Check workspace.config.yaml; ask for correct name |
| Issue number unknown | Ask for the issue number |
| Type cannot be determined | List the type options and ask user to pick |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?