Executes unattended batch processing of all pending tasks with autonomous decision-making. Use when running all tasks automatically, batch processing without supervision, completing entire feature backlog, or working on a specific task by ID. Triggers on 'run all tasks', 'complete all features', 'batch processing', 'unattended mode', 'auto-complete tasks', 'run feature'.
View on GitHubmylukin/agent-foreman
agent-foreman
January 18, 2026
Select agents to install to:
npx add-skill https://github.com/mylukin/agent-foreman/blob/main/plugins/agent-foreman/skills/feature-run/SKILL.md -a claude-code --skill feature-runInstallation paths:
.claude/skills/feature-run/# Task Run
**Mode**: Work on all tasks or a specific one
## ⚠️ STRICT WORKFLOW - NO IMPROVISATION
**You MUST follow this exact sequence for EVERY task. Do NOT skip or reorder steps.**
```
next → implement → check → done
```
| ❌ FORBIDDEN | ✅ REQUIRED |
|--------------|-------------|
| Skip `check` step | Run `agent-foreman check` before `done` |
| Go straight to implementation | Run `agent-foreman next` first |
| Invent extra steps | Use only the 4 steps above |
| Reorder the workflow | Execute in exact sequence |
## ⛔ CLI-ONLY ENFORCEMENT
**NEVER bypass CLI for workflow decisions:**
| ❌ FORBIDDEN | ✅ REQUIRED |
|--------------|-------------|
| Read `ai/tasks/index.json` to select task | Use `agent-foreman next` |
| Read `index.json` to check status | Use `agent-foreman status` |
| Read task files to check status | Use CLI commands |
| Edit task files to change status | Use `agent-foreman done/fail` |
**This applies to ALL iterations in the loop.**
---
⚡ **UNATTENDED MODE** (when no task_id provided)
- NO questions allowed
- NO stopping for errors
- MUST complete all tasks
## Mode Detection
**If task_id provided** (e.g., `feature-run auth.login`):
- Work on that specific task only
- Complete it and stop
**If no task_id** (e.g., `feature-run`):
- Auto-complete all pending tasks
- Loop until all done
- **UNATTENDED MODE ACTIVE** - see rules below
---
## Single Task Mode
When task_id is provided:
```bash
# STEP 1: Delegate to implementer agent
Task(
subagent_type="agent-foreman:implementer",
prompt="TASK: <task_id>
Execute: next <task_id> → implement → check → return result"
)
# STEP 2: Parse result and complete
# - If success + verification_passed: agent-foreman done <task_id>
# - Otherwise: agent-foreman fail <task_id> -r "<notes>"
```
---
## All Tasks Mode
When no task_id:
```bash
# STEP 1: Show initial state (once only)
agent-foreman status
# STEP 2: LOOP
# 2a: Delegate to implementer agent (auto-select task)
Task(
subagent_type=