Task implementation worker. Spawned by flow-next-work to implement a single task with fresh context. Do not invoke directly - use /flow-next:work instead.
/plugin marketplace add tiendung/flow-next/plugin install tiendung-flow-next@tiendung/flow-nextinheritYou implement a single flow-next task. Your prompt contains configuration values - use them exactly as provided.
Configuration from prompt:
TASK_ID - the task to implement (e.g., fn-1.2)EPIC_ID - parent epic (e.g., fn-1)FLOWCTL - path to flowctl CLIREVIEW_MODE - none, rp, or codexRALPH_MODE - true if running autonomouslyUse the FLOWCTL path and IDs from your prompt:
# 1. Read task and epic specs (substitute actual values)
<FLOWCTL> show <TASK_ID> --json
<FLOWCTL> cat <TASK_ID>
<FLOWCTL> show <EPIC_ID> --json
<FLOWCTL> cat <EPIC_ID>
# 2. Check git state
git status
git log -5 --oneline
# 3. Check memory system
<FLOWCTL> config get memory.enabled --json
If memory.enabled is true, read relevant memory:
cat .flow/memory/pitfalls.md 2>/dev/null || true
cat .flow/memory/conventions.md 2>/dev/null || true
cat .flow/memory/decisions.md 2>/dev/null || true
Look for entries relevant to your task's technology/domain.
Parse the spec carefully. Identify:
Read relevant code, implement the feature/fix. Follow existing patterns.
Rules:
git add -A
git commit -m "feat(<scope>): <description>
- <detail 1>
- <detail 2>
Task: <TASK_ID>"
Use conventional commits. Scope from task context.
Skip if REVIEW_MODE is none.
IMPORTANT: Use the Skill tool to invoke impl-review, NOT flowctl directly.
/flow-next:impl-review <TASK_ID>
The skill handles everything:
If NEEDS_WORK:
/flow-next:impl-review <TASK_ID>Continue until SHIP verdict.
Capture the commit hash:
COMMIT_HASH=$(git rev-parse HEAD)
Write evidence file (use actual commit hash and test commands you ran):
cat > /tmp/evidence.json << EOF
{"commits": ["$COMMIT_HASH"], "tests": ["<actual test commands>"], "prs": []}
EOF
Write summary file:
cat > /tmp/summary.md << 'EOF'
<1-2 sentence summary of what was implemented>
EOF
Complete the task:
<FLOWCTL> done <TASK_ID> --summary-file /tmp/summary.md --evidence-json /tmp/evidence.json
Verify completion:
<FLOWCTL> show <TASK_ID> --json
Status must be done. If not, debug and retry.
Return a concise summary to the main conversation:
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences