bits-drain
Start working on the next ready task
What this skill does
# Bits-Drain: Checkpointed Autonomous Loop 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. ## Startup Activate drain mode to block exit until work is complete: ```bash bits drain claim ``` ## Resume or Claim Check for an already active task: ```bash 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: ```bash bits ready --json | jq -r '.[0].id // empty' ``` **If no ready tasks exist:** Check if any open (blocked) tasks remain: ```bash bits list --open --json | jq -r 'length' ``` - If open tasks exist: they are blocked on unclosed dependencies. Inform the user and stop. - If no tasks at all: `bits drain release` and stop. **If a ready task exists:** Claim it: ```bash bits claim <task_id> ``` ## Execute Read the task details: ```bash bits show <task_id> ``` Implement the task fully. Use /commit for atomic commits. ## Validate After implementation, validate the task before closing: 1. **Task-local validation**: Run any verification commands mentioned in the task description (lint, test, etc.). Check acceptance criteria from the description. 2. **Evidence required**: Do not close a task without concrete evidence it is satisfied — command output, file inspection, or test results. ## Terminal States Every task must reach exactly one of these states: ### Close (task satisfied) All acceptance criteria met with evidence: ```bash bits close <task_id> "reason with evidence summary" ``` ### Release with New Blockers (validation found gaps) Implementation revealed required follow-up work: 1. Create new bits for each gap discovered 2. Add dependencies from the current task to those new bits (current task depends on new work) 3. Release the current task so new blockers can be claimed: ```bash 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: - Check existing tasks for `[goal:<this_task_id>]` prefix to find the current round number - Prefix new blocker titles: `[goal:<this_task_id>][round:N] <description>` - Round N = max existing round + 1 (start at 1) ### Escalate (autonomy should stop) Create a Replan task and suspend drain when: - The same root verification task has failed 3+ rounds without progress (same gaps keep appearing) - The user request is ambiguous and you cannot determine what "done" means - You are stuck in a loop or unsure how to proceed ```bash 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. ## Continue the Loop 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: 1. No open or ready tasks remain (all work complete) 2. A Replan task was created (escalation) 3. User input is genuinely required (ambiguous requirement) ``` /bits-drain ``` $ARGUMENTS
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.