bits-drain
Start working on the next ready task
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Start working on the next ready task
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
| name | bits-drain |
| description | Start working on the next ready task |
| allowed-tools | ["Bash(bits:*)","Bash(jq:*)","Read"] |
An autonomous scheduler that claims one task at a time, implements it with validation, and tail-calls itself to continue. Uses bits as the single source of truth.
Activate drain mode to block exit until work is complete:
bits drain claim
Check for an already active task:
bits list --active --json | jq -r '.[0].id // empty'
If a task is already active: Resume it (skip to Execute).
If no task is active: Find the next ready task:
bits ready --json | jq -r '.[0].id // empty'
If no ready tasks exist: Check if any open (blocked) tasks remain:
bits list --open --json | jq -r 'length'
bits drain release and stop.If a ready task exists: Claim it:
bits claim <task_id>
Read the task details:
bits show <task_id>
Implement the task fully. Use /commit for atomic commits.
After implementation, validate the task before closing:
Every task must reach exactly one of these states:
All acceptance criteria met with evidence:
bits close <task_id> "reason with evidence summary"
Implementation revealed required follow-up work:
bits add "Fix discovered gap" -d "Description" --json
# Note the new task ID
bits dep <current_task_id> <new_task_id>
bits release <current_task_id>
If this is a root verification task (title starts with "Verify goal:"), track the round:
[goal:<this_task_id>] prefix to find the current round number[goal:<this_task_id>][round:N] <description>Create a Replan task and suspend drain when:
bits add "Replan: <original goal summary>" -p critical -d "Description of what went wrong and why replanning is needed" --json
bits drain release --force
After escalation, do NOT invoke /bits-drain again. Inform the user.
After any Close or Release with New Blockers, immediately invoke /bits-drain to process the next task.
This tail-call is mandatory. The only reasons NOT to re-invoke:
/bits-drain
$ARGUMENTS
Analyze conversation history and create bits tasks with dependencies. Use when extracting work from a discussion, turning decisions into tracked tasks, or breaking down what was discussed into actionable items. Triggers on "create tasks from this", "turn this into bits", "extract tasks", "what should we track", "break this down into tasks", "plan from this conversation". Uses collaborative Codex debate to refine scope, discovers verification commands, creates self-contained tasks with context and acceptance criteria.
Track and manage work items, tasks, issues, and todos with dependencies using bits. Use when user needs to create tasks, track progress, manage blockers, find ready work, claim/release tasks, close completed work, or organize multi-step projects. Triggers on "bits", "task", "issue", "backlog", "blockers", "dependencies", "what's ready", "track this", "add to my list", "what should I work on".