deep-interview
Socratic deep interview with mathematical ambiguity gating that turns vague ideas into execution-ready specifications before planning or implementation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Socratic deep interview with mathematical ambiguity gating that turns vague ideas into execution-ready specifications before planning or implementation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a regression-tests-first, smell-by-smell deslop/refactor workflow that preserves behavior and raises signal quality. Use when the user asks to "cleanup", "refactor", "deslop", or when follow-up code has duplicates, dead code, weak boundaries, or fallback-like slop.
Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries. Use when a user says "analyze", "investigate", "why does", "what's causing", or needs grounded cross-file explanation before any changes are proposed.
Deprecated compatibility shim for Claude advisor requests. Use `ask` with the claude backend instead.
Deprecated compatibility shim for Gemini advisor requests. Use `ask` with the gemini backend instead.
Ask a locally installed external advisor CLI (Claude or Gemini) for focused questions, reviews, brainstorming, or second opinions, and capture a reusable artifact. Use when the user wants a Claude/Gemini second opinion, "ask claude", or "ask gemini".
Strict autonomous delivery loop that runs deep-interview, ralplan, ultragoal, code-review, and ultraqa in order with automatic re-planning when gates are not clean. Use on "autopilot", "autonomous", "build me", "create me", "make me", "full auto", "handle it all", or "I want a/an…".
| name | deep-interview |
| category | planning |
| status | active |
| core | true |
| description | Socratic deep interview with mathematical ambiguity gating that turns vague ideas into execution-ready specifications before planning or implementation |
| agent_created | true |
| triggers | ["deep interview","interview me","ask me everything","don't assume","clarify requirements","ouroboros"] |
Deep Interview is an intent-first Socratic clarification loop before planning or implementation. It turns vague ideas into execution-ready specifications by asking targeted questions about why the user wants a change, how far it should go, what should stay out of scope, and what WorkBuddy may decide without confirmation.Ported from oh-my-codex
deep-interview. OMX runtime conventions ($macroinvocation,omxCLI,.omx/state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list,.workbuddy/memory).
<Use_When>
plan, team, or an execution workflow.
</Use_When><Do_Not_Use_When>
plan instead).<Why_This_Exists> Execution quality is usually bottlenecked by intent clarity, not just missing implementation detail. A single expansion pass often misses why the user wants a change, where the scope should stop, which tradeoffs are unacceptable, and which decisions still require user approval. This workflow applies Socratic pressure + quantitative ambiguity scoring so downstream work begins with an explicit, testable, intent-aligned spec. </Why_This_Exists>
<Depth_Profiles>
--quick): fast pre-spec pass; target threshold <= 0.30; max rounds 5.--standard, default): full requirement interview; target threshold <= 0.20; max rounds 12.--deep): high-rigor exploration; target threshold <= 0.15; max rounds 20.Profile max rounds is a hard cap, not a target. Do not continue only to reach a numbered round count.
If no flag is provided, use Standard. </Depth_Profiles>
<Execution_Policy>
AGENTS.md / CLAUDE.md files, README/getting-started docs, relevant docs/ contracts/plans/ADRs, and any project-local glossary/context files such as CONTEXT.md or CONTEXT-MAP.md when present.best-practice-research skill as the bounded evidence wrapper before crystallizing requirements or handing off.[from-code][auto-confirmed] — exact, high-confidence codebase facts from manifests/configs or direct source evidence, with no prescription attached.[from-code] — codebase findings that are useful but inferred, pattern-based, or low/medium confidence and therefore need a confirmation-style user-facing round.[from-research] — externally sourced facts (API limits, compatibility, public docs); facts only, not decisions.[from-user] — goals, preferences, business logic, scope, non-goals, acceptance criteria, tradeoffs, and any decision-bearing interpretation.[from-code][auto-confirmed] and other non-user fact discoveries as context/transcript updates, not interview rounds: do not increment the user-facing round number for facts the agent can safely establish.[from-user].max_rounds as a stop cap, not evidence that more rounds are needed.Non-goals or Decision Boundaries remain unresolved, even if the weighted ambiguity threshold is met..workbuddy/memory/YYYY-MM-DD.md; do not rely on any persistent "mode" file.
</Execution_Policy>{{ARGUMENTS}} and derive a short task slug..omw/deep-interview/context-{slug}-*.md; load it if present.not_needed / needed / recorded).AGENTS.md/CLAUDE.md, README/docs (especially contracts, plans, ADRs), existing .omw/ snapshots and planning artifacts, and project-local glossary/context files..omw/deep-interview/context-{slug}-{timestamp}.md (UTC YYYYMMDDTHHMMSSZ).{{ARGUMENTS}} and depth profile (--quick|--standard|--deep).1.0).Repeat until ambiguity <= threshold, the pressure pass is complete, the readiness gates are explicit, the user exits with warning, or max rounds are reached.
If the initial context is oversized and no prompt-safe summary has been recorded yet, the next question must be only a summary request.
Target the lowest-scoring dimension, respecting stage priority:
Follow-up pressure ladder after each answer:
Prefer staying on the same thread for multiple rounds when it has the highest leverage.
Maintain a Breadth Ledger across independent ambiguity tracks (scope, constraints, outputs, verification, brownfield integration, deliverables). Stay deep on the current thread until pressure-tested, then zoom out only when another material track remains unresolved.
Maintain a Docs/Terminology Ledger for brownfield interviews (sources inspected, canonical vs conflicting terms, doc/code mismatches, opt-in durable-doc follow-ups).
Detailed dimensions:
Non-goals and Decision Boundaries are mandatory readiness gates. Ask about them early and keep revisiting them until explicit.
Use the AskUserQuestion tool for every interview round (one question per round). Present:
Round {n} | Target: {weakest_dimension} | Ambiguity: {score}%
{question}
For bounded single-choice rounds (e.g. handoff lane selection), provide 2–4 options via AskUserQuestion. For bounded multi-select (e.g. out-of-scope items, acceptance checks), enable multi-select. Keep options concrete; only allow a free-text "Other" when the answer genuinely cannot be enumerated.
Score each weighted dimension in [0.0, 1.0] with justification + gap.
Greenfield: ambiguity = 1 - (intent × 0.30 + outcome × 0.25 + scope × 0.20 + constraints × 0.15 + success × 0.10)
Brownfield: ambiguity = 1 - (intent × 0.25 + outcome × 0.20 + scope × 0.20 + constraints × 0.15 + success × 0.10 + context × 0.10)
Readiness gate:
Non-goals must be explicit.Decision Boundaries must be explicit.<= 0.10, another user-facing question is allowed only as that final closure question; otherwise crystallize immediately.Show weighted breakdown table, readiness-gate status (Non-goals, Decision Boundaries), and the next focus dimension. Append a short note to .workbuddy/memory/YYYY-MM-DD.md if useful.
[from-code][auto-confirmed], [from-code], or [from-research]), the next material user-facing round must solicit direct human judgment ([from-user]).max_rounds; never treat this cap as a desired interview length.Use each mode once when applicable:
Track used modes in the task list / memory to prevent repetition.
When threshold is met (or user exits with warning / hard cap):
.omw/deep-interview/interview-{slug}-{timestamp}.md..omw/deep-interview/spec-{slug}.md.Spec should include:
Present execution options after artifact generation using explicit handoff contracts. Treat the deep-interview spec as the current requirements source of truth.
plan (Recommended when architecture/test-shape review is still needed) — Input: .omw/deep-interview/spec-{slug}.md. Invoke the plan skill (skill: plan). Do not repeat the interview; refine architecture/feasibility around the clarified intent.team (Coordinated parallel implementation) — Invoke the team skill (skill: team) or spawn parallel agents via the Agent tool, using the spec as shared execution context. Best for large, multi-lane, blocker-sensitive tasks.Residual-Risk Rule: If the interview ended via early exit, hard-cap completion, or above-threshold proceed-with-warning, explicitly preserve that residual-risk state in the handoff.
IMPORTANT: Deep-interview is a requirements mode. On handoff, invoke the selected skill using the contract above. Do NOT implement directly inside deep-interview.
<Escalation_And_Stop_Conditions>
cancel skill).<Final_Checklist>
.omw/deep-interview/context-{slug}-{timestamp}.md..omw/deep-interview/interview-{slug}-{timestamp}.md..omw/deep-interview/spec-{slug}.md.plan, team, direct execution, refine further).If interrupted, rerun the deep-interview skill with the same arguments. Resume from the
context snapshot under .omw/deep-interview/context-{slug}-*.md and continue the round log
recorded in .workbuddy/memory/YYYY-MM-DD.md.
deep-interview -> plan -> execution (Agent tool / team)