--- name: work description: Pick up the next task from ruflo and execute it in the current session. One task at a time with build verification. user-invocable: true allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Agent, mcp__claude-flow__task_list, mcp__claude-flow__task_update, mcp__claude-flow__task_complete, mcp__claude-flow__task_status, mcp__claude-flow__agent_update, mcp__claude-flow__memory_store, mcp__claude-flow__memory_retrieve, mcp__claude-flow__progress_summary argument-hint: "[task-id or 'next']" --- # Work on Next Task (current session) ## Step 1: Pick task If `$ARGUMENTS` has a task ID, use it. Otherwise `mcp__claude-flow__task_list` → highest priority pending with deps met. ## Step 2: Load context `mcp__claude-flow__memory_retrieve` for any prior context. ## Step 3: Announce + mark in_progress ``` ━━━ 🔨 WORKING: [Title] | [priority] | [agent] ━━━ ``` ## Step 4: Read spec Check `.claude/specs/` for the relevant spec. ## Step 5: Implement Read existing code first. Follow project conventions. Stay focused — one task only. ## Step 6: Verify Detect and run the project's build/check commands: - `package.json` → `npx tsc --noEmit` or `npm run build` - `Cargo.toml` → `cargo check` - `pyproject.toml` → `python -m py_compile` or project's lint command ## Step 7: Complete `mcp__claude-flow__task_complete` with result. Store learnings in memory. Show progress bar + next task.