/detective:investigatefrom detective
Autonomously drives Detective OODA cycles through MCP tools for an existing case. Use to continue, resume, or advance an investigation step by step.
Ships in detective. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run Detective OODA cycles through MCP tools only. Follow ../references/detective-core-protocol.md for exact enums, proof semantics, evidence lifecycle, SetGoal preference, StopHook markers, stop conditions, and handoffs.
<HARD_GATE name="case-state-safety">
Use Detective MCP as the only source of case truth. Never edit .detective/ files directly, never bypass MCP lifecycle tools, and never treat blackboard notes as verified graph evidence.
</HARD_GATE>
<HARD_GATE name="ooda-phase-discipline">
Every investigation step must pass through observe, orient, decide, act, and review in order, recording each transition with detective_transition_phase. On mid-cycle resume, read current phase/actions, close or repair interrupted work, transition to the next legal phase, and continue; do not restart the case or skip phase records.
</HARD_GATE>
<HARD_GATE name="stop-fallback-marker-protocol">
Prefer SetGoal or equivalent for autonomous continuation. Only when no goal tool is available, ensure the transcript contains <DETECTIVE-STOP-FALLBACK status="active" case-id="<case_id>"> before self-driven work. The marker activates only the statically registered inert StopHook fallback; it is not MCP state and must not be written to .detective/ files. Before stopping with fallback active, emit <DETECTIVE-STOP-FALLBACK status="inactive" case-id="<case_id>" reason="<pause|blocked|budget-exhausted|complete|closed>">.
</HARD_GATE>
<HARD_GATE name="subagent-delegation">
Delegate only bounded, independent investigation work. Every subagent dispatch must state the Detective case id, current OODA phase and action id, exact scope or target nodes, allowed tools and read/write boundaries, required Detective MCP writes, expected return format, and stop conditions. Subagents must obey the same evidence, state, scope, and closure gates as the coordinator: they must never edit .detective/ directly, expand scope, force-close a case, treat blackboard notes as proof, or spawn further agents unless the dispatch explicitly permits it. The coordinator must validate returned evidence and MCP state before marking the parent action done or advancing the completion gate.
</HARD_GATE>
Call before deciding work:
detective_case_status(case_id="<case id>")detective_graph_overview(case_id="<case id>")detective_list_nodes(case_id="<case id>", limit=<reasonable limit>)detective_list_edges(case_id="<case id>")detective_list_actions(case_id="<case id>")detective_blackboard_list(case_id="<case id>")detective_coverage_status(case_id="<case id>")detective_list_intents(case_id="<case id>") when needed for goal adoption.Continue cycles until a standard stop condition applies. Do not ask routine mid-loop questions when current state permits a legal high-value next action.
detective_transition_phase(case_id="<case id>", phase="observe", reason="collect current facts")detective_add_node(..., type="evidence"|"observation") with accurate source and status.type="clue"; scratch/speculation → detective_blackboard_add(...).detective_transition_phase(case_id="<case id>", phase="orient", reason="relate evidence and hypotheses")detective_transition_phase(case_id="<case id>", phase="decide", reason="select next action")detective_add_action(case_id="<case id>", description="<specific action>", assigned_role="<assistant|agent name>", priority=<0..1>, reason="<why highest value>").detective_transition_phase(case_id="<case id>", phase="act", reason="execute selected action <action_id>")detective_transition_phase(case_id="<case id>", phase="review", reason="record results and check readiness")detective_update_action(..., status="done|blocked|cancelled", result="<result>").detective_add_checkpoint(case_id="<case id>", summary="<what changed>", action_id="<action id>", created_by="assistant").detective_coverage_update(case_id="<case id>", coverage_id="<existing id>", ...). Add coverage only for a genuinely new area; never create a second item with the same area to represent progress.question nodes with detective_update_node; do not add a separate answer question while leaving the original question open.detective_completion_gate(case_id="<case id>"). Call detective_evaluate_proof only after the read-only gate is allowed or when a durable failing snapshot is explicitly required. A failed gate is feedback to repair existing state within budget, not a reason to duplicate coverage/questions or repeatedly evaluate proof.Before suggesting closure, ensure exactly one confirmed hypothesis, at least one confirmed evidence node with a direct supports edge to it, alternatives rejected/stale/resolved, questions resolved/rejected, actions done/cancelled, and coverage complete.
Do not use an absent, unreadable, or unexamined source as a contradicts/eliminates edge or as grounds to lower an alternative hypothesis. Missing expected evidence proves only the source/coverage limitation unless independent evidence makes the hypothesis predict an observation that did not occur.
<HARD_GATE name="autonomy-stop-conditions"> Stop before another action only when closure is allowed, user intervention is required, no legal action remains, budget/timebox/step count is exhausted, critical coverage needs approval, requested step count is reached, handoff is required, or the user asks to pause. Report the reason and deactivate fallback if active. </HARD_GATE>
Export with detective_export_markdown and detective_export_mermaid(..., diagram="full", focus_node_id=null) only after meaningful graph changes or when requested.
**Phase completed**: review
**Action**: <description and status>
**OODA cycles run**: <n and stop reason>
**Goal tool**: <adopted/set/unavailable/no change>
**Stop fallback**: <inactive due to goal tool | active marker emitted | inactive marker emitted with reason | unchanged>
**New evidence / graph changes**: <bullets>
**Coverage**: <statuses>
**Proof gate**: <allowed/blocked and key reason>
**Next recommended action**: <specific next action, handoff, or ask>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub esonhugh/marketplace --plugin detective6 skills in this plugin
/brainstormThe assistant should use this when the user has a vague concern, hunch, symptom, unknown failure, or asks what to investigate before any Detective case exists. It produces a read-only, approval-ready brief. Do not use when the user explicitly asks to create/open a case (use open-case), continue an existing case (use investigate), review status (use review-board), resolve a known blocker with user guidance (use discuss-case), or close/finalize findings (use close-case)./close-caseThe assistant should use this when the user asks to close, finalize, force-close, wrap up with a final conclusion, or produce final Detective case findings. It closes only after proof readiness or explicit force approval. Do not use for status-only review (review-board), further investigation (investigate), blocker discussion (discuss-case), new case creation (open-case), or pre-case scoping (brainstorm)./discuss-caseOther plugins' skills for the same job