Full development workflow from idea to parallel execution...
Orchestrates the full development cycle: Plan ā Create Tasks ā Select ā Execute in Parallel ā PR ā Cleanup.
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāā
ā 1. PLAN ā ā ā 2. CREATE ā ā ā 3. SELECT ā ā ā 4. EXECUTE ā ā ā 5. DONE ā
ā Idea/scope ā ā Beads tasks ā ā N tasks (ā¤4) ā ā Parallel PRs ā ā Cleanup ā
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāā
# Full workflow (interactive)
.claude/skills/dev-workflow/scripts/dev-workflow.sh
# Individual steps
.claude/skills/dev-workflow/scripts/dev-workflow.sh plan # Plan & create tasks
.claude/skills/dev-workflow/scripts/dev-workflow.sh select # Select & launch parallel
.claude/skills/dev-workflow/scripts/dev-workflow.sh cleanup # Kill tmux & clear worktrees
.claude/skills/dev-workflow/scripts/dev-workflow.sh status # Check parallel session status
When user describes a feature, bugfix, or refactor:
Ask clarifying questions:
Create beads tasks for each discrete piece of work:
# Create tasks in parallel for efficiency
bd create --title="Implement X component" --type=feature --priority=2
bd create --title="Add tests for X" --type=task --priority=2
bd create --title="Update documentation for X" --type=task --priority=3
Task creation guidelines:
feature, task, bug, refactorbd dep add <tests-id> <implementation-id> # Tests depend on implementation
bd ready # Shows tasks with no blockers
Use AskUserQuestion to present ready tasks:
Which tasks do you want to tackle in parallel? (Maximum 4)
Ready tasks:
1. [P2] beads-abc: Implement X component
2. [P2] beads-def: Add Y validation
3. [P2] beads-ghi: Refactor Z service
4. [P3] beads-jkl: Update docs
Enter task IDs (e.g., "abc def ghi"):
Selection criteria for parallelization:
Check for conflicts:
# Verify no dependencies between selected tasks
bd show abc | grep -A5 "Dependencies"
bd show def | grep -A5 "Dependencies"
bd update abc --status in_progress
bd update def --status in_progress
.claude/skills/dev-workflow/scripts/dev-workflow.sh select abc def ghi
This will:
~/.claude-worktrees/<repo>/fix-<id>)claude-parallelEach Claude instance gets a detailed prompt:
You are working on issue <ID>: <TITLE>
## Task Details
<Full bd show output>
## Your Mission
1. Implement the fix/feature in this worktree
2. Run tests: npm test
3. Run lint: npm run lint
4. Run typecheck: npm run typecheck
5. Commit your changes with a descriptive message
6. Create a detailed PR with:
- Summary of what the issue was
- What changes were made and WHY
- Testing done
7. Close the issue: bd close <ID>
## PR Template
Use this format for your PR:
gh pr create --title "<type>(<scope>): <description>" --body "$(cat <<'EOF'
## Summary
- What problem this solves
- High-level approach taken
## Changes Made
- Specific code changes with reasoning
## Technical Details
- Architectural decisions
- Why this approach over alternatives
## Testing
- [ ] Unit tests pass
- [ ] Lint passes
- [ ] TypeScript checks pass
- [ ] Manual testing: <describe>
## Related
- Fixes issue <ID>
š¤ Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
## Important
- Work ONLY in this worktree
- Do NOT merge to main - create PR only
- Push your branch: git push -u origin fix-<ID>
Ctrl+B, arrow keys ā Switch between panes
Ctrl+B, z ā Zoom/unzoom current pane
Ctrl+B, [ ā Enter scroll mode (q to exit)
Ctrl+B, d ā Detach (instances keep running)
# Reattach to session
tmux attach-session -t claude-parallel
# Check without attaching
.claude/skills/dev-workflow/scripts/dev-workflow.sh status
# Preview pane content
tmux capture-pane -t claude-parallel:0.0 -p | tail -20
After all PRs are created and merged:
.claude/skills/dev-workflow/scripts/dev-workflow.sh cleanup
This will:
bd sync && git push# Kill tmux session only
tmux kill-session -t claude-parallel
# List worktrees
git worktree list
# Remove specific worktree
git worktree remove ~/.claude-worktrees/<repo>/fix-<id> --force
# Prune all stale worktrees
git worktree prune
When /dev-workflow is invoked:
bd ready to show available taskstmux kill-pane -t claude-parallel:0.1.claude/skills/dev-workflow/scripts/dev-workflow.sh select <ids>