/potenlab-workflow:potenlab:execute-phase <phase-number>from potenlab-workflow
Execute all tasks in a phase with wave-based parallel coder agents (max 4 per wave)
Ships in potenlab-workflow. Installing the plugin adds it to Claude Code.
<execution_context> Read and apply rules from @{{POTENLAB_HOME}}/CLAUDE.md before proceeding. </execution_context>
/potenlab:execute-phase [phase_number]
|
v
STEP 1: Get phase number (from arg or AskUserQuestion)
|
v
STEP 2: Read progress.json, filter executable tasks
|
v
STEP 3: Group tasks by complexity → plan waves (max 4 per wave)
|
v
STEP 4: WAVE LOOP
| ┌──────────────────────────────────────────────┐
| │ 4a. Re-read progress.json, filter tasks │
| │ 4b. Take next batch (up to 4 tasks) │
| │ 4c. Spawn agents in parallel (1 message) │
| │ 4d. Wait for all agents in wave │
| │ 4e. Update progress.json IMMEDIATELY │
| │ 4f. If more executable tasks → loop to 4a │
| └──────────────────────────────────────────────┘
|
v
STEP 5: Final report (all waves combined)
If the user provides a phase number:
/potenlab:execute-phase 0
/potenlab:execute-phase 3
Extract the phase number directly. Do NOT ask questions — proceed to Step 2.
If the user invokes with no argument, you MUST use AskUserQuestion:
AskUserQuestion:
question: "Which phase would you like to execute?"
header: "Phase"
options:
- label: "Phase 0: Foundation"
description: "Project setup, design tokens, config files"
- label: "Phase 1: Backend"
description: "Database schema, migrations, RLS policies"
- label: "Phase 2: Shared UI"
description: "Shared components in src/components/"
- label: "Phase 3: Features"
description: "Feature modules in src/features/"
Read progress.json first to determine which phases exist, then build the options dynamically.
Glob: **/progress.json
Read: [found path]
If progress.json does NOT exist:
progress.jsonnot found. Run/potenlab:complete-planfirst to generate the task tracker.
STOP. Do NOT proceed.
Parse progress.json and locate the phase object matching the requested phase number.
From the target phase, collect tasks that meet ALL criteria:
executable_tasks = phase.tasks.filter(task =>
task.status === "pending" AND
task.blocked_by.length === 0
)
Split executable_tasks into two groups based on progress.json classification:
small_tasks = executable_tasks.filter(t => t.complexity === "low")
→ Each spawns a potenlab-small-coder agent
high_tasks = executable_tasks.filter(t => t.complexity === "high")
→ Each spawns a potenlab-high-coder agent
Combine and chunk into waves of max 4. Report the execution plan before spawning.
CRITICAL: Max 4 agents per wave. Update progress.json AFTER EACH wave. Re-filter between waves.
Repeat until no more executable tasks:
complexity: "low" → potenlab-small-codercomplexity: "high" → potenlab-high-coderblocked_by arrays across ALL phasespotenlab-small-coder (for complexity === "low"):
Task:
subagent_type: potenlab-small-coder
description: "Task {task.id}: {task.name}"
prompt: |
Execute task {task.id}: {task.name}
[Read all plans, implement small task, verify]
Do NOT update progress.json — orchestrator handles that after each wave.
Return: "COMPLETED: {task.id} — {task.name} | Files: [list]"
Or: "BLOCKED: {task.id} — {reason}"
potenlab-high-coder (for complexity === "high"):
Task:
subagent_type: potenlab-high-coder
description: "Task {task.id}: {task.name}"
prompt: |
Execute task {task.id}: {task.name}
[Read all plans, implement complex task, self-review, verify]
Do NOT update progress.json — orchestrator handles that after each wave.
Return: "COMPLETED: {task.id} — {task.name} | Files: [list]"
Or: "BLOCKED: {task.id} — {reason}"
Report with results grouped by wave, summary counts, phase progress, newly unblocked tasks, and next steps.
blocked_by is empty before including a taskcomplexity: "low" and potenlab-high-coder for complexity: "high"blocked_by is non-emptystatus is already "completed"What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
13 commands in this plugin
/potenlab:complete-planGenerate progress.json from finalized plans/potenlab:developerPost-completion adjustments tracked in changes.json/potenlab:generate-testGenerate Vitest test files from test-plan.md into root tests/ directory/potenlab:helloConfirm potenlab-workflow is installed and active/potenlab:infoDisplay Potenlab workflow overview and status/potenlab:plan-projectOrchestrate project planning with specialist agents (includes test plan generation)Other plugins' commands for the same job