Skip to content
Back to skills

Rule Daemon Question Cards

ASecurity

Question cards — standing ask_user_question cards and deferred questions for team members. A repository rule for apps/daemon/src/v1/agents/**/standing-questions*, apps/daemon/src/v1/agents/**/host-question*, apps/daemon/src/v1/agents/**/pending-question*, apps/daemon/src/v1/agents/**/card-questions*, apps/daemon/src/v1/agents/**/team-member-questions*, apps/daemon/src/v1/agents/**/unanswerable*, apps/daemon/src/v1/agents/**/user-question*, apps/daemon/src/v1/agents/**/approval-*, apps/daemon/...

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgonodeaws

Works with

  • cursor
  • cli
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add geniro-io/geniro-app --skill rule-daemon-question-cards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Daemon Question Cards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rule Daemon Question Cards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-daemon-question-cards/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-daemon-question-cards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rule-daemon-question-cards
description: "Question cards — standing ask_user_question cards and deferred questions for team members. A repository rule for apps/daemon/src/v1/agents/**/standing-questions*, apps/daemon/src/v1/agents/**/host-question*, apps/daemon/src/v1/agents/**/pending-question*, apps/daemon/src/v1/agents/**/card-questions*, apps/daemon/src/v1/agents/**/team-member-questions*, apps/daemon/src/v1/agents/**/unanswerable*, apps/daemon/src/v1/agents/**/user-question*, apps/daemon/src/v1/agents/**/approval-*, apps/daemon/src/v1/agents/adapters/**/*question*, apps/daemon/src/v1/mcp/tools/ask-user-question/**; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/daemon-question-cards.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Question cards

- A standing `ask_user_question` card belongs to the TURN, not the MCP call (`utils/standing-questions.ts`). An abandoned call DETACHES, an identical re-ask ADOPTS, an early answer is HELD for the next ask, and a reworded question is a new card.
- A CLI that holds the call open can still end a turn while the call waits (codex's code mode yields an MCP call back to the model after `yield_time_ms`, and the model may give up polling and end the turn; measured on 0.170.0). On a COMPLETED turn of a chat or of a member's own conversation, the newest unanswered card is HANDED OVER (`StandingQuestions.handOver`) to the deferred store under its own id, with no second row: the chat's `Run.pendingQuestion` (`ChatService.keepQuestionStanding`), a member's `Run.pendingMemberQuestions` (`MemberQuestionCards.ask` with `onScreen`). Its parked call is answered with the store's outcome (`posted`), and the verdict starts a turn as any deferred card's does. A code-mode script that handed such a call back is not told its outcome again: a `posted` answer carries `answerFollows`, which `CodeModeService` reads as "the verdict is its message". Released from the registry before the turn's sweeps run; refused while another card stands (closed `unanswerable`). A stopped or failed turn, the card's other siblings, and a callee conversation keep the turn's close.
- For a CLI whose client will not hold a call open (`AdapterConfig.hostQuestionDeferredReason`, cursor): the tool answers `posted` at once and the answer arrives as the next message. Do not reintroduce polling.
  - The card outlives the turn (`sweepNode` skips `deferred`) and is retired by a new turn (`sweepDeferred` → `unanswerable`).
  - Write the verdict row and clear `Run.pendingQuestion` BEFORE the answer message goes out.
  - One per run, rehydrated at boot (`rehydrateDeferredQuestions`); a different second question is refused. Every row names its `kind` (`question`, `plan`, `project`); a row that names none, or a kind no longer raised (`patch`), is unreadable and cleared at boot. No compatibility readers.
  - `propose_plan` and `save_project_instructions` take the same deferral, column and one-card rule (`PendingCardSnapshot`); a project card's Apply runs `ProjectInstructionsChangeService.write`, and its failures after Apply are `stale`, never `unavailable` (the user did see the card). Approve or Reject starts a turn whose message is the verdict, a plan's note included. Their listing says the call returns at once (`register(…, { answersAtOnce })`, read by `PlanBroker` / `ProjectInstructionsBroker.answersAtOnce`).
- cursor's own `cursor/ask_question` is not used for `ask_user_question` (option ids only).
- **Attachments.** Every writer of a question row (one carrying `questions`: the solo blocking and deferred host-tool paths, the solo in-turn and between-turn CLI events, the team host-tool and CLI-event paths, a member's deferred card) spreads `QuestionAttachmentsService.cardFields` into it: `attachments` (an older row may also carry `moreAttachments`, which nothing reads). Only explicit pages, ever (user decision): exactly the pages `ask_user_question`'s `artifacts` named, each once at its newest version, at most `MAX_QUESTION_ATTACHMENTS`; nothing is discovered for the agent — no page named in the words, none of its turn, none published since — so a question without `artifacts` (every CLI's own question tool, claude's AskUserQuestion included) writes `attachments: []`. Resolved once when the row is written and never rewritten: a hand-over writes no row, and a reboot rehydrate keeps the row as it is. An entry names a page's `artifactId`, title and version, never its serving key. A failed read attaches nothing and never refuses the question; `artifacts` naming a page this run never published refuses the call, naming the run's pages. A question whose words (title, questions, headers, option labels and descriptions) name a page of the run — its full title, matched without case, quote marks or runs of spaces, or its id as a whole token, either at least `MIN_PAGE_NAME_LENGTH` characters (`pagesNamedIn`) — without passing it is refused before any row is written, so its card never goes up without the page it is about: `ask_user_question` answers `INVALID_ARGS` naming the pages (`namedPagesLeftOut`; not once three pages are passed), and a CLI's own question tool beside geniro's (`hostQuestionToolReason` null) is denied with `cliQuestionRefusal`'s text (which holds the gate below) through `respondApproval`'s `denyMessage`, telling it to ask again through `ask_user_question` with those ids — in a chat turn, a member's own conversation and a callee conversation alike (before `parkQuestion`), only while geniro's tool can be called on that turn (`UserQuestionBroker.canAsk`, and in a chat not in `plan` mode, where claude refuses MCP calls); otherwise, and between turns, its card is raised as before. `StandingQuestions.keyFor` stays title + questions, so an identical re-ask adopts the card with the attachments it was first written with. The command-center relay copies `attachments` onto `ThreadQuestionCardInput`. Rows an earlier build wrote with automatically picked pages keep them on disk; the renderer draws stored attachments only for a question asked through `ask_user_question` (`.claude/rules/ui-chats-cards.md`).
- The preamble's questions section and `ask_user_question`'s description send every question to the user through a question tool, never into the reply text: a question written as text leaves the turn unmarked as waiting, so it reaches neither Needs you nor a card.
- **Every CLI is offered `ask_user_question`** (user decision), in a chat turn and a member turn alike, since it is the only question tool that carries pages: no CLI decides whether it is registered. A CLI whose model has a question tool of its own (`hostQuestionToolReason` null: claude's AskUserQuestion) keeps it beside geniro's — the one a `plan`-mode turn can still call, since plan mode refuses MCP calls. The preamble's `ask_user_question` line says which a question takes: a page or a screenshot goes through geniro's. A turn may raise one card from each.
- **Team runs.** `beginAgentTurn` registers the sink under `callerKey(member, conversation)` and drops it with the turn (the tool keys its listing and call the same way, so a chat's bare member id is unchanged).
  - Own conversation, a CLI that holds the call open: one card in the member's flow, tracked as a question and closed with the turn like the turn's other cards (`openCards`).
  - Own conversation, `hostQuestionDeferredReason`: answered `posted`; `TeamCardsService` keeps the card in `Run.pendingMemberQuestions` (one per member, same words adopt, others `QUESTION_ALREADY_STANDING`), rehydrates it at boot, retires it on a user message (`TeamExecutorService.sendMessage`, not awaited, so the message still beats a scheduled wake) and on archive (`ChatService.retireStandingCard`); its verdict leaves the column first, then wakes that member's own conversation with `deferredAnswerMessage` (`StageWakeService.wakeLead` with the member).
  - Callee conversation: parked on its caller (`CallBroker.parkQuestion`), as a claude callee's is. A deferred one (`deferred: true`) blocks nobody, holds the call once the callee's turn ends (`owesHold`, `answerOwed`) and continues the callee inside it with the caller's answer — or, past the TTL or with no caller turn left, with word that none came, never failing the call. The pages its `artifacts` named go with it (user decision): resolved like a card's attachments (`TeamExecutorService.questionPagesOf`), written as `artifacts` (`CallPublishedPage`) on the `call_question` row and the question envelope, and named in the wake or told prompt, so the caller passes them on in its own `ask_user_question` and the user's card shows them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.