Branch
Claude plugin orchestrating spec-to-code automation workflow, enabling developers to leverage Claude Skills for productivity.From the repository description
npx -y skills add valasubramanian-kr/wallet-web-developer --skill branchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.3 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
Create Development Branch Skill
Purpose
Create a development branch with standardized naming convention (dcppay-<JIRA-number>-<short-title>) after implementation plan is approved.
Usage
/branch
(Must be run after /plan)
What This Skill Does
- Load Implementation Plan: Reads
implementation-plan.mdto understand the work - Extract JIRA Number: Gets JIRA number from workflow directory
- Generate Branch Name: Creates branch name in format
dcppay-<number>-<short-title> - Validate Branch: Checks if branch already exists
- Create Branch: Creates new branch from main for the current project repo
- Save Branch Details: Outputs to
dev-branch.md
Implementation Plan Context
The implementation plan should be located in the most recent directory under workflow/jira-to-github/*/implementation-plan.md. You will need to find and read this file in Step 1.
Instructions
You are creating a development branch for a JIRA issue. Follow these steps:
Step 1: Validate Prerequisites and Load Context
First, find the most recent JIRA workflow directory and load the repo profile for branch naming:
ls -td workflow/jira-to-github/*/ | head -1
If no directory exists, display error:
❌ No JIRA issue found
Please run the following commands first:
1. /pull <JIRA-KEY>
2. /plan
Then try again.
If directory exists:
- Read
workflow/jira-to-github/<JIRA-NUMBER>/target-repo.mdto get the profile path - Read the repo profile (e.g.,
context/repos/esperanto.md) to get theBranch Namingconvention - Read the implementation plan from
workflow/jira-to-github/<JIRA-NUMBER>/implementation-plan.mdto understand the work - Use the branch naming format from the profile (default:
dcppay-<JIRA-number>-<short-title>if no profile found)
Step 2: Extract JIRA Information
From the workflow directory path, extract:
- JIRA number (e.g., DRT-17270 → 17270)
- JIRA key (e.g., DRT-17270)
- JIRA title (e.g., Web - WHPP - Develop UI - New card type)
Step 3: Generate Short Title
Create a short, hyphenated title from the issue summary:
- Convert to lowercase
- Remove special characters
- Replace spaces with hyphens
- Limit to 2-3 meaningful words
- Max 20 characters
Examples:
- "Add eProtect error code handling" → "eprotect-error-code"
- "Fix wallet card deletion bug" → "fix-card-deletion"
- "Implement analytics tracking for checkout" → "analytics-checkout-tracking"
Step 4: Generate Branch Name
Create branch name in format:
dcppay-<JIRA-number>-<short-title>
Examples:
- DRT-17270 →
dcppay-17270-eprotect-error-code - DRT-17345 →
dcppay-17345-fix-card-deletion - DRT-17410 →
dcppay-17410-analytics-checkout-tracking
Step 5: Validate Branch Doesn't Exist
Check if branch already exists locally or remotely:
# Check local branches
git branch --list "dcppay-<number>-*"
# Check remote branches
git fetch origin
git branch -r --list "origin/dcppay-<number>-*"
If branch exists:
- Display existing branch name
- Ask user if they want to:
- A) Checkout existing branch
- B) Create new branch with different name
- C) Delete existing and create fresh
Step 6: Get Latest from Main
Ensure working from latest main:
# Determine if repo uses main
DEFAULT_BRANCH=main
# Fetch latest
git fetch origin
# Switch to default branch
git checkout $DEFAULT_BRANCH
# Pull latest changes
git pull origin $DEFAULT_BRANCH
Step 7: Create Development Branch
Create and checkout the new branch:
git checkout -b dcppay-<JIRA-number>-<short-title>
Step 8: Save Branch Details
Create a branch details document:
# Development Branch: dcppay-<JIRA-number>-<short-title>
## Branch Information
- **Branch Name**: `dcppay-<JIRA-number>-<short-title>`
- **JIRA Issue**: <JIRA-KEY>
- **Created From**: <DEFAULT_BRANCH>
- **Created At**: <timestamp>
Save to:
workflow/jira-to-github/<JIRA-NUMBER>/dev-branch.md
Step 9: Display Summary
Display a concise summary to the user:
✓ Development Branch Created
Branch: dcppay-<JIRA-number>-<short-title>
JIRA: <JIRA-KEY>
Base: <DEFAULT_BRANCH>
Branch details saved to: workflow/jira-to-github/<JIRA-NUMBER>/dev-branch.md
Next step: Run /code to implement the changes
Error Handling
If errors occur:
- Log error to
workflow/jira-to-github/<JIRA-NUMBER>/errors.log - Display user-friendly message
- Suggest recovery action
Common errors:
- No implementation plan found: Run
/planfirst - Branch already exists:
- Display:
Branch dcppay-<number>-<title> already exists - Options:
- Checkout existing:
git checkout dcppay-<number>-<title> - Rename: Suggest alternative name
- Delete and recreate:
git branch -D dcppay-<number>-<title>(confirm first)
- Checkout existing:
- Display:
- Not on a git repository: Ensure you're in the correct project directory
- Uncommitted changes: Stash or commit changes before creating branch
- Network errors: Check connectivity to git remote
Examples
Example 1: Standard feature branch
/branch
# → dcppay-17270-eprotect-error-code
Example 2: Bug fix branch
/branch
# → dcppay-17345-fix-card-deletion
Example 3: Branch already exists
/branch
# → Branch already exists. Checkout existing? (Y/n)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.