Interview Protocol
Every doc-generation prefix (idea:, prd:, srs:, user-story:, roadmap:, tasks:, acceptance:, deps:) runs a structured interview before writing anything.
Flow
- Read upstream docs in
../nepwalk-docs/docs/management/mvp/v<N>/. - Read inline context (text after the colon).
- Identify gaps — every template section without a real, specific answer.
- Interview the user via
AskUserQuestion(or equivalent) — 1–4 questions per round, grouped by template section. - Summarize all answers — show the user a recap.
- User confirms — yes / edit / restart.
- Write the doc to the correct version folder with
status: draft.
Rules
- No fixed round limit. Keep asking until every section has a real answer. Follow up on vague answers.
- Inline context pre-fills, never replaces. "prd: focus on offline mode" pre-fills the scope section but the interview still covers users, success metrics, constraints, etc.
- Save progress. Answers go to
state/drafts/<doc>_interview.jsonso the session can resume. - Resume on re-run. If a prior interview exists for the same doc, load it and continue from where it stopped. Use
<doc>: remainingto ask only the open questions. - Challenge first. If an answer looks wrong or risky, counter with reasoning and suggest an alternative.
Question style
- One topic per question. Group related questions in one round (max 4).
- Offer options when reasonable (use
AskUserQuestionmulti-choice form). Always allow free text. - Never ask about things derivable from upstream docs. Read first, ask second.
- Convert relative dates to absolute (
Thursday→2026-03-05) before saving answers.
When to skip the interview
Only when explicitly asked: <prefix>: build builds the doc from the existing saved answers without re-asking. Used after a complete interview confirmed by the user.