Grilling
Interview the user relentlessly about every aspect of a plan, feature, or architecture until you reach a shared understanding. Map the problem as a design tree: root decisions branch into dependent technical and product decisions.
Interview rules
- One decision at a time. Ask a single question per turn, so each answer can settle its branch before the next one opens.
- Recommend an answer. State the options, explain the trade-offs, and mark your recommendation (e.g.
(Recommended)). - Look up facts yourself; ask the user for decisions.
- Facts belong to the agent. Answer anything the codebase, configuration, git history, or documentation can tell you by searching for it.
- Decisions belong to the user. Scope, trade-offs, architecture choices, and product behavior require user intent.
- Use interactive question tools when available. If the agent environment provides an interactive choice tool, use it to present structured choices. Otherwise, use the question format below.
- Walk the branches systematically. When a decision is made, advance down that branch of the design tree. Recompute the next unblocked decision until no unresolved branches remain.
- Keep interviewing until the frontier is empty. Start implementation only after every branch is resolved and the user confirms a shared understanding.
Documentation mode (--with-docs or when requested)
When the user asks to “grill with docs”, “record ADRs”, or passes --with-docs, keep a glossary and decision records alongside the interview.
Glossary (CONTEXT.md)
Record each term, boundary, and concept in CONTEXT.md as soon as it is clarified during the interview.
- Check against existing terms. Call out conflicting or overloaded words (“You said ‘account’ - do you mean Customer or User?”).
- Keep it in domain language.
CONTEXT.mdis a ubiquitous-language glossary: definitions, boundary rules, and rejected terms. Implementation details belong in specs.
Architectural decision records (ADRs)
Create an ADR when a settled decision meets all three criteria:
- Hard to reverse - high cost to change later (e.g. database choice, communication protocol, core boundary).
- Surprising without context - future engineers would ask “why did they build it this way?”.
- Real trade-off - chosen among genuine alternatives with distinct advantages and disadvantages.
Write each ADR with context, decision, and consequences. Follow the project’s existing ADR location and numbering convention; if it has none, use docs/adr/NNNN-<slug>.md.
Question format (when no choice tool is available)
**<Decision title>**
<Context, constraints, and trade-offs>
- **Option A (Recommended):** <Details and rationale>
- **Option B:** <Details and rationale>Handoffs
- When the interview concludes and the plan is locked in, hand off to
/to-spec(to generate a spec) or/to-tickets(to decompose into implementation tasks). - In documentation mode, confirm the ADRs and the
CONTEXT.mdglossary are written before handing off.