[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71DW4RG2E0Z8DDK3BX6TMFD":3,"skill-same:01M71DW4RG2E0Z8DDK3BX6TMFD":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M71DW4RG2E0Z8DDK3BX6TMFD","decision-queue",null,"Resolve pending user decisions one at a time, one picker per item. The only owner-facing ask path for \u002Fsuper-conductor.","indigoai-us\u002Fhq-core","indigoai-us","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122242446?v=4","01M71DTQ5NGD10GT1Z7E6XKWC5","HQ","01M71DTQ6BKSYYBNC9RAKT3YDK",95,"MIT","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdecision-queue\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"queue","decision queue","decision","time","Bash","one","super","pending","for","at","scripts","conductor","core","only","edit","write","read","decisions","one at a time","ask","2026-11-10 10:12:30",false,"---\nname: decision-queue\ndescription: Resolve pending user decisions one at a time, one picker per item. The only owner-facing ask path for \u002Fsuper-conductor.\nallowed-tools: Read, Write, Edit, Bash, Bash(bash core\u002Fscripts\u002Fdecision-queue.sh:*), AskUserQuestion\n---\n\n# \u002Fdecision-queue — Sequential Decision Walkthrough\n\nForces strict compliance with `decision-queue-one-at-a-time.md` (global policy, soft enforcement). When a session has accumulated 2+ user-facing decisions, invoke this command to walk them one at a time with `AskUserQuestion`, updating working state between answers.\n\n**Input:** $ARGUMENTS\n\n## When to Use\n\n- The model is about to surface 2+ decisions and is tempted to batch them into a single `AskUserQuestion` (or a numbered list in text).\n- A skill (`\u002Fbrainstorm`, `\u002Fprd`, `\u002Farchitect`, `\u002Fdiagnose`, `\u002Frun-project`, `\u002Fexecute-task`, `\u002Fstrategize`, `\u002Freview-plan`) needs to defer to the user on several separable choices.\n- Ad-hoc: the user is mid-task, has multiple open questions, and explicitly asks for a decision queue (`decision queue plz`, `walk me through these one at a time`).\n\n## Rule\n\nOutside conductor mode, each decision = **one** `AskUserQuestion` call with **one** question. Wait for the answer. Update any working state (plan file, brainstorm.md, PRD, in-memory state, or just an explicit acknowledgement). Then proceed to the next decision.\n\n**Never** batch 2+ decisions into a single `AskUserQuestion` invocation, even though the tool accepts up to 4 questions per call. That capacity is for *disambiguating a single decision* (e.g. \"Which DB?\" + \"Which migration tool?\" as a tightly-coupled pair), not for stacking unrelated decisions.\n\n## Process\n\n1. **Parse $ARGUMENTS** — either a free-text description of decisions in scope, or a path to a markdown\u002Fjson file listing them. If neither, infer from session context (most recent assistant message that surfaced decisions).\n2. **Enumerate the queue** internally as a numbered list with: title, context, default recommendation (if any), 2-4 options.\n3. **Show the queue header** to the user as a transparency block: `Decision queue (N items): 1. …  2. …  3. …` so they know what's coming. Skip it for a single item. Never end the turn on the header: the first picker always follows it in the same turn.\n4. **For each decision in order:**\n   a. Brief insight block explaining why this decision is foundational \u002F what it unlocks. Skip it in conductor mode.\n   b. `AskUserQuestion` with exactly one question, 2-4 options, recommended option first with `(Recommended)` suffix. When an option carries content the user must see to choose (an outbound message draft, a file or asset, a code or config snippet), put it in that option's `preview`, in full for drafts.\n   c. Wait for the answer.\n   d. Update working state — minimum: state in plain text what was decided and how it shapes the next decision. If a plan file \u002F brainstorm.md \u002F PRD exists, persist the answer there.\n   e. **Relay** the answer when the item came from someone else (a child session, a teammate, a bot) before opening the next picker. The caller says how; for `\u002Fsuper-conductor` it is the quoted `OWNER GO` (or hold) sent on the link and by direct message to the owning session.\n   f. If the answer materially changes the remaining queue (e.g. user picks \"skip the rest\", \"stop\", or an option that obviates downstream questions), re-enumerate before moving on.\n5. **After the last decision:** summarize the resolved decisions as a numbered list and confirm next action.\n\n## Conductor mode (`\u002Fsuper-conductor`, `\u002Fovernight`)\n\n`\u002Fsuper-conductor` routes everything that needs the owner through this skill, but in conductor mode the conductor does not open pickers itself. The pickers are opened by the link's `\u002Fdecision-desk` session, fed by the link's decision queue (`workspace\u002Freports\u002Fconduct\u002F\u003Clink>-decisions.jsonl`), so the conductor's turn is never held by a picker:\n\n- Run for any number of items, including one.\n- Each item comes with its source (child session, channel, CI) and its relay target. Append every owner item to the queue the moment it is found, in the same turn: `node core\u002Fscripts\u002Fsuper-conductor-decisions.mjs add --file \u003Cqueue> --source ledger|ask|conductor --ref \u003Cid> --question \"\u003Cwho asked and what happens on each answer>\" --option \"\u003Clabel>::\u003Cdescription>\"... [--recommended \u003Clabel>] --priority critical|normal --relay-session \u003Clocal_ id> --relay-child \u003Cchild> --relay-link \u003Clink> [--company \u003Cslug>] [--asked-by \u003Cwho>]`. `add` exits 3 with the existing id when the same source and ref is already queued; the same question is never queued twice.\n- Optional `add` flags: `--body \u003Ctext>` or `--body-file \u003Cpath>` holds the full ask or draft (newlines kept; `show --file \u003Cqueue> --id \u003Cid>` prints it); `--subject auto` (or `--subject \u003Ckey>`) dedupes on the PR being decided, exiting 3 with the open row's id or 4 with `settled \u003Cid> → \u003Canswer>` when it was already answered; `--reopen \u003Cwhy>` asks a settled subject again; `--relay-agent \u003Cid>` names a worker subagent as the relay target.\n- One picker per item, asked by `\u002Fdecision-desk`, not here. A pick between several candidates (A\u002FB assets, copy or sound variants) is one item with the candidates as options; with more than four, queue a first item to narrow, then a second to choose. Two to four options, recommended first.\n- Arrival order, critical first: `next` returns the oldest open row with critical rows ahead of normal ones, so set `--priority critical` on merges, deploys, sends, money, and deletes that are blocking a child.\n- An item the owner already answered in the source session (the open-ask checker no longer lists it, or the child's last message shows the owner's reply) is dropped, not asked: `super-conductor-decisions.mjs drop --id \u003Cid> --note \"answered in source\" --by conductor`. `drop` always needs a reason; a row is never dropped without one, and never because it is inconvenient to relay.\n- A child session's ask is relayed by the desk itself the moment the owner picks (`\u002Fdecision-desk` Step 3b); the conductor sees no ANSWER line for it unless the desk's relay failed. Relay every other answer when its `SUPER-CONDUCTOR ANSWER` line arrives on the heartbeat: write the ledger row `answered` (and `hq lanes questions answer` for a lane question), send the quoted `OWNER GO` (or hold) on the link and by direct `send_message` to the relay session in the same turn, update the conductor's save file (`open_decisions`), then `super-conductor-decisions.mjs relayed --file \u003Cqueue> --id \u003Cid> --by conductor`. A relay that fails leaves the row `answered` and the next wakeup retries it; the owner is never asked twice.\n- Standing answers: a row that matches one of the owner's standing rules (`super-conductor-decisions.mjs standing list`) is answered at `add` time and never reaches the desk. Its ANSWER line says \"answered by standing \u003Cid>, never asked\"; relay it exactly like a desk answer, quoting the rule rather than an OWNER GO from today. Only the desk writes rules (`standing add --by desk`), and only on the owner's explicit \"from now on\" words. In code, a rule needs an expiry (at most 30 days), never answers a merge, deploy, send, delete or money row without the owner's `--irreversible`, and never answers a teammate's request without `--from`.\n- New items found while the desk is draining are appended to the queue and the desk asks them in the same drain.\n- Never end the turn with unasked items listed in prose (\"still to come\", \"next I'll ask about\"), and never open an `AskUserQuestion` for an owner item in the conductor, except a `priority: critical` row the conductor has claimed first (`claim --id \u003Cid> --desk conductor`; see \u002Fsuper-conductor \"Critical cards interrupt\"). `answer` always needs `--desk \u003Cname>` holding the row's fresh claim. The item goes to the queue; the turn ends after the last relay or the last `add`.\n\n### Queue cards (`core\u002Fscripts\u002Fdecision-queue.sh`)\n\nThe desk asks each row as a server-backed Queue card before it opens a\npicker. `decision-queue.sh` asks through `hq decide ask` as the owner's\npersonal local bot; the CLI and server enforce that only that bot may ask in\nrelease 1. Never substitute owner credentials when that gate refuses. Card\nstate lives in `workspace\u002Freports\u002Fconduct\u002F\u003Clink>-queue-cards.json`, owned by\nthe script (it locks and writes atomically). There is one active card at a\ntime: later rows wait until the active one is answered and acknowledged,\nwithdrawn, cancelled, or resolved after expiry.\n\n```bash\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> enqueue-row \u003Crow.json> --company \u003Cslug>\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> sweep\n```\n\n`enqueue-row` takes one row printed by `super-conductor-decisions.mjs next\n--json` and maps its options to ids A to D, its recommended option to\n`--recommend`, and option descriptions to the card context. The row's\n`company` wins over `--company`. A conductor item can also be enqueued\ndirectly with `enqueue \u003Cstep.json>`, which takes `step_id`, `statement`,\n`source`, `relay_target`, `options`, `recommend`, `company`, and optional\n`context`, `context_links`, `expires` (default `72h`) and `commitment_id`.\nContext links are checked against the shared secret patterns; signed URLs\nare rejected.\n\n`sweep` runs `hq decide list --open --json`, then `hq decide show \u003Cid>` for\nthe card it owns (an answered record leaves the open list). Its status:\n\n- `open`: the card is on the owner's Queue. Open no picker; end the drain.\n- `answer_pending`: `step.answer.choiceId` is the owner's pick. Write it\n  back, relay it, then `ack \u003Cstep-id> --evidence \u003Crelay receipt>`. A step\n  with a `commitment_id` also needs `--ledger-evidence` from the commitments\n  ledger write; without it `ack` saves the relay receipt and does not advance.\n- `fallback`: `hq decide ask` (or the list before any card existed) failed,\n  and the failure is saved under `decision_queue.failures`. Only this status\n  permits the chat picker for that step. Record the pick with\n  `fallback-answer \u003Cstep-id> --choice \u003CA-D>` or `--text \"\u003COther text>\"`,\n  then `ack \u003Cstep-id> --evidence chat-fallback:\u003Cstep-id>`. The next step\n  tries `hq decide ask` again.\n- `ask_uncertain` or `reconcile_required`: an ask was interrupted or returned\n  no id and may have created a card. Do not re-ask, open a picker or advance;\n  check the Queue and say so in the status line.\n- `expired`: expiry is not an answer. `resolve-expired \u003Cstep-id> --action\n  reask --reason \"...\"` keeps the step first and asks a new card on the next\n  sweep; `--action drop --reason \"...\"` lets the next step go.\n- A non-zero exit while a card is open is a failed read. Keep the card and\n  retry on the next wake; it is not permission for a picker.\n\nWhen the source row was answered or dropped elsewhere, `withdraw\n\u003Cdecision-id>` an open card or `cancel \u003Cstep-id> --reason \"...\"` a step with\nno card, or an answered step whose answer can no longer be written. `withdraw` refuses ids this script did not ask.\nNever withdraw a foreign decision from the open list, and never infer an\nanswer from a record missing from that list.\n\n```bash\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> ack \u003Cstep-id> --evidence \u003Creceipt> [--ledger-evidence \u003Cledger receipt>]\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> fallback-answer \u003Cstep-id> --choice A\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> withdraw \u003Cdecision-id>\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> cancel \u003Cstep-id> --reason 'answered in source'\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> resolve-expired \u003Cstep-id> --action drop --reason 'Request obsolete'\n```\n\nAn external relay and the local receipt are not one transaction: after an\ninterruption, check the target before relaying again.\n\n## Examples\n\n**Correct (sequential):**\n\n```\nDecision queue (3 items):\n  1. Branching strategy\n  2. PR splitting\n  3. Test coverage scope\n\n[Insight: branching strategy is foundational because…]\nAskUserQuestion(Q1) → user picks \"new branch off main\"\n[Update: working on indigo\u002Fhq-sync-… off latest main]\n\n[Insight: PR splitting depends on Q1 because…]\nAskUserQuestion(Q2) → user picks \"single PR\"\n[Update: one PR for both yellow-removal + copy-prompt]\n\n[Insight: test scope follows from Q2 because…]\nAskUserQuestion(Q3) → user picks \"vitest only\"\n[Update: no Playwright; local units + manual UAT]\n\nResolved:\n  1. Branch off main → indigo\u002Fhq-sync-no-yellow-copy-prompt\n  2. Single PR\n  3. vitest + manual UAT\n```\n\n**Incorrect (batched):**\n\n```\nAskUserQuestion([Q1, Q2, Q3])  ← never do this; even though the schema allows it\n```\n\n## Rules\n\n- Outside conductor mode, one `AskUserQuestion` call per decision. In conductor mode, the desk asks a Queue card first and opens a picker only after a failed ask.\n- Recommended option goes first with `(Recommended)` in the label, per `AskUserQuestion` tool conventions.\n- Never reference \"the plan\" if you are in plan mode — the user can't see it. Use `ExitPlanMode` for plan approval, not `AskUserQuestion`.\n- If only **one** decision is in scope outside conductor mode, asking it directly with one `AskUserQuestion` is fine. In conductor mode every item, even a single one, goes through this skill.\n- If the user says \"stop\", \"I'll figure it out\", or picks an option that ends the queue, stop. Do not force the remaining decisions.\n- Persist resolutions in the appropriate working file (plan \u002F PRD \u002F brainstorm.md) when one exists; otherwise just state the resolution in text.\n\n## Related\n\n- Global policy: [`decision-queue-one-at-a-time`](..\u002F..\u002F..\u002Fcore\u002Fpolicies\u002Fdecision-queue-one-at-a-time.md)\n- Counterpart for accepted technical decisions worth not re-litigating: `\u002Fadr`\n- Counterpart for rejected ideas: `\u002Fout-of-scope`\n","# \u002Fdecision-queue — Sequential Decision Walkthrough\n\nForces strict compliance with `decision-queue-one-at-a-time.md` (global policy, soft enforcement). When a session has accumulated 2+ user-facing decisions, invoke this command to walk them one at a time with `AskUserQuestion`, updating working state between answers.\n\n**Input:** $ARGUMENTS\n\n## When to Use\n\n- The model is about to surface 2+ decisions and is tempted to batch them into a single `AskUserQuestion` (or a numbered list in text).\n- A skill (`\u002Fbrainstorm`, `\u002Fprd`, `\u002Farchitect`, `\u002Fdiagnose`, `\u002Frun-project`, `\u002Fexecute-task`, `\u002Fstrategize`, `\u002Freview-plan`) needs to defer to the user on several separable choices.\n- Ad-hoc: the user is mid-task, has multiple open questions, and explicitly asks for a decision queue (`decision queue plz`, `walk me through these one at a time`).\n\n## Rule\n\nOutside conductor mode, each decision = **one** `AskUserQuestion` call with **one** question. Wait for the answer. Update any working state (plan file, brainstorm.md, PRD, in-memory state, or just an explicit acknowledgement). Then proceed to the next decision.\n\n**Never** batch 2+ decisions into a single `AskUserQuestion` invocation, even though the tool accepts up to 4 questions per call. That capacity is for *disambiguating a single decision* (e.g. \"Which DB?\" + \"Which migration tool?\" as a tightly-coupled pair), not for stacking unrelated decisions.\n\n## Process\n\n1. **Parse $ARGUMENTS** — either a free-text description of decisions in scope, or a path to a markdown\u002Fjson file listing them. If neither, infer from session context (most recent assistant message that surfaced decisions).\n2. **Enumerate the queue** internally as a numbered list with: title, context, default recommendation (if any), 2-4 options.\n3. **Show the queue header** to the user as a transparency block: `Decision queue (N items): 1. …  2. …  3. …` so they know what's coming. Skip it for a single item. Never end the turn on the header: the first picker always follows it in the same turn.\n4. **For each decision in order:**\n   a. Brief insight block explaining why this decision is foundational \u002F what it unlocks. Skip it in conductor mode.\n   b. `AskUserQuestion` with exactly one question, 2-4 options, recommended option first with `(Recommended)` suffix. When an option carries content the user must see to choose (an outbound message draft, a file or asset, a code or config snippet), put it in that option's `preview`, in full for drafts.\n   c. Wait for the answer.\n   d. Update working state — minimum: state in plain text what was decided and how it shapes the next decision. If a plan file \u002F brainstorm.md \u002F PRD exists, persist the answer there.\n   e. **Relay** the answer when the item came from someone else (a child session, a teammate, a bot) before opening the next picker. The caller says how; for `\u002Fsuper-conductor` it is the quoted `OWNER GO` (or hold) sent on the link and by direct message to the owning session.\n   f. If the answer materially changes the remaining queue (e.g. user picks \"skip the rest\", \"stop\", or an option that obviates downstream questions), re-enumerate before moving on.\n5. **After the last decision:** summarize the resolved decisions as a numbered list and confirm next action.\n\n## Conductor mode (`\u002Fsuper-conductor`, `\u002Fovernight`)\n\n`\u002Fsuper-conductor` routes everything that needs the owner through this skill, but in conductor mode the conductor does not open pickers itself. The pickers are opened by the link's `\u002Fdecision-desk` session, fed by the link's decision queue (`workspace\u002Freports\u002Fconduct\u002F\u003Clink>-decisions.jsonl`), so the conductor's turn is never held by a picker:\n\n- Run for any number of items, including one.\n- Each item comes with its source (child session, channel, CI) and its relay target. Append every owner item to the queue the moment it is found, in the same turn: `node core\u002Fscripts\u002Fsuper-conductor-decisions.mjs add --file \u003Cqueue> --source ledger|ask|conductor --ref \u003Cid> --question \"\u003Cwho asked and what happens on each answer>\" --option \"\u003Clabel>::\u003Cdescription>\"... [--recommended \u003Clabel>] --priority critical|normal --relay-session \u003Clocal_ id> --relay-child \u003Cchild> --relay-link \u003Clink> [--company \u003Cslug>] [--asked-by \u003Cwho>]`. `add` exits 3 with the existing id when the same source and ref is already queued; the same question is never queued twice.\n- Optional `add` flags: `--body \u003Ctext>` or `--body-file \u003Cpath>` holds the full ask or draft (newlines kept; `show --file \u003Cqueue> --id \u003Cid>` prints it); `--subject auto` (or `--subject \u003Ckey>`) dedupes on the PR being decided, exiting 3 with the open row's id or 4 with `settled \u003Cid> → \u003Canswer>` when it was already answered; `--reopen \u003Cwhy>` asks a settled subject again; `--relay-agent \u003Cid>` names a worker subagent as the relay target.\n- One picker per item, asked by `\u002Fdecision-desk`, not here. A pick between several candidates (A\u002FB assets, copy or sound variants) is one item with the candidates as options; with more than four, queue a first item to narrow, then a second to choose. Two to four options, recommended first.\n- Arrival order, critical first: `next` returns the oldest open row with critical rows ahead of normal ones, so set `--priority critical` on merges, deploys, sends, money, and deletes that are blocking a child.\n- An item the owner already answered in the source session (the open-ask checker no longer lists it, or the child's last message shows the owner's reply) is dropped, not asked: `super-conductor-decisions.mjs drop --id \u003Cid> --note \"answered in source\" --by conductor`. `drop` always needs a reason; a row is never dropped without one, and never because it is inconvenient to relay.\n- A child session's ask is relayed by the desk itself the moment the owner picks (`\u002Fdecision-desk` Step 3b); the conductor sees no ANSWER line for it unless the desk's relay failed. Relay every other answer when its `SUPER-CONDUCTOR ANSWER` line arrives on the heartbeat: write the ledger row `answered` (and `hq lanes questions answer` for a lane question), send the quoted `OWNER GO` (or hold) on the link and by direct `send_message` to the relay session in the same turn, update the conductor's save file (`open_decisions`), then `super-conductor-decisions.mjs relayed --file \u003Cqueue> --id \u003Cid> --by conductor`. A relay that fails leaves the row `answered` and the next wakeup retries it; the owner is never asked twice.\n- Standing answers: a row that matches one of the owner's standing rules (`super-conductor-decisions.mjs standing list`) is answered at `add` time and never reaches the desk. Its ANSWER line says \"answered by standing \u003Cid>, never asked\"; relay it exactly like a desk answer, quoting the rule rather than an OWNER GO from today. Only the desk writes rules (`standing add --by desk`), and only on the owner's explicit \"from now on\" words. In code, a rule needs an expiry (at most 30 days), never answers a merge, deploy, send, delete or money row without the owner's `--irreversible`, and never answers a teammate's request without `--from`.\n- New items found while the desk is draining are appended to the queue and the desk asks them in the same drain.\n- Never end the turn with unasked items listed in prose (\"still to come\", \"next I'll ask about\"), and never open an `AskUserQuestion` for an owner item in the conductor, except a `priority: critical` row the conductor has claimed first (`claim --id \u003Cid> --desk conductor`; see \u002Fsuper-conductor \"Critical cards interrupt\"). `answer` always needs `--desk \u003Cname>` holding the row's fresh claim. The item goes to the queue; the turn ends after the last relay or the last `add`.\n\n### Queue cards (`core\u002Fscripts\u002Fdecision-queue.sh`)\n\nThe desk asks each row as a server-backed Queue card before it opens a\npicker. `decision-queue.sh` asks through `hq decide ask` as the owner's\npersonal local bot; the CLI and server enforce that only that bot may ask in\nrelease 1. Never substitute owner credentials when that gate refuses. Card\nstate lives in `workspace\u002Freports\u002Fconduct\u002F\u003Clink>-queue-cards.json`, owned by\nthe script (it locks and writes atomically). There is one active card at a\ntime: later rows wait until the active one is answered and acknowledged,\nwithdrawn, cancelled, or resolved after expiry.\n\n```bash\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> enqueue-row \u003Crow.json> --company \u003Cslug>\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> sweep\n```\n\n`enqueue-row` takes one row printed by `super-conductor-decisions.mjs next\n--json` and maps its options to ids A to D, its recommended option to\n`--recommend`, and option descriptions to the card context. The row's\n`company` wins over `--company`. A conductor item can also be enqueued\ndirectly with `enqueue \u003Cstep.json>`, which takes `step_id`, `statement`,\n`source`, `relay_target`, `options`, `recommend`, `company`, and optional\n`context`, `context_links`, `expires` (default `72h`) and `commitment_id`.\nContext links are checked against the shared secret patterns; signed URLs\nare rejected.\n\n`sweep` runs `hq decide list --open --json`, then `hq decide show \u003Cid>` for\nthe card it owns (an answered record leaves the open list). Its status:\n\n- `open`: the card is on the owner's Queue. Open no picker; end the drain.\n- `answer_pending`: `step.answer.choiceId` is the owner's pick. Write it\n  back, relay it, then `ack \u003Cstep-id> --evidence \u003Crelay receipt>`. A step\n  with a `commitment_id` also needs `--ledger-evidence` from the commitments\n  ledger write; without it `ack` saves the relay receipt and does not advance.\n- `fallback`: `hq decide ask` (or the list before any card existed) failed,\n  and the failure is saved under `decision_queue.failures`. Only this status\n  permits the chat picker for that step. Record the pick with\n  `fallback-answer \u003Cstep-id> --choice \u003CA-D>` or `--text \"\u003COther text>\"`,\n  then `ack \u003Cstep-id> --evidence chat-fallback:\u003Cstep-id>`. The next step\n  tries `hq decide ask` again.\n- `ask_uncertain` or `reconcile_required`: an ask was interrupted or returned\n  no id and may have created a card. Do not re-ask, open a picker or advance;\n  check the Queue and say so in the status line.\n- `expired`: expiry is not an answer. `resolve-expired \u003Cstep-id> --action\n  reask --reason \"...\"` keeps the step first and asks a new card on the next\n  sweep; `--action drop --reason \"...\"` lets the next step go.\n- A non-zero exit while a card is open is a failed read. Keep the card and\n  retry on the next wake; it is not permission for a picker.\n\nWhen the source row was answered or dropped elsewhere, `withdraw\n\u003Cdecision-id>` an open card or `cancel \u003Cstep-id> --reason \"...\"` a step with\nno card, or an answered step whose answer can no longer be written. `withdraw` refuses ids this script did not ask.\nNever withdraw a foreign decision from the open list, and never infer an\nanswer from a record missing from that list.\n\n```bash\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> ack \u003Cstep-id> --evidence \u003Creceipt> [--ledger-evidence \u003Cledger receipt>]\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> fallback-answer \u003Cstep-id> --choice A\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> withdraw \u003Cdecision-id>\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> cancel \u003Cstep-id> --reason 'answered in source'\nbash core\u002Fscripts\u002Fdecision-queue.sh --state \u003Ccards> resolve-expired \u003Cstep-id> --action drop --reason 'Request obsolete'\n```\n\nAn external relay and the local receipt are not one transaction: after an\ninterruption, check the target before relaying again.\n\n## Examples\n\n**Correct (sequential):**\n\n```\nDecision queue (3 items):\n  1. Branching strategy\n  2. PR splitting\n  3. Test coverage scope\n\n[Insight: branching strategy is foundational because…]\nAskUserQuestion(Q1) → user picks \"new branch off main\"\n[Update: working on indigo\u002Fhq-sync-… off latest main]\n\n[Insight: PR splitting depends on Q1 because…]\nAskUserQuestion(Q2) → user picks \"single PR\"\n[Update: one PR for both yellow-removal + copy-prompt]\n\n[Insight: test scope follows from Q2 because…]\nAskUserQuestion(Q3) → user picks \"vitest only\"\n[Update: no Playwright; local units + manual UAT]\n\nResolved:\n  1. Branch off main → indigo\u002Fhq-sync-no-yellow-copy-prompt\n  2. Single PR\n  3. vitest + manual UAT\n```\n\n**Incorrect (batched):**\n\n```\nAskUserQuestion([Q1, Q2, Q3])  ← never do this; even though the schema allows it\n```\n\n## Rules\n\n- Outside conductor mode, one `AskUserQuestion` call per decision. In conductor mode, the desk asks a Queue card first and opens a picker only after a failed ask.\n- Recommended option goes first with `(Recommended)` in the label, per `AskUserQuestion` tool conventions.\n- Never reference \"the plan\" if you are in plan mode — the user can't see it. Use `ExitPlanMode` for plan approval, not `AskUserQuestion`.\n- If only **one** decision is in scope outside conductor mode, asking it directly with one `AskUserQuestion` is fine. In conductor mode every item, even a single one, goes through this skill.\n- If the user says \"stop\", \"I'll figure it out\", or picks an option that ends the queue, stop. Do not force the remaining decisions.\n- Persist resolutions in the appropriate working file (plan \u002F PRD \u002F brainstorm.md) when one exists; otherwise just state the resolution in text.\n\n## Related\n\n- Global policy: [`decision-queue-one-at-a-time`](..\u002F..\u002F..\u002Fcore\u002Fpolicies\u002Fdecision-queue-one-at-a-time.md)\n- Counterpart for accepted technical decisions worth not re-litigating: `\u002Fadr`\n- Counterpart for rejected ideas: `\u002Fout-of-scope`\n",{"name":5,"description":7,"allowed-tools":44},"Read, Write, Edit, Bash, Bash(bash core\u002Fscripts\u002Fdecision-queue.sh:*), AskUserQuestion","main","205cf61728a27ef15e9153aa38df5856fc8d82f5",".claude\u002Fskills\u002Fdecision-queue",18,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core","https:\u002F\u002Fgithub.com\u002Findigoai-us","https:\u002F\u002Fhqforwork.com\u002F","The AI Context Layer for Teams","2026-11-12 06:53:38",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add indigoai-us\u002Fhq-core --skill decision-queue",{"tool":60,"command":61},"bunx","bunx skills add indigoai-us\u002Fhq-core --skill decision-queue",{"tool":63,"command":64},"pnpm","pnpm dlx skills add indigoai-us\u002Fhq-core --skill decision-queue","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdecision-queue\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"agents\u002Fopenai.yaml","REFERENCE","参考文档",107,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdecision-queue\u002Fagents\u002Fopenai.yaml",[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M73NTNKZ3T2KJNDP2ZF23645","job","Deprecated alias for \u002Fschedule — Outpost recurring agent jobs. Prefer \u002Fschedule.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjob\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"01M73NTE0H9DQTT6DNHDKRWTXW","import-claude","Deprecated alias for \u002Fimport-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimport-claude\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"01M73NT67433KKX96CCJWDQQ0X","hq-whoami","Show current HQ Cognito identity and session expiry.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-whoami\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"01M73NT17SVXZV2QPT14C2RPJP","hq-share","Share HQ vault paths through single-use links or direct ACL grants.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-share\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":82},"01M73NSXYFMD7EHGT8TFDZA3C8","hq-secrets","Use HQ CLI secrets safely through env injection or one-off exec.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-secrets\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":82},"01M73NSWCXJK29Q8CNG8AS3ZZQ","hq-logout","Sign out of HQ Cognito and clear local tokens.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-logout\u002FSKILL.md",[],[]]