一键导入
investigate
Dispatch codebase investigation for a bead task. Resolves bead context, runs the research agent, and flags spec drift before implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dispatch codebase investigation for a bead task. Resolves bead context, runs the research agent, and flags spec drift before implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Enforces staged execution discipline on large tasks: a written stage plan, parallel delegation where the runtime supports it, a failable verification check at each stage, and a skeptical self-review before delivery. Trigger when the user explicitly asks ("do this thoroughly", "be systematic", "deep work mode") OR when the task objectively spans multiple files, multiple sources, or multiple sessions. Do NOT trigger on ordinary multi-step requests that a direct attempt handles fine.
Bootstrap project orchestration with beads task tracking.
Core engineering principles for implementation tasks
Create beads from a spec (full decomposition) or from user input (ad-hoc issues). Single entry point for all bead creation.
Dispatch the implementation supervisor for a bead task. Resolves the correct supervisor from the assignee field, checks branch state, and dispatches with full context.
QA finalization gate — validates spec conformity, runs tests/build/lint, produces a structured QA report. Auto-dispatches the supervisor for rework on FAIL. Last gate before human merge.
| name | investigate |
| description | Dispatch codebase investigation for a bead task. Resolves bead context, runs the research agent, and flags spec drift before implementation. |
| user_invocable | true |
Run codebase investigation on a bead task before implementation. Dispatches the research agent to analyze the task context, trace code paths, and flag spec drift.
If bead ID provided: use it directly.
If no bead ID provided:
bd ready --json to get unblocked tasksdescription, acceptance, design, notes, status, parent, labelsbd-001.2):
bd-001)bd show {EPIC_ID} --jsonDispatch using exactly these parameters — no more, no less:
Agent(
subagent_type="research",
prompt="Investigate BEAD {BEAD_ID}. [Include EPIC_ID if epic child]. Read the bead (bd show {BEAD_ID}) for full context — description, acceptance criteria, and design notes. Read the spec and plan referenced in the bead's external-ref or spec-id fields. If the spec has a Research Findings section, spot-check 2-3 assumptions against the current codebase. Flag any SPEC_DRIFT in your investigation comment. Log your structured findings as a bead comment using bd comments add."
)
Do NOT add extra parameters unless the user explicitly requests it.
After the research agent completes, read the investigation comment: bd comments {BEAD_ID}
If SPEC_DRIFT found:
/spec, (2) proceed to /do anyway with known drift, or (3) skip this task?"/spec/do {BEAD_ID} with drift notedIf no SPEC_DRIFT → inform user investigation is complete.
1. Show the investigation summary from the bead comments 2. Report spec drift status (clean or drift detected) Recommend proceeding with `/do {BEAD_ID}` to dispatch the implementation supervisor.