looplisted
Install: claude install-skill gioe/tusk
# Loop
Runs the autonomous backlog loop via the `tusk loop` CLI command. Queries the highest-priority ready task, dispatches it to `/chain` (if it has dependents) or `/tusk` (standalone), and repeats until the backlog is empty or a stop condition is met.
> Use `/create-task` for task creation — handles decomposition, deduplication, criteria, and deps. Use `tusk task-insert` only for bulk/automated inserts.
## Usage
```bash
# Run until backlog is empty
tusk loop
# Stop after N tasks
tusk loop --max-tasks N
# Preview what would run without executing
tusk loop --dry-run
# Unattended run — skip stuck chain tasks and continue
tusk loop --on-failure skip
# Unattended run — abort the chain on first stuck task
tusk loop --on-failure abort
```
## Behavior
1. Queries the highest-priority ready task (same WSJF ranking as `tusk task-select`)
2. Checks whether the task is a chain head (has non-Done downstream dependents via `tusk chain scope`)
3. Dispatches:
- **Chain head** → `claude -p /chain <id> [--on-failure <strategy>]`
- **Standalone** → `claude -p /tusk <id>`
4. Stops on non-zero exit from any agent, on empty backlog, or when `--max-tasks` is reached
> **Note:** Tasks dispatched via `/tusk` or `/chain` use `tusk task-start --force` so that zero-criteria tasks emit a warning rather than hard-failing the automated workflow.
## Flags
| Flag | Description |
|------|-------------|
| `--max-tasks N` | Stop after N tasks (default: unlimited) |
| `--dry-run` | Print wha