Git Flow branch creation workflow with worktree support. Creates feature/, release/, hotfix/ branches with automatic worktree setup for new work items.
Git Flow branch creation workflow with worktree support.
gwq add -b <branch-type>/<branch-name>
Branch types: feature/, release/, hotfix/
Prerequisite: gwq must be installed. See docs/prerequisites.md.
- [ ] Step 1: Parse task prompt
- [ ] Step 2: Validate inputs
- [ ] Step 3: Check base branch up-to-date
- [ ] Step 4: Create branch with worktree
- [ ] Step 5: Copy configuration files
- [ ] Step 6: Move ticket to started status
- [ ] Step 7: Report results
Parse task prompt:
Validate inputs:
<BRANCH_TYPE>/<kebab-case-name>Check base branch up-to-date:
BASE_BRANCHCreate branch with worktree:
git checkout {BASE_BRANCH} && gwq add -b "<BRANCH_TYPE>/<kebab-case-name>"
<BRANCH_TYPE>/<kebab-case-name> from current branchCopy configuration files to new worktree:
.claude/settings.local.jsonMove ticket to started status (if TICKET_ID provided):
OPERATION=start
TICKET_ID=$TICKET_ID
Report results:
Branch created: <BRANCH_TYPE>/<kebab-case-name>
Worktree path: <path-shown-in-gwq-output>
To work in this worktree:
1. In your terminal: cd <worktree-path>
2. Or start a new Claude Code session in that directory