/asb-core:command-queuefrom ASB Core
Scans dashboard ticket comments by the owner and auto-dispatches headless Claude workers to execute tasks, routing each to the appropriate model and effort level. Useful for automating task execution from ticket comments.
Ships in ASB Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
the owner writes commands as comments on dashboard tickets (journal/state/tickets.json,
comments[] with by:"owner"). Before this, nothing executed them — they sat as
context until a session happened to read the ticket, so most were never actioned
(e.g. S-06 "cek status di jira…", ME-EARN-Teammate-DESIGN "ask Teammate for an update…").
This skill closes that gap: it picks up new command-comments and auto-dispatches a
detached claude -p worker to do the work, choosing the model+effort by task category.
CQ=.agent/skills/command-queue/scripts/command_queue.py
python3 $CQ scan # enqueue new by:owner command comments
python3 $CQ baseline # mark current backlog seen-but-not-run (ONCE, at activation)
python3 $CQ dispatch # dry-run: triage + show model routing plan
python3 $CQ dispatch --live # actually spawn workers (max 2 concurrent)
python3 $CQ dispatch --live --limit 3
python3 $CQ report # queue status (pending/dispatched/done/skipped)
A single cheap haiku triage call classifies each pending command into one of the six CLAUDE.md categories, then the worker spawns with the matching tier (this IS the Router role from CLAUDE.md, made mechanical):
| category | model | effort | thinking directive |
|---|---|---|---|
| harvest / lookup | haiku | low | — |
| draft | sonnet | medium | "think it through" |
| review | sonnet | medium | "think carefully, be adversarial" |
| synthesize | opus | high | "think hard, weigh + prioritise" |
| strategize | opus | high | "ultrathink, reason adversarially" |
Effort is carried as a thinking directive in the worker prompt (headless has no
--effort flag). Triage also tags risk: needs_send when fulfilling the command
clearly needs a Slack/email send — those still run, but draft-only (see Safety).
Workers can read/research freely but write NOTHING except their draft. The tool
whitelist (in _spawn_worker) is:
Write(journal/ai_drafts/**) — the ONLY write path, scoped to the drafts dirNo Edit, no arbitrary Bash, no ticket mutation, no send tools, no Jira/Drive write tools. A worker cannot touch client state, send a message, or edit a repo/ticket unattended — it produces a draft the owner applies. This is enforced by the whitelist, not just the prompt.
journal/ai_drafts/cmd_<key>.md with sections: What I found /
Proposed action (full ready-to-send text if it's a message) / Needs the owner.review = awaiting the owner's approval.<ticket_id>:<comment_ts> so it runs once.baseline at activation marks the historical backlog seen-but-not-run, so only
comments written AFTER activation get dispatched.review items appear on the dashboard Today tab in the "Commands awaiting your
approval" card (/api/command-queue → approvalsCard()), newest first. Each row:
journal/ai_drafts/cmd_<key>.md in the Drawer (rendered).POST /api/command-queue-ack → CLI ack → clears it (review → done).CLI equivalents: report foregrounds the "📋 Awaiting your approval" section;
ack <key|ticket_id> clears one.
journal/state/command_queue.json — items[<key>] with state
pending|dispatched|done|skipped, plus the chosen model/effort/run_id.journal/ai_runs/cmd-*.log (sentinel AI_TASK_DONE rc=N).journal/ai_drafts/cmd_<key>.md.claude -p must be authenticated in the cron/non-interactive context.
This is the SAME dependency as the dashboard POST /api/ai-task feature. If a worker
log shows Not logged in · Please run /login, the credential isn't resolving in that
shell — fix auth (re-login or a long-lived token/API key for unattended cron) before
relying on --live. scan/baseline/report need no auth; only dispatch --live
and the triage step do (triage degrades gracefully: it leaves items pending).Runs inside the owner's machine-on window (12:30–21:45 WIB) per [[feedback_cron_machine_on_window]]:
*/20 12-21 * * 1-5 flock -n /tmp/command_queue.lock /bin/bash -c 'cd <repo> && python3 .agent/skills/command-queue/scripts/command_queue.py scan && python3 .agent/skills/command-queue/scripts/command_queue.py dispatch --live && python3 .agent/scripts/heartbeat.py --job command-queue --status ok' >> .agent/skills/command-queue/command_queue_cron.log 2>&1
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub brianarfi/ai-second-brain --plugin asb-core66 skills in this plugin
/access-watchFinds every request for access that is waiting on the owner, from both places they arrive, and verifies each one against the live permission state before reporting it./achievements-trackerFinds the owner's product wins in real data each month, drafts CV bullets with caveats and the decisions behind them, messages the owner, and adds them to the CV after a grace period (silence = approved). Use when the owner says "review my CV wins", "approve ACH-xxxx", "reject ACH-xxxx", asks what wins are pending, or asks to add an achievement to their CV./agy-bridgeOptional cost saver that routes bulk mechanical work to a non-Claude model. Use for harvest, critic, and research offload; never for synthesis or strategy. Fully skippable, the harness works without it./browser-serviceBrowser ServiceEnsures the Chrome CDP browser service is running before any browser interaction. Must be invoked before using browser_subagent./clickup-connectorClickUp ConnectorA skill to interact with ClickUp workspaces, allowing retrieval of spaces, folders, lists, and tasks, plus task creation./commitment-ledgerOutbound commitments ledger - things the owner said he'd do (from Fathom meeting action items, sent Slack messages, and local meeting transcripts/MOM drafts), tracked from "I'll ..." until actually delivered or dropped. Not for things the owner is waiting on others for (see waiting-watchdog).Other plugins' skills for the same job