/question-forms:question-formsfrom Question forms
Use at every AI-DLC questions file, before the developer is asked to answer it — turn the file into a form in the developer's "AI-DLC question forms" artifact (rows in the artifact's database, never a new page), give the link, and when the developer says the form is done copy the saved answers word for word into the file's [Answer]: tags. Also for adding, changing or removing questions in an open form, and for follow-up questions.
Ships in Question forms. 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.
Read when SKILL.md points to them.
The file stays the record and the engine keeps reading it; the form is how the developer fills it.
Whether a questions file gets a form is the developer's preference for this project (§ 0); under
always, or when the developer chose the form for that file, it does, every time. The template, question-form.html next to
this file, is the one page; its header comment is the data contract. Never generate, restyle or
edit a form page per stage.
The developer's choice is per user and per project, kept by the plugin (always, ask, never). You
never read or write it; the question_guard.py hook tells you the next step after each questions file you write
(a Write/Edit of …/aidlc/spaces/…/<stage>-questions.md with [Answer]: tags):
AskUserQuestion with metadata: {"source": "question-forms:preference"} and a placeholder question ("Show question forms?", options "Always" and "Ask").
The plugin's mod replaces it with the real question (Always show question forms / Ask every time / Never show) and
explains above it what a question form is. Do not answer it, add text of your own or ask anything else; follow the
line the mod adds. /question-forms:preference opens the same dialog later.ask → for each file, one AskUserQuestion with metadata: {"source": "question-forms:ask:<repo path of the file>"} and a placeholder question; the answer (open the form, or the developer edits the file) counts for that file.always, or the form chosen → § 2 to § 4. never, or the file chosen → the developer edits the file; the
plugin stays out of the way.What the hooks refuse, so you don't run into it: ending the turn until the dialog is answered, or until the file's
forms/<id> row (whose file is the questions file) was written by ArtifactData, from data or a file_path and a message of yours carries
<artifact url>#<id>; an AskUserQuestion with that link inside it (send the link in a message of its own, before
the ask, and write nothing after an ask); aidlc engine orchestrate next|continue|report for a stage whose form was
opened while its file still has empty [Answer]: tags; recording the preference from Bash or writing its files by
hand. /question-forms:release clears the guard for the session. A turn the hook has held three times is let through
with a note.
Artifact → action: "list" → the artifact titled AI-DLC question forms. If the
developer has none, publish question-form.html from this skill's directory once:
capabilities: {db: {}, user: {}}, icon: "form", description "Fill a stage's AI-DLC questions
file in a form; Claude copies the saved answers word for word into the file." Reuse its URL for
every form from then on. After a plugin update, republish the page from this file to the same URL
once, with the same capabilities: the rows stay. (user keeps each viewer's "new since you
looked" marks with their account; without it they stay in that browser.)
As soon as the questions file is written, one ArtifactData batch (no if_version
on new documents):
forms/<id> — {title, stage, unit?, file, status: "open", createdAt}; id is [a-z0-9._-]+,
<intent>-<stage-slug> (a unit's file adds -<unit>). title says what the page is:
Unit <unit>: <Stage name> questions for a unit's file (unit is the Unit id as written, e.g.
u2-accounts, also stored as unit), <Stage name> questions otherwise; the stage name is the
one the engine gives the stage (stage), never typed from memory. file is the repo-relative
path. The page's heading, tab and list row show this title.forms/<id>/questions/<qid> per question — {n, text, ctx?, kind: "single"|"multi", options: [{k, t}], proposed?: {k, why}, hint?}, copied from the file as written: the
heading text, the context, the option letters and labels, the **Proposed:** line as
proposed. Leave X. Other out; the page adds it. kind: "multi" when the question says
select all that apply.kind: "text" — {n, text, ctx?, kind: "text", hint?, proposed?: {t}}: only a text field, no Other. Never invent options to fill the space; a
question whose honest answer is free text is a text question. proposed.t is a suggested
answer the developer can take with one press.ctx keeps the questions file's paragraphs and bullet lists, written in the page's Markdown
subset (the template's header comment): blocks separated by a blank line (\n\n); a list is
a block of - lines only, each with a bold lead-in; inside both, inline `code` and
**bold**. A sentence that introduces a list is its own block, with a blank line before the
list. Never •, – or numbered items and never indented sub-bullets: the page renders no
other list, so they show as plain lines or collapse into one level. Never flatten a list into
one paragraph. A long context is grouped under short bold lead-ins, one paragraph or
bullet each. text, option texts, hint and proposed take the inline subset only.Put the link <artifact url>#<id> beside the file path in the message that presents the
questions. Nothing is pre-selected (a board's cards are the one exception, § 5); a proposal is shown apart and adopted only by the developer's
press; the engine's own mode question is unchanged, and answers from the form count as the
developer editing the file.
The page has a sticky bar (filters for unanswered and for new or changed questions, the answered count, save state, Done, and a chip per question that jumps to it), tooltips on ids, terms and badges, and links. None of it needs extra rows; these optional fields make it better:
refs: [{label, tip, target}] on a question or card — what it refers to: another question
(target: "#Q3", a live link), a page (https://…), or a source the page does not hold
(path:<repo path>, or any other text such as story:US2.1): that one is still a link, its
tip is all the developer gets, and a press says the source isn't in the form. tip is plain
words ("The story about guests filtering dishes by diet"), never just the id again.terms: {"<word>": "<plain meaning>"} on the form — words and abbreviations that get a
tooltip wherever they appear. The page knows common ones (AC, API, CI, MVP, NFR, PR, SSO, UI …);
add the project's own (a Unit name, a domain word).revNote on a question — one line on why a follow-up was added or a question changed.ids on the form — what every id in the form's text is, from the shared id map (below).records: "https://github.com/<owner>/<repo>/blob/<branch>/" on the form, when the repository is
on a code host — refs with path: targets, file paths in `code` and the questions file
then open there. Leave it out for a repository with no web address. Ids don't use it: they keep
the shared tooltip.Ids: the ids map. Every id in the page's text (US1.1, AC1.1.2, FR1.4, NFR3, BR1.2,
Q4, U31, C2, E7, ADR-009, R-01 and every kind the project's documents define) is a link
with a tooltip, found by the shared aidlc-ids piece the same way on every plugin's page
(shared/aidlc-ids/README.md in this repository is the contract). Before the batch that opens or
changes a form:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/aidlc_ids.py" sync — keeps the checkout's id map, outside
the project; fast when nothing changed.text, ctx, options, hints, proposals, a
board's cards) into one scratch file, and run python3 "${CLAUDE_PLUGIN_ROOT}/scripts/aidlc_ids.py" refs --text-file <that file> --near <the questions file>.{id: {kind, title, text, doc, line}}, as the form's ids in the same batch.
When a later change adds text with a new id, run refs again and update ids with it.The page links ids to questions and cards it shows by itself (a live jump), and shows an id no
document defines as not defined; a form opened before ids existed still gets every id linked,
as not defined. A `code` span that is a file path becomes a file link. In
text, from, plain and option labels say things in words, not by id: "Guests can't tell
which dish is vegan", not "AC 3 of US2.1"; put the id in refs.
Adding, changing or removing a question, follow-ups included, is a row write to the same form
(set a new row, update/delete an existing one with its version as if_version). The
page is live; the link does not change. Follow-ups go into the same form.
A form that was done and that you change goes back to status: "open" in the same write, so
the developer presses Done again.
One ArtifactData get of forms/<id>. answers[qid] is {k: [letters], note, at} and
status is "done" when they pressed Done. Copy each answer into its tag:
[Answer]: A · [Answer]: A, C (multi) · [Answer]: X — each followed by — <note> when
a note was written ([Answer]: B — only after the spike, [Answer]: X — <their words>).[Answer]: <their words>); an empty note keeps it
open.aidlc engine log answer for the form, naming the form id and
savedAt.When the developer has to decide items rather than answer questions — a pull request review, on both
sides (pr-review plugin: review-pr for the reviewer, address-review for the author, both followed by § 5b; self-review for the author's own AI review pass, a Fix now / Dismiss board that gets the form check of § 5b A and is not part of the flow guard) — the form is a board: one list of cards (in sections, when the form has groups), each card with one button per box it may use. Nothing is
chosen for the developer: a card has no answer until the developer presses a button. The agent's
suggestion (proposed) is marked on the card, in bold in its details, never selected. A card with its
decision folds to one line; the bar filters by Unanswered or by box, "take the suggestion" buttons press the
proposed box on the undecided cards (never a box that needs a reason or has tone warn), and Done stays
off until every card has its decision. The rest of the card is plain text that can be selected and copied.
forms/<id> adds view: "board" and boxes: [{k, t, hint?, tone?, note?, group?, sink?}]; tone is
ink, accent, warn or muted (the colour of the button once chosen). note: {required?: true, label?} makes a written reason part of the decision: the note field opens when the box is chosen, the
card stays open until it is written, and Done waits for it. The box labels are data, written by the skill
that opens the board.groups: [{k, t, hint?}] are the sections of the list, in that order; a card is in the section of its
group. With group (or sink: true) on the boxes, a card can only choose the boxes of its group, plus sink
boxes and boxes with no group — what pr-review uses for "this pull request" and "earlier, settled stages".forms/<id>/questions/<qid> per card — {n, text, ctx?, kind: "card", from?, group?, proposed?: {k, why?}, outcomes?: {<box k>: "…"}, severity?, blocking?, plain?, action?, detail?, refs?}; group
is needed only when the proposed box is a sink. text is a short title a person understands without
knowing the IDs (not "AC 3 of US2.1", but "Guests can't tell which dish is vegan"); from one
line on who asked for what; outcomes is shown inside each button: what happens when the card is decided
that way, and what it costs. severity is a short word drawn as a tag, blocking a short text ("Blocks
approval") that marks a card as holding something up and enables the bar's " all blocking" button.
A card's optional plain says what it means in plain words (shown in its details), action the
suggested action (shown in bold in the suggestion), detail the ctx without those
two (shown instead of ctx when the card has plain or action; ctx stays complete), and refs what it refers to (§ 2;
the review-findings board uses #<qid> for another card, and doc:, path: or finding: for
what the form does not hold). A card's ctx follows the § 2 rule: paragraphs and - bullets with bold lead-ins, never
one run-on paragraph; text, from, outcomes, plain, action and proposed.why take the inline subset only. On a board
without grouped boxes, outcomes also limits the boxes offered to its keys (plus the proposed box).answers[qid].k[0] is the card's box, note the developer's note. Every card has an answer
once the form is done: Done stays off until each card is decided.A review board or its follow-up form (<…>-pr<n>-review-draft, <…>-pr<n>-answer, each also with
-followup) is never followed straight by the next step. The pr-review plugin's review_flow
hook enforces this order and records each step itself from what the harness reports; nothing you
write unlocks a step, and you never write status: "done" yourself.
A. The form check. Right after the form is sent, ask one AskUserQuestion: question Look at the form and pick one from above: <artifact url>#<form id>, header Form. The first option is
Saved in the form ("I sorted the cards and pressed Done in the form."); it is the only answer
that goes on. The tool needs a second option besides its own Other: you choose it on the fly (for
example "Request changes to the form": the form itself is wrong, a missing card, a wrong box, a
wrong question), and Other carries what exactly is wrong.
Only Saved in the form goes on, and only once the form is also marked done in the database. Read
that with a filter, not by trusting the answer: ArtifactData query on collection forms with
where: [["status", "eq", "done"]] — the form must be listed. Not listed: say the form is not
marked Done and wait. Any other answer: if it says what is wrong, fix the form (the same batch
sets its status to "open") and ask the same question again; a bare choice of your second
option says nothing, so ask in chat what to change. Never continue on your own. Until both hold, the hook refuses every change the skill would
make with Answer the form to continue: <link>.
B. The summary of your understanding. After you read the saved answers back (and after every
follow-up form, which is checked the same way), show the developer, as plain text in chat, what you
understood from them: for each card its id, title and the box it ended in, any note, and what that
means for what you will do or post. Then ask AskUserQuestion: question Summary of my understanding of your answers (the key lines in the question itself, the app collapses text before
it), header Understood, options Matches and Not quite. Only Matches is recorded. Changing
a form takes the record back. The verdict gate (Approve, Merge, …) is not asked, and nothing is
posted, merged or sent, before it is recorded. The gate question names the pull request by number
(#<n>; for a Unit every linked pull request it merges or reviews, as owner/repo#<n>): the hook counts only a question that names
the round's pull request as this round's gate, so an AI-DLC gate with the same labels is left alone,
and a post, merge or review of another pull request is refused. In a round that spans two repositories a
bare number in a gh pr command is refused, also after a cd: name the repository (URL or -R owner/repo). The round ends with its last post
(the last of its merges, the Slack verdict, the re-review request); the next pull request starts its own.
C. A verdict given too early, or the flow not followed. If the developer gives a verdict before the summary was read, in chat or by choosing it, do not accept it: show the summary again and add this block after it — "The workflow requires reviewing the summary of my understanding of your answers before going further, so that you and I are sure we agree." — then ask B. If the developer asks to skip the form, to go straight to the fixes or to the verdict, say what the flow is and why: the workflow requires the agent to present the form before addressing fixes, and a verdict given before the summary was reviewed sends the summary again. Then continue the flow at the step that is open.
Approval gates and every other checkpoint (the Consolidated Summary Confirmation, Plan
Approval) stay AskUserQuestion; they never go through a form.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/preferenceTyped by the developer as `/question-forms:preference` to change how AI-DLC questions files are answered in this project: always as a form, asked every time, or never./releaseTyped by the developer as `/question-forms:release` to clear the question-forms guard for this session. The hook has already cleared it when the prompt was submitted; this skill only tells the assistant so.Other plugins' skills for the same job
npx claudepluginhub maksymskuibida/mskuibida-ai-tools --plugin question-forms