/git-workflow:start [ticket-id]from git-workflow
Creates a feature branch following repo conventions, fetches ticket details from issue trackers, and stores context for subsequent PR creation.
Ships in git-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cross-runtime: follow runtime compatibility for invocation, delegation, configuration precedence, state paths, and permissions.
You are helping create a new pull request. Your task is to create a properly named feature branch, optionally fetch ticket details, and store context for subsequent commands.
Resolve project configuration with canonical-first precedence:
if [ -f ".git-workflow/config.yaml" ]; then
CONFIG_PATH=".git-workflow/config.yaml"
elif [ -f ".claude/config.yaml" ]; then
CONFIG_PATH=".claude/config.yaml" # legacy read-only fallback
else
CONFIG_PATH=""
fi
Configuration Priority:
.git-workflow/config.yaml (if exists).claude/config.yaml (legacy read-only fallback)Default Values (when no config):
workflow:
type: staging
developmentBranch: staging
productionBranch: main
branches:
feature: "{type}/{ticket}-{description}"
commits:
types: [Feature, Fix, Hotfix, Refactor, Docs, Test, Chore]
requireTicket: false
ticketPattern: "^[A-Z]+-\\d+$"
issueTracker:
type: auto
Ask the user for the following information (use the active host user-input mechanism):
Question: "What is the ticket ID or URL?"
PROJ-1234 (Jira format)ENG-456 (Linear format)#789 (GitHub issue)https://linear.app/team/issue/ENG-456/...https://your-org.atlassian.net/browse/PROJ-1234Parsing Logic:
/issue/([A-Z]+-\d+)//browse/([A-Z]+-\d+)issues/(\d+) or #(\d+)Validation:
commits.requireTicket: true in config, ticket is requiredcommits.ticketPattern if providedQuestion: "What type of change is this?"
Options (from config or defaults):
feature - New feature or enhancementfix - Bug fixhotfix - Urgent production fixchore - Maintenance, dependencies, etc.refactor - Code refactoringdocs - Documentation changesQuestion: "Provide a brief description (will be converted to kebab-case)"
Examples:
add-user-authenticationfix-memory-leak-in-parserIf a ticket ID was provided and issue tracker is configured:
Based on ticket format and available MCP servers:
^[A-Z]+-\d+$ with Linear MCP available -> Linear^[A-Z]+-\d+$ with Jira config/MCP available -> Jira^#?\d+$ or GitHub URL -> GitHub Issues (via gh CLI)If Linear ticket format is detected, use the Linear MCP server:
# Fetch ticket details via Linear MCP
mcp__linear__get_issue(id: ticketId)
The MCP server handles authentication automatically via OAuth.
If Jira is configured, use the Jira MCP server:
# Fetch ticket details via Jira MCP
mcp__jira__get_issue(issueKey: ticketId)
The MCP server handles authentication automatically. The jira.baseUrl from config is used to identify the Jira instance.
If GitHub format detected:
# Use gh CLI to fetch issue
gh issue view {issue_number} --json title,body,state
Store Fetched Data:
{
"ticket_title": "Fetched title from issue tracker",
"ticket_description": "Description from issue tracker",
"ticket_status": "In Progress"
}
Apply the branch pattern from config (default: {type}/{ticket}-{description}):
Pattern: {type}/{ticket}-{description}
Type: fix
Ticket: proj-1234
Description: add-user-auth
Result: fix/proj-1234-add-user-auth
Branch Naming Rules:
Examples:
fix/proj-1234-standardize-token-info-schemafeature/eng-456-add-holder-analysishotfix/abc-789-fix-critical-bugchore/update-dependencies (no ticket)Immediately before running any command below, show the resolved base branch, pull target, new branch name, and canonical context destination. Ask for explicit confirmation to create and check out the branch. Do not treat automatic skill invocation or earlier information-gathering answers as approval.
# Ensure we're on the development branch and up-to-date
git checkout {workflow.developmentBranch} 2>/dev/null || git checkout main
git pull
# Create feature branch
git checkout -b {branch_name}
Error Handling:
Create .git-workflow/pr-context.json with collected information:
mkdir -p .git-workflow
{
"ticket_id": "PROJ-1234",
"ticket_url": "https://issue-tracker.com/PROJ-1234",
"ticket_title": "Title from issue tracker (if fetched)",
"branch": "fix/proj-1234-description",
"type": "fix",
"description": "Human readable description",
"started_at": "2025-01-17T12:00:00Z",
"config": {
"workflow": "staging",
"developmentBranch": "staging",
"productionBranch": "main"
}
}
Important:
.git-workflow/ before writing..git-workflow/pr-context.json exists, ask before overwriting..claude/.pr-context.json fallback.Output a confirmation message:
Created branch: {branch_name}
Ticket: {ticket_id} {ticket_title if fetched}
Type: {type}
Next steps:
1. Make your code changes
2. Run /commit to stage and commit your changes
3. Run /finish to create the pull request
If ticket details were fetched, include:
Ticket Details:
- Title: {ticket_title}
- Status: {ticket_status}
All configurable options from .git-workflow/config.yaml:
| Setting | Default | Description |
|---|---|---|
workflow.developmentBranch | staging | Base branch for feature branches |
branches.feature | {type}/{ticket}-{description} | Branch naming pattern |
commits.types | Feature, Fix, Hotfix... | Allowed change types |
commits.requireTicket | false | Enforce ticket ID |
commits.ticketPattern | ^[A-Z]+-\d+$ | Regex for ticket validation |
issueTracker.type | auto | linear, jira, github, none |
| Scenario | Action |
|---|---|
| Branch already exists | Ask to switch or rename |
| Ticket required but missing | Prompt for ticket ID |
| Invalid ticket format | Show expected format, ask to retry |
| Issue tracker API fails | Warn and continue without ticket details |
| Not on expected branch | Warn and ask for confirmation |
| Uncommitted changes | Warn and ask to stash or commit first |
.pr-context.json exists | Ask to overwrite or abort |
User: /start
Agent: What is the ticket ID? -> "PROJ-123"
Agent: What type of change? -> "fix"
Agent: Brief description? -> "fix login timeout"
Result: Branch fix/proj-123-fix-login-timeout created
User: /start
Agent: What is the ticket ID? -> "ENG-456"
[Uses Linear MCP to fetch: "Add OAuth2 support"]
Agent: What type? -> "feature"
Agent: Description? -> "oauth2-authentication"
Result: Branch feature/eng-456-oauth2-authentication created
Ticket: ENG-456 - Add OAuth2 support
User: /start
Agent: What is the ticket ID? -> (skip)
Agent: What type? -> "chore"
Agent: Description? -> "update dependencies"
Result: Branch chore/update-dependencies created
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
feature-branch, pull-request, git-workflow, branch-creation, ticket-id
npx claudepluginhub rlajous/claude-code-commands --plugin git-workflow22 skills in this plugin
/change-briefTurn a pull request into a concise, self-contained HTML decision brief with business logic, diagrams when useful, conditional UI/mobile screenshots, API cURL request/response evidence, risks, verification, and representative before/after code. Use when the user asks to "explain this change as HTML", "before/after html", "change brief", "html explainer for a PR", "explain what changed", or wants a shareable, human-readable snapshot of a code change. Args a PR number/URL, or nothing to use the current branch's PR./clean-goneDelete local Git branches whose upstream was deleted on the remote ("[gone]"), and remove any worktrees attached to them. Use when the user asks to clean up merged/stale branches, prune gone branches, tidy local branches after merging PRs, or "delete branches that are gone on the remote"./close-customer-loopClose the loop with a customer or partner after their reported bug/request ships. Use whenever a customer/partner-reported fix reaches production, a ticket that came from a customer report is about to be marked Done/closed, or you're deciding whether follow-up is still owed. Enforces verify-in-prod-then-reply-in-the-original-thread, and adds the two acceptance-criteria lines when creating customer/partner tickets./commitStage and commit changes with proper formatting following repo conventions/finishCreate a pull request with comprehensive description following repo best practices/notificationsConfigure and diagnose opt-in desktop notifications for completed Claude Code or Codex turns and new reviews on pull requests you authored. Use when the user asks to enable agent-finished alerts, watch approvals or requested changes on their PRs, inspect notification configuration, or get the background daemon command.Other plugins' skills for the same job