deep-interview (enhancer wrapper)
Use Interview Kernel rules, state model, synthesis, and approval gate.
This wrapper is optimized for enhancing what already exists (draft specs, PRDs, ADRs, tickets, notes) by forcing missing decisions and surfacing hidden risks.
Table of Contents
Spec-driven workflow (recommended)
Interview → update spec/doc → (after approval) run planning/execution as a separate step/session.
Standards snapshot (March 2026)
- Default to Delta mode when a draft artifact already exists.
- Focus on the missing decisions, contradictions, and failure modes most likely to break delivery later.
- Preserve source documents and append insight rather than rewriting their intent unless the user explicitly asks for a deeper rewrite.
- End with an approval gate and a concrete next step rather than an open-ended brainstorm.
User profile alignment (Jamie)
Follow ~/.codex/USER_PROFILE.md: single-threaded, explicit steps, low cognitive load. Always use multiple-choice questions (3–5 options, include a recommended default) and map any free-text reply to the closest option with confirmation.
Philosophy + guiding questions
Deep interview = maximize decision quality with minimal churn. Focus on the gaps that can break the plan later.
Guiding questions:
- What decision will this answer unlock?
- What is the highest-risk unknown for v1?
- What would make this spec fail in the real world?
- What evidence would make us confident to proceed?
When to use
- Use when a draft spec, PRD, ADR, ticket, or notes exist but gaps remain.
- Use when you need delta-mode enhancement rather than a greenfield interview.
- Use when a file path is provided and you must update the source artifact.
Deliverables
- an updated source doc with
Delta Insights or Interview Insights when file input is provided
- a structured summary with decisions, assumptions, risks, and next steps when the input is a topic
- an explicit approval gate before planning or implementation work proceeds
Failure mode
If there is no meaningful artifact to deepen and the user really needs a front-door discovery interview, route to interview-me instead of pretending this is a delta enhancement task.
Variation
- Vary prompts by artifact type (PRD vs ADR vs ticket vs notes) and maturity.
- Avoid repeating identical option sets; tailor tradeoffs to context.
Detecting input type
Given $ARGUMENTS, determine what the user is trying to deepen:
- If
$ARGUMENTS looks like a file path (contains / or an extension like .md, .txt, .rst, .adoc):
- Read the file (discovery-only).
- Interview about its contents (Delta mode).
- At the end, update the same file in-place:
- Preserve structure.
- Append a section:
## Delta Insights (preferred) or ## Interview Insights.
- If
$ARGUMENTS is a topic/description:
- Interview about the concept.
- At the end, produce a comprehensive summary + decisions + open questions.
- Optionally propose a target file name for the spec (but do not create it unless asked).
Safety for code files
If the input is a code file (.ts/.js/.py/...), treat it as context-only by default:
- Do not inject prose into code.
- Write insights into a sidecar doc (e.g.
docs/<topic>-insights.md) unless the user explicitly requests code edits.
Default mode + intent
- Mode:
deep
- Intent: start
DISCOVER (extract facts), then DECIDE aggressively (force tradeoffs)
Interview focus (what “deep” means here)
Compared to /interview-me, this wrapper prioritizes:
- Missing scope boundaries and non-goals
- Hidden assumptions and contradictions
- Failure modes + “how we detect/roll back”
- Integration points and interface contracts
- Non-functional requirements (security, reliability, perf, cost)
- Rollout/migration/observability
- “What could go wrong?” and “what would make this fail?”
Round-by-round process
Follow kernel rules (default: one question per turn). If the user says batch, you may ask up to 3 questions in one turn with a reply key.
Each round:
- Summarize what the doc already claims (1–3 bullets).
- Identify the top gap using the kernel prioritization rubric.
- Ask the next high-leverage question using
default_mode_request_user_input (preferred).
- Update Interview Log + Captured answer.
- Continue until stop conditions or user says
done.
Completion
When complete:
For file input
- Summarize key decisions made during the interview.
- Update the original file:
- Add
## Delta Insights near the end.
- Include: Decisions table, Assumptions register, Risks/rollout/observability, Open questions.
- Preserve original structure and intent.
- End with the kernel approval gate.
For topic input
- Provide:
- One-sentence pitch
- Decisions table
- Assumptions register
- Draft acceptance criteria
- Risks/rollout/observability
- Open questions
- Next step (single action)
Required inputs
$ARGUMENTS (file path or topic) + any relevant links.
Constraints
- Redact secrets/PII by default.
- Avoid destructive operations without explicit user direction.
- Check against current global instructions in
~/.codex/AGENTS.md and linked standards docs.
- Do not inject prose into code files unless the user explicitly asks for that behavior.
Validation
- Fail fast: stop at the first failed gate and correct before proceeding.
- Ensure a Delta/Interview Insights section is added for file inputs.
- Ensure decisions + assumptions are captured before approval.
- Ensure the final output names the next highest-value unresolved question if one remains.
Anti-patterns
- Do not inject prose into code files without explicit user approval.
- Do not overwrite the source doc’s structure; append insights instead.
References
references/contract.yaml (output contract)
references/evals.yaml (quality checks)
Examples
- "Deepen this draft PRD in docs/feature-spec.md."
- "Interrogate these notes and append Delta Insights to the same file."
Procedure
- Detect input type (file vs topic).
- Read source material if a file is provided and pre-fill the interview log in Delta mode.
- Run the deep interview loop using the highest-leverage missing decision each round.
- Synthesize outputs and update the doc if applicable.
- Present the approval gate and handoff to planning or execution.
Topic
$ARGUMENTS
Philosophy and tradeoffs
- Use this skill when consistent decision-making matters more than one-off execution because project context should drive the approach.
- Principle and mindset: prioritize tradeoffs and constraints over rigid checklists; understand why each step exists.
- Ask this to keep outcomes robust: Why is this the right default, and what could change this outcome?
- How do we adapt if constraints shift?
- What evidence is needed before choosing one path over another?
Anti-patterns and caveats
- Avoid applying this playbook generically without checking repository-specific context.
- NEVER skip required validation gates when behavior changes.
- DO NOT use this skill as a rigid replacement for engineering judgment.
- DON'T ignore warnings or assume one pattern fits all repos.
- Common pitfall: treating anti-patterns as optional.
- Incorrect assumptions here can lead to fragile guidance.
- Warning: wrong sequencing can create avoidable regressions.
Variation and adaptation
- Vary the workflow by team size, risk, and deployment target.
- Use different strategies for small, medium, and large changes.
- Adapt recommendations to the specific environment and avoid repetitive templates.
- Avoid generic or cookie-cutter responses; craft context-specific alternatives.
- Keep outputs diverse and not repetitive.
- Converge on a custom path only after evidence review.
- Different constraints should produce different, non-generic recommendations.
Empowering execution style
- Be capable of exploring multiple options and enabling the team to make safe decisions.
- Unlock confidence by explaining options and tradeoffs clearly.
- Feel free to be creative while staying rigorous and precise.
- Push boundaries with practical alternatives when simple recipes fail.
- Enable outcomes-oriented problem solving.
See Also
| Skill |
When to use together |
| [[interview-me]] |
Use for fresh requirements discovery; use this skill for deepening existing drafts |
| [[brainstorming]] |
Use before this skill when the topic is still too vague for delta-mode enhancement |
| [[product-spec]] |
Hand the completed insights to product-spec for structured PRD/UX/arch artifacts |
| [[architecture-interview]] |
Use when deep-interview surfaces a major architectural tradeoff requiring structured review |
Topic map: [[product-strategy]]
Decision feedback protocol
Decision feedback protocol (required):
- If post-run feedback capture is enabled for this runtime, emit a non-blocking
post_run_feedback event via request_user_input after result delivery.
- Capture:
decision (accepted|partial|rejected|deferred), outcome (good|neutral|bad|unknown), and confidence (high|medium|low).
- Persist with:
python3 utilities/skill-builder/scripts/record_skill_feedback.py --skill-path <path/to/SKILL.md> --decision <...> --outcome <...> --confidence <...> --notes "...".
- The recorder tags
subject (for example ui, code_review, backend, security) for cross-domain quality analytics.
Legacy mode: bug-track
Use this mode when the user brings a bug report, ticket, or prod symptom that lacks a reliable repro or a clear next diagnostic step.
bug-track optimizes for
- reliable repro or a plan to synthesize one;
- evidence-driven narrowing instead of guessing;
- the smallest next diagnostic experiment with clear signal value.
bug-track interaction rules
- stay in Delta mode when a bug report or incident ticket already exists;
- ask only for missing facts needed to confirm repro, severity, environment, or regression window;
- avoid broad log or data dumps without a concrete hypothesis;
- switch from DISCOVER to DECIDE only when choosing the next experiment.
bug-track spine
Ask in order when needed:
- expected versus actual behavior;
- severity and workaround status;
- minimal repro steps;
- frequency;
- environment;
- evidence available;
- regression window;
- recent changes;
- minimal repro artifact;
- next diagnostic step.
bug-track deliverable add-on
Append a compact triage addendum covering:
- repro status;
- suspected layer;
- top hypotheses;
- smallest next experiment;
- instrumentation needed;
- rollback or mitigation options.
Gotchas
- None yet. Capture recurring failures here as symptom -> cause -> do instead -> check.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: deep-interview3description: Deepen an existing doc or topic through a structured gap-filling interview that adds missing assumptions, edge cases, and approval gates. Use when refining PRDs, ADRs, tickets, notes, or draft specs before planning or execution. Use when this capability is needed.4---56# deep-interview (enhancer wrapper)78Use **Interview Kernel** rules, state model, synthesis, and approval gate.9This wrapper is optimized for **enhancing what already exists** (draft specs, PRDs, ADRs, tickets, notes) by forcing missing decisions and surfacing hidden risks.1011## Table of Contents12- [Scope and triggers](#scope-and-triggers)13- [Required inputs](#required-inputs)14- [Deliverables](#deliverables)15- [Failure mode](#failure-mode)16- [Standards snapshot](#standards-snapshot-march-2026)17- [Detecting input type](#detecting-input-type)18- [Interview focus](#interview-focus-what-deep-means-here)19- [Round-by-round process](#round-by-round-process)20- [Completion](#completion)21- [Validation](#validation)22- [Anti-patterns](#anti-patterns)23- [Decision feedback protocol](#decision-feedback-protocol)2425## Spec-driven workflow (recommended)2627Interview → update spec/doc → (after approval) run planning/execution as a separate step/session.2829## Standards snapshot (March 2026)30- Default to Delta mode when a draft artifact already exists.31- Focus on the missing decisions, contradictions, and failure modes most likely to break delivery later.32- Preserve source documents and append insight rather than rewriting their intent unless the user explicitly asks for a deeper rewrite.33- End with an approval gate and a concrete next step rather than an open-ended brainstorm.3435## User profile alignment (Jamie)3637Follow `~/.codex/USER_PROFILE.md`: single-threaded, explicit steps, low cognitive load. Always use multiple-choice questions (3–5 options, include a recommended default) and map any free-text reply to the closest option with confirmation.3839## Philosophy + guiding questions4041Deep interview = maximize decision quality with minimal churn. Focus on the gaps that can break the plan later.4243Guiding questions:44- What decision will this answer unlock?45- What is the highest-risk unknown for v1?46- What would make this spec fail in the real world?47- What evidence would make us confident to proceed?4849## When to use5051- Use when a draft spec, PRD, ADR, ticket, or notes exist but gaps remain.52- Use when you need delta-mode enhancement rather than a greenfield interview.53- Use when a file path is provided and you must update the source artifact.5455## Deliverables56- an updated source doc with `Delta Insights` or `Interview Insights` when file input is provided57- a structured summary with decisions, assumptions, risks, and next steps when the input is a topic58- an explicit approval gate before planning or implementation work proceeds5960## Failure mode61If there is no meaningful artifact to deepen and the user really needs a front-door discovery interview, route to `interview-me` instead of pretending this is a delta enhancement task.6263## Variation6465- Vary prompts by artifact type (PRD vs ADR vs ticket vs notes) and maturity.66- Avoid repeating identical option sets; tailor tradeoffs to context.6768## Detecting input type6970Given `$ARGUMENTS`, determine what the user is trying to deepen:71721) **If `$ARGUMENTS` looks like a file path** (contains `/` or an extension like `.md`, `.txt`, `.rst`, `.adoc`):73 - Read the file (discovery-only).74 - Interview about its contents (Delta mode).75 - At the end, update the same file in-place:76 - Preserve structure.77 - Append a section: `## Delta Insights` (preferred) or `## Interview Insights`.782) **If `$ARGUMENTS` is a topic/description**:79 - Interview about the concept.80 - At the end, produce a comprehensive summary + decisions + open questions.81 - Optionally propose a target file name for the spec (but do not create it unless asked).8283### Safety for code files84If the input is a code file (`.ts/.js/.py/...`), treat it as **context-only** by default:85- Do not inject prose into code.86- Write insights into a sidecar doc (e.g. `docs/<topic>-insights.md`) unless the user explicitly requests code edits.8788## Default mode + intent8990- Mode: `deep`91- Intent: start `DISCOVER` (extract facts), then `DECIDE` aggressively (force tradeoffs)9293## Interview focus (what “deep” means here)9495Compared to `/interview-me`, this wrapper prioritizes:9697- Missing scope boundaries and non-goals98- Hidden assumptions and contradictions99- Failure modes + “how we detect/roll back”100- Integration points and interface contracts101- Non-functional requirements (security, reliability, perf, cost)102- Rollout/migration/observability103- “What could go wrong?” and “what would make this fail?”104105## Round-by-round process106107Follow kernel rules (default: one question per turn). If the user says `batch`, you may ask up to 3 questions in one turn with a reply key.108109Each round:1101) Summarize what the doc already claims (1–3 bullets).1112) Identify the top gap using the kernel prioritization rubric.1123) Ask the next high-leverage question using `default_mode_request_user_input` (preferred).1134) Update Interview Log + Captured answer.1145) Continue until stop conditions or user says `done`.115116## Completion117118When complete:119120### For file input121- Summarize key decisions made during the interview.122- Update the original file:123 - Add `## Delta Insights` near the end.124 - Include: Decisions table, Assumptions register, Risks/rollout/observability, Open questions.125- Preserve original structure and intent.126- End with the kernel approval gate.127128### For topic input129- Provide:130 - One-sentence pitch131 - Decisions table132 - Assumptions register133 - Draft acceptance criteria134 - Risks/rollout/observability135 - Open questions136 - Next step (single action)137138---139140## Required inputs141- `$ARGUMENTS` (file path or topic) + any relevant links.142143## Constraints144- Redact secrets/PII by default.145- Avoid destructive operations without explicit user direction.146- Check against current global instructions in `~/.codex/AGENTS.md` and linked standards docs.147- Do not inject prose into code files unless the user explicitly asks for that behavior.148149## Validation150151- Fail fast: stop at the first failed gate and correct before proceeding.152- Ensure a Delta/Interview Insights section is added for file inputs.153- Ensure decisions + assumptions are captured before approval.154- Ensure the final output names the next highest-value unresolved question if one remains.155156## Anti-patterns157158- Do not inject prose into code files without explicit user approval.159- Do not overwrite the source doc’s structure; append insights instead.160161## References162- `references/contract.yaml` (output contract)163- `references/evals.yaml` (quality checks)164165## Examples166167- "Deepen this draft PRD in docs/feature-spec.md."168- "Interrogate these notes and append Delta Insights to the same file."169170## Procedure1711. Detect input type (file vs topic).1722. Read source material if a file is provided and pre-fill the interview log in Delta mode.1733. Run the deep interview loop using the highest-leverage missing decision each round.1744. Synthesize outputs and update the doc if applicable.1755. Present the approval gate and handoff to planning or execution.176177Topic178$ARGUMENTS179---180181<!-- skill-score-boost-v1 -->182## Philosophy and tradeoffs183- Use this skill when consistent decision-making matters more than one-off execution because project context should drive the approach.184- Principle and mindset: prioritize tradeoffs and constraints over rigid checklists; understand why each step exists.185- Ask this to keep outcomes robust: Why is this the right default, and what could change this outcome?186- How do we adapt if constraints shift?187- What evidence is needed before choosing one path over another?188189## Anti-patterns and caveats190- Avoid applying this playbook generically without checking repository-specific context.191- **NEVER** skip required validation gates when behavior changes.192- **DO NOT** use this skill as a rigid replacement for engineering judgment.193- **DON'T** ignore warnings or assume one pattern fits all repos.194- Common pitfall: treating anti-patterns as optional.195- Incorrect assumptions here can lead to fragile guidance.196- Warning: wrong sequencing can create avoidable regressions.197198## Variation and adaptation199- Vary the workflow by team size, risk, and deployment target.200- Use different strategies for small, medium, and large changes.201- Adapt recommendations to the specific environment and avoid repetitive templates.202- Avoid generic or cookie-cutter responses; craft context-specific alternatives.203- Keep outputs diverse and not repetitive.204- Converge on a custom path only after evidence review.205- Different constraints should produce different, non-generic recommendations.206207## Empowering execution style208- Be capable of exploring multiple options and enabling the team to make safe decisions.209- Unlock confidence by explaining options and tradeoffs clearly.210- Feel free to be creative while staying rigorous and precise.211- Push boundaries with practical alternatives when simple recipes fail.212- Enable outcomes-oriented problem solving.213214## See Also215216| Skill | When to use together |217|---|---|218| [[interview-me]] | Use for fresh requirements discovery; use this skill for deepening existing drafts |219| [[brainstorming]] | Use before this skill when the topic is still too vague for delta-mode enhancement |220| [[product-spec]] | Hand the completed insights to product-spec for structured PRD/UX/arch artifacts |221| [[architecture-interview]] | Use when deep-interview surfaces a major architectural tradeoff requiring structured review |222223**Topic map:** [[product-strategy]]224225## Decision feedback protocol226<!-- decision-feedback-protocol:v2 -->227**Decision feedback protocol (required):**228- If post-run feedback capture is enabled for this runtime, emit a non-blocking `post_run_feedback` event via `request_user_input` after result delivery.229- Capture: `decision` (`accepted|partial|rejected|deferred`), `outcome` (`good|neutral|bad|unknown`), and `confidence` (`high|medium|low`).230- Persist with: `python3 utilities/skill-builder/scripts/record_skill_feedback.py --skill-path <path/to/SKILL.md> --decision <...> --outcome <...> --confidence <...> --notes "..."`.231- The recorder tags `subject` (for example `ui`, `code_review`, `backend`, `security`) for cross-domain quality analytics.232<!-- /decision-feedback-protocol -->233234## Legacy mode: bug-track235Use this mode when the user brings a bug report, ticket, or prod symptom that lacks a reliable repro or a clear next diagnostic step.236237### bug-track optimizes for238- reliable repro or a plan to synthesize one;239- evidence-driven narrowing instead of guessing;240- the smallest next diagnostic experiment with clear signal value.241242### bug-track interaction rules243- stay in Delta mode when a bug report or incident ticket already exists;244- ask only for missing facts needed to confirm repro, severity, environment, or regression window;245- avoid broad log or data dumps without a concrete hypothesis;246- switch from DISCOVER to DECIDE only when choosing the next experiment.247248### bug-track spine249Ask in order when needed:2501. expected versus actual behavior;2512. severity and workaround status;2523. minimal repro steps;2534. frequency;2545. environment;2556. evidence available;2567. regression window;2578. recent changes;2589. minimal repro artifact;25910. next diagnostic step.260261### bug-track deliverable add-on262Append a compact triage addendum covering:263- repro status;264- suspected layer;265- top hypotheses;266- smallest next experiment;267- instrumentation needed;268- rollback or mitigation options.269270## Gotchas271- None yet. Capture recurring failures here as symptom -> cause -> do instead -> check.272273---274> Converted and distributed by [TomeVault](https://tomevault.io/claim/jscraik) — claim your Tome and manage your conversions.275<!-- tomevault:4.0:skill_md:2026-04-13 -->