Docs + Unknowns Grill
Overview
The core idea is:
- The map = the prompt, plan, assumptions, skills, prior context, docs excerpts, and the agent's current mental model.
- The territory = the real codebase, product constraints, APIs, docs, user taste, deployment environment, and failure modes.
- Unknowns = the gap between the map and the territory.
This skill combines docs-grounded grilling, one-question-at-a-time interviewing, domain modeling, and a four-quadrant unknowns pass.
Grilling here means few, evidence-priced questions — not relentless interrogation; not asking about a non-material topic is correct behavior. The goal is to discover the few answers that would materially change the plan (see the Material criterion below) — and to write down the shared understanding as it forms.
When to Use
Use when:
- The user says not to rush implementation, asks for a stronger plan, or wants a rigorous planning pass before orchestrating implementation work.
- The task depends on unfamiliar docs, APIs, libraries, platform behavior, or source conventions.
- The user has a vague product/design desire and likely has unknown knowns: they will know good/bad when they see it, but cannot fully specify it upfront.
- The agent is about to spawn subagents or a long-running coding agent and needs a better launch packet.
- A previous attempt failed or is stuck because the agent made assumptions, overfit to generic best practices, or missed real codebase constraints.
- Reviewing a plan/spec/PR where you need to pressure-test hidden assumptions before merge.
Do not use when:
- The task is trivial, mechanical, or already has unambiguous acceptance criteria.
- The user explicitly wants immediate execution and the risk of wrong assumptions is low.
- You can verify the right answer directly with a single tool call and no interview is needed.
Operating Mode
Stay in Explore or Plan mode until the unknowns that could change the implementation are resolved or explicitly accepted as assumptions.
The grill has a defined end: it is over when the unknowns ledger is empty — every material unknown resolved, defaulted, or explicitly accepted. Announce the remaining count as it shrinks (e.g., "2 material unknowns left") so the user can see the end approaching.
Default sequence:
- Restate the map — summarize the user's request, the intended outcome, and what is already known.
- Read the territory — inspect the relevant docs/source/tests/config before grilling. Do not rely on vibes if docs or code are available.
- Open a grill session ledger — use
templates/grill-session.md when the session is complex enough to need a durable working doc.
- Build the unknowns ledger — classify per the Unknowns Taxonomy below.
- Build the domain ledger — identify fuzzy terms, overloaded concepts, vocabulary conflicts, and context boundaries. Use
references/domain-modeling-add-on.md for CONTEXT.md / ADR rules.
- Grill one decision at a time — follow the grill procedure below.
- Propose defaults — for low-risk unknowns, choose a sensible default and label it as an assumption instead of blocking.
- Persist shared understanding — update
CONTEXT.md for crystallized domain terms and offer ADRs when the Domain Modeling criteria are met.
- Create or revise the plan — see Implementation Plan Requirements below.
- Ask for confirmation before build — do not enact the plan until the user confirms shared understanding, unless they explicitly authorize proceeding with labeled assumptions.
- During implementation — keep implementation notes for deviations and newly discovered unknowns.
- Post-implementation — produce an explainer and quiz/review checklist so the user understands what changed.
Unknowns Taxonomy
Use this table explicitly in the output when the task is ambiguous enough to justify it.
| Type |
Meaning |
How to expose it |
Example |
| Known knowns |
Requirements already stated or proven by docs/source |
Restate and cite |
"Use Stripe Connect; webhook endpoint already exists." |
| Known unknowns |
The user/agent knows a decision is unresolved |
Ask targeted questions or choose labeled defaults |
"Should refunds sync one-way or two-way?" |
| Unknown knowns |
The user would recognize the right result when shown, but has not verbalized the criterion |
Prototype, sketches, examples, references |
"This dashboard feels too enterprise; make it more operator-like." |
| Unknown unknowns |
Constraints or possibilities nobody has considered yet |
Blindspot pass over docs/source/tests/internet; ask experts; search prior art |
"The API rate limit makes this sync architecture impossible." |
Docs-Grounded Grill Procedure
1. Gather evidence first
Before asking the user to decide, inspect available ground truth:
- Official docs for libraries/platforms/APIs.
- Local source files, routes, models, schemas, migrations, tests, and config.
- Existing project conventions and similar implementations.
- Error logs, CI failures, issue comments, PR diffs, or previous implementation notes.
- Reference implementations the user points to, even if in another language.
Fetch missing-but-retrievable docs; if docs cannot be accessed, say so and mark the claim as unverified.
2. Convert evidence into pressure-test questions
Good grill questions have all three properties:
- Material — the answer could change architecture, scope, UX, data model, security, permissions, or acceptance criteria.
- Grounded — the question points to docs/source behavior or a concrete uncertainty, not generic preference fishing.
- Answerable — the user can choose from options, approve a default, or supply a reference.
Bad grill questions:
- Obvious preferences that a competent agent can default.
- Exhaustive questionnaires before any research.
- Asking the user to answer things the code/docs can answer.
- Asking the user to verbalize taste they can only recognize when shown ("what does modern mean to you?") — route those to prototypes and references instead.
- Open-ended "anything else?" questions with no context.
3. Ask one material question at a time when blocked
If an answer is required to proceed, ask one question, explain why it matters, and give a recommended default. Walk the design tree branch-by-branch — do not dump the whole tree on the user at once.
Template:
Blocking question: <question>
Why it matters: <what changes if answer A vs B>
Evidence: <doc/source/test/reference citation>
Recommended answer: <default + rationale>
If you don't care: I'll proceed with <default>.
If multiple questions are useful but not blocking, keep them in the grill queue and ask the next unresolved material decision first.
Budget and exit rules:
- Default budget: ~5 blocking questions per session. Going beyond it requires asking the user whether to continue.
- Fatigue valve: if the user's answers turn short or impatient (one-word replies, "just pick"), stop interviewing — convert the remaining unknowns to labeled defaults and present them as one batch for veto.
- Once no blocking questions remain, do not keep asking one at a time: present the residual low-risk unknowns as a single assumptions list for veto.
Domain Modeling: Shared Language and ADRs
Grilling must also maintain shared language. During the grill, challenge fuzzy or overloaded terms immediately, compare the user's terms against existing CONTEXT.md, code identifiers, docs, and product copy, and update CONTEXT.md when a term crystallizes (glossary only — no plans, scratchpads, or ADR content).
Offer an ADR only when the decision is (1) hard to reverse, (2) surprising without context, and (3) the result of a real trade-off; otherwise record it in the session/implementation notes. See references/domain-modeling-add-on.md for file layout, formats, and examples.
Finding Unknown Unknowns: Blindspot Pass
Run a blindspot pass when the user is entering an unfamiliar domain, unfamiliar part of the codebase, or high-stakes integration: search the relevant docs/source/tests — including documented limits and known failure modes of load-bearing dependencies — for unknown unknowns that could materially change the plan, explain them in plain language, rank by implementation risk, and suggest how to resolve each one cheaply.
Output shape:
## Blindspot Pass
### Highest-risk unknown unknowns
1. <unknown>
- Why it matters:
- Evidence:
- Cheap resolution:
- Decision owner: user / agent / docs / prototype
### Likely safe assumptions
- <assumption> — why safe, how to verify later
### Questions worth asking now
1. <one material question>
Unknown Knowns: Brainstorms, Prototypes, and References
When the user will recognize the right answer visually or behaviorally but cannot fully specify it:
- Build cheap prototypes before wiring real systems — e.g., a single-file mock with fake data showing 3 distinct directions.
- Offer multiple directions with meaningful contrast, not tiny variations.
- Ask the user to react to examples, screenshots, demos, or reference source — e.g., 2-3 similar in-repo modules plus one external reference, then ask which behavior to match.
- Capture the user's reactions as explicit criteria — and when quality can't be checked by a test, distill them into a short rubric that becomes the verification gate.
Implementation Plan Requirements
When producing the plan, lead with the decisions most likely to change:
- Decision surface — data model, type interfaces, permissions, user-facing flows, API semantics, migration strategy.
- Evidence — docs/source references that justify the plan.
- Open questions — only material unknowns, ranked by risk.
- Resolved assumptions — low-risk defaults the agent will use unless corrected.
- Prototype/reference artifacts — links or paths if relevant.
- Implementation steps — bite-sized, ordered, with verification gates.
- Deviation policy — what the implementer should do if the territory contradicts the map.
During Implementation: Notes and Deviations
For complex work, create a temporary implementation notes file such as implementation-notes.md or include an equivalent section in the final report. Use templates/implementation-notes.md for the minimum sections: plan snapshot, decisions made, deviations, new unknowns, and verification.
Default deviation policy:
- If the issue is low-risk and local, choose the conservative option, log it, and continue.
- If the issue changes architecture, data migration, security, cost, or user-facing behavior, stop and ask.
- If docs contradict the plan, trust the docs/source over the original map and update the plan.
Post-Implementation: Explain, Pitch, Quiz
After implementation, help the user and reviewers understand the territory discovered during the work.
Deliver:
- What changed and why.
- Which unknowns were resolved.
- Which assumptions remain.
- Docs/source evidence for important behavior.
- Verification results from real commands/tests.
- A short quiz/checklist if the user needs to understand before merge — every quiz item must be answerable from the report itself.
Subagent / Coding-Agent Launch Packet
Before spawning a subagent or external coding agent, prepare a launch packet from templates/launch-packet.md. It covers: goal, map, territory to inspect first, the four unknowns categories, deviation policy, and verification gates.
If using multiple subagents, split roles:
- Docs scout — reads official docs/source and returns constraints.
- Codebase scout — maps existing patterns and tests.
- Prototype scout — creates cheap visual/API alternatives to expose unknown knowns.
- Implementer — edits only after the plan is stable enough.
- Reviewer — grills the diff against the launch packet and docs.
Calibration: Over- vs Under-Constraining
- Too specific, and the agent follows instructions even when a pivot is better. Define the goal, constraints, and stop/continue rules; leave room for implementation judgment.
- Too vague, and the agent defaults to generic best practices that may not fit the product/codebase. Provide references, docs, taste examples, and acceptance criteria.
Verification Checklist
Before moving from planning to implementation:
Before finalizing implementation:
Adapted from Matt Pocock's grilling + domain-modeling skills and Thariq's "Finding Your Unknowns" article — see README.md for full attribution.
1---2name: grill-for-unknowns3description: Use when starting or reviewing a complex implementation where the user wants an agent to interrogate the plan against docs/source evidence, surface unknown unknowns, and avoid rushing into build mode. Combines docs-grounded grilling with a map-vs-territory unknowns pass.4license: MIT5---67# Docs + Unknowns Grill89## Overview1011The core idea is:1213- **The map** = the prompt, plan, assumptions, skills, prior context, docs excerpts, and the agent's current mental model.14- **The territory** = the real codebase, product constraints, APIs, docs, user taste, deployment environment, and failure modes.15- **Unknowns** = the gap between the map and the territory.1617This skill combines docs-grounded grilling, one-question-at-a-time interviewing, domain modeling, and a four-quadrant unknowns pass.1819Grilling here means few, evidence-priced questions — not relentless interrogation; not asking about a non-material topic is correct behavior. The goal is to discover the few answers that would materially change the plan (see the **Material** criterion below) — and to write down the shared understanding as it forms.2021## When to Use2223Use when:2425- The user says not to rush implementation, asks for a stronger plan, or wants a rigorous planning pass before orchestrating implementation work.26- The task depends on unfamiliar docs, APIs, libraries, platform behavior, or source conventions.27- The user has a vague product/design desire and likely has **unknown knowns**: they will know good/bad when they see it, but cannot fully specify it upfront.28- The agent is about to spawn subagents or a long-running coding agent and needs a better launch packet.29- A previous attempt failed or is stuck because the agent made assumptions, overfit to generic best practices, or missed real codebase constraints.30- Reviewing a plan/spec/PR where you need to pressure-test hidden assumptions before merge.3132Do **not** use when:3334- The task is trivial, mechanical, or already has unambiguous acceptance criteria.35- The user explicitly wants immediate execution and the risk of wrong assumptions is low.36- You can verify the right answer directly with a single tool call and no interview is needed.3738## Operating Mode3940Stay in **Explore** or **Plan** mode until the unknowns that could change the implementation are resolved or explicitly accepted as assumptions.4142The grill has a defined end: it is over when the unknowns ledger is empty — every material unknown resolved, defaulted, or explicitly accepted. Announce the remaining count as it shrinks (e.g., "2 material unknowns left") so the user can see the end approaching.4344Default sequence:45461. **Restate the map** — summarize the user's request, the intended outcome, and what is already known.472. **Read the territory** — inspect the relevant docs/source/tests/config before grilling. Do not rely on vibes if docs or code are available.483. **Open a grill session ledger** — use `templates/grill-session.md` when the session is complex enough to need a durable working doc.494. **Build the unknowns ledger** — classify per the Unknowns Taxonomy below.505. **Build the domain ledger** — identify fuzzy terms, overloaded concepts, vocabulary conflicts, and context boundaries. Use `references/domain-modeling-add-on.md` for `CONTEXT.md` / ADR rules.516. **Grill one decision at a time** — follow the grill procedure below.527. **Propose defaults** — for low-risk unknowns, choose a sensible default and label it as an assumption instead of blocking.538. **Persist shared understanding** — update `CONTEXT.md` for crystallized domain terms and offer ADRs when the Domain Modeling criteria are met.549. **Create or revise the plan** — see Implementation Plan Requirements below.5510. **Ask for confirmation before build** — do not enact the plan until the user confirms shared understanding, unless they explicitly authorize proceeding with labeled assumptions.5611. **During implementation** — keep implementation notes for deviations and newly discovered unknowns.5712. **Post-implementation** — produce an explainer and quiz/review checklist so the user understands what changed.5859## Unknowns Taxonomy6061Use this table explicitly in the output when the task is ambiguous enough to justify it.6263| Type | Meaning | How to expose it | Example |64| --- | --- | --- | --- |65| Known knowns | Requirements already stated or proven by docs/source | Restate and cite | "Use Stripe Connect; webhook endpoint already exists." |66| Known unknowns | The user/agent knows a decision is unresolved | Ask targeted questions or choose labeled defaults | "Should refunds sync one-way or two-way?" |67| Unknown knowns | The user would recognize the right result when shown, but has not verbalized the criterion | Prototype, sketches, examples, references | "This dashboard feels too enterprise; make it more operator-like." |68| Unknown unknowns | Constraints or possibilities nobody has considered yet | Blindspot pass over docs/source/tests/internet; ask experts; search prior art | "The API rate limit makes this sync architecture impossible." |6970## Docs-Grounded Grill Procedure7172### 1. Gather evidence first7374Before asking the user to decide, inspect available ground truth:7576- Official docs for libraries/platforms/APIs.77- Local source files, routes, models, schemas, migrations, tests, and config.78- Existing project conventions and similar implementations.79- Error logs, CI failures, issue comments, PR diffs, or previous implementation notes.80- Reference implementations the user points to, even if in another language.8182Fetch missing-but-retrievable docs; if docs cannot be accessed, say so and mark the claim as unverified.8384### 2. Convert evidence into pressure-test questions8586Good grill questions have all three properties:8788- **Material** — the answer could change architecture, scope, UX, data model, security, permissions, or acceptance criteria.89- **Grounded** — the question points to docs/source behavior or a concrete uncertainty, not generic preference fishing.90- **Answerable** — the user can choose from options, approve a default, or supply a reference.9192Bad grill questions:9394- Obvious preferences that a competent agent can default.95- Exhaustive questionnaires before any research.96- Asking the user to answer things the code/docs can answer.97- Asking the user to verbalize taste they can only recognize when shown ("what does modern mean to you?") — route those to prototypes and references instead.98- Open-ended "anything else?" questions with no context.99100### 3. Ask one material question at a time when blocked101102If an answer is required to proceed, ask one question, explain why it matters, and give a recommended default. Walk the design tree branch-by-branch — do not dump the whole tree on the user at once.103104Template:105106```md107Blocking question: <question>108Why it matters: <what changes if answer A vs B>109Evidence: <doc/source/test/reference citation>110Recommended answer: <default + rationale>111If you don't care: I'll proceed with <default>.112```113114If multiple questions are useful but not blocking, keep them in the grill queue and ask the next unresolved material decision first.115116Budget and exit rules:117118- Default budget: ~5 blocking questions per session. Going beyond it requires asking the user whether to continue.119- **Fatigue valve**: if the user's answers turn short or impatient (one-word replies, "just pick"), stop interviewing — convert the remaining unknowns to labeled defaults and present them as one batch for veto.120- Once no blocking questions remain, do not keep asking one at a time: present the residual low-risk unknowns as a single assumptions list for veto.121122## Domain Modeling: Shared Language and ADRs123124Grilling must also maintain shared language. During the grill, challenge fuzzy or overloaded terms immediately, compare the user's terms against existing `CONTEXT.md`, code identifiers, docs, and product copy, and update `CONTEXT.md` when a term crystallizes (glossary only — no plans, scratchpads, or ADR content).125126Offer an ADR only when the decision is (1) hard to reverse, (2) surprising without context, and (3) the result of a real trade-off; otherwise record it in the session/implementation notes. See `references/domain-modeling-add-on.md` for file layout, formats, and examples.127128## Finding Unknown Unknowns: Blindspot Pass129130Run a blindspot pass when the user is entering an unfamiliar domain, unfamiliar part of the codebase, or high-stakes integration: search the relevant docs/source/tests — including documented limits and known failure modes of load-bearing dependencies — for unknown unknowns that could materially change the plan, explain them in plain language, rank by implementation risk, and suggest how to resolve each one cheaply.131132Output shape:133134```md135## Blindspot Pass136137### Highest-risk unknown unknowns1381. <unknown>139 - Why it matters:140 - Evidence:141 - Cheap resolution:142 - Decision owner: user / agent / docs / prototype143144### Likely safe assumptions145- <assumption> — why safe, how to verify later146147### Questions worth asking now1481. <one material question>149```150151## Unknown Knowns: Brainstorms, Prototypes, and References152153When the user will recognize the right answer visually or behaviorally but cannot fully specify it:154155- Build cheap prototypes before wiring real systems — e.g., a single-file mock with fake data showing 3 distinct directions.156- Offer multiple directions with meaningful contrast, not tiny variations.157- Ask the user to react to examples, screenshots, demos, or reference source — e.g., 2-3 similar in-repo modules plus one external reference, then ask which behavior to match.158- Capture the user's reactions as explicit criteria — and when quality can't be checked by a test, distill them into a short rubric that becomes the verification gate.159160## Implementation Plan Requirements161162When producing the plan, lead with the decisions most likely to change:1631641. **Decision surface** — data model, type interfaces, permissions, user-facing flows, API semantics, migration strategy.1652. **Evidence** — docs/source references that justify the plan.1663. **Open questions** — only material unknowns, ranked by risk.1674. **Resolved assumptions** — low-risk defaults the agent will use unless corrected.1685. **Prototype/reference artifacts** — links or paths if relevant.1696. **Implementation steps** — bite-sized, ordered, with verification gates.1707. **Deviation policy** — what the implementer should do if the territory contradicts the map.171172## During Implementation: Notes and Deviations173174For complex work, create a temporary implementation notes file such as `implementation-notes.md` or include an equivalent section in the final report. Use `templates/implementation-notes.md` for the minimum sections: plan snapshot, decisions made, deviations, new unknowns, and verification.175176Default deviation policy:177178- If the issue is low-risk and local, choose the conservative option, log it, and continue.179- If the issue changes architecture, data migration, security, cost, or user-facing behavior, stop and ask.180- If docs contradict the plan, trust the docs/source over the original map and update the plan.181182## Post-Implementation: Explain, Pitch, Quiz183184After implementation, help the user and reviewers understand the territory discovered during the work.185186Deliver:187188- What changed and why.189- Which unknowns were resolved.190- Which assumptions remain.191- Docs/source evidence for important behavior.192- Verification results from real commands/tests.193- A short quiz/checklist if the user needs to understand before merge — every quiz item must be answerable from the report itself.194195## Subagent / Coding-Agent Launch Packet196197Before spawning a subagent or external coding agent, prepare a launch packet from `templates/launch-packet.md`. It covers: goal, map, territory to inspect first, the four unknowns categories, deviation policy, and verification gates.198199If using multiple subagents, split roles:200201- **Docs scout** — reads official docs/source and returns constraints.202- **Codebase scout** — maps existing patterns and tests.203- **Prototype scout** — creates cheap visual/API alternatives to expose unknown knowns.204- **Implementer** — edits only after the plan is stable enough.205- **Reviewer** — grills the diff against the launch packet and docs.206207## Calibration: Over- vs Under-Constraining208209- **Too specific**, and the agent follows instructions even when a pivot is better. Define the goal, constraints, and stop/continue rules; leave room for implementation judgment.210- **Too vague**, and the agent defaults to generic best practices that may not fit the product/codebase. Provide references, docs, taste examples, and acceptance criteria.211212## Verification Checklist213214Before moving from planning to implementation:215216- [ ] Relevant docs/source/tests/config were inspected, or the lack of access is stated.217- [ ] Known knowns, known unknowns, unknown knowns, and suspected unknown unknowns are listed.218- [ ] Blocking questions are material and include recommended defaults.219- [ ] Low-risk unknowns are converted into labeled assumptions rather than blocking progress.220- [ ] The plan leads with likely-to-change decisions, not mechanical steps.221- [ ] Deviation policy is explicit for long-running/subagent work.222- [ ] Verification gates are defined before implementation begins.223224Before finalizing implementation:225226- [ ] Deviations and newly discovered unknowns were logged.227- [ ] Tests/checks/manual verification were actually run and reported.228- [ ] Remaining assumptions are visible.229- [ ] The user/reviewer gets an explainer sufficient to understand the change.230231---232233Adapted from Matt Pocock's `grilling` + `domain-modeling` skills and Thariq's "Finding Your Unknowns" article — see `README.md` for full attribution.