/detective:close-casefrom detective
Closes a Detective MCP-backed case after proof readiness or explicit force approval. Handles normal closure, force-close, and stop-fallback deactivation.
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.
Close a Detective MCP-backed case only through MCP tools. Follow ../references/detective-core-protocol.md for proof completion semantics, canonical state, StopHook deactivation, handoffs, and export policy.
<HARD_GATE name="closure-authorization">
Normal closure requires detective_completion_gate approval and a final summary naming conclusion, confidence, key evidence chain, completed coverage, and unresolved caveats. If the gate is blocked, do not close; present blockers and offer continue, discuss, or force-close options.
</HARD_GATE>
<HARD_GATE name="force-close-approval">
force=true requires explicit user approval for a partial or forced close in the current conversation. Include the force reason and unresolved caveats in the summary; never infer force approval from frustration, silence, or a generic request to wrap up.
</HARD_GATE>
<HARD_GATE name="stop-fallback-deactivation-on-close">
When closure is completed, blocked waiting for user force-close approval, or paused by user request, emit <DETECTIVE-STOP-FALLBACK status="inactive" case-id="<case_id>" reason="<closed|blocked|pause>">. This only disengages the transcript-activated fallback and must not be written to .detective/ files.
</HARD_GATE>
Obtain or draft case_id, summary, approved_by (user role/name if provided, else assistant after gate approval), and force=false unless explicitly approved.
detective_case_status(case_id="<case id>")detective_graph_overview(case_id="<case id>")detective_coverage_status(case_id="<case id>")detective_completion_gate(case_id="<case id>")detective_evaluate_proof(case_id="<case id>", summary="<draft final summary>")/detective:investigate;/detective:discuss-case;detective_close_case(case_id="<case id>", summary="<final summary>", approved_by="<approver>", force=false)detective_close_case(case_id="<case id>", summary="<summary including caveats and force reason>", approved_by="<approver>", force=true)detective_export_markdown(case_id="<case id>")detective_export_mermaid(case_id="<case id>", diagram="full", focus_node_id=null)detective_export_mermaid(case_id="<case id>", diagram="hypothesis-chain", focus_node_id="<node id>")closed, blocked, or pause as applicable:
<DETECTIVE-STOP-FALLBACK status="inactive" case-id="<case_id>" reason="closed"><DETECTIVE-STOP-FALLBACK status="inactive" case-id="<case_id>" reason="blocked">Conclusion: <what happened / answer>
Confidence: <low|medium|high> — <why>
Key evidence chain:
- <confirmed evidence> → supports → <confirmed hypothesis/conclusion>
Coverage completed:
- <areas>
Unresolved caveats:
- <caveat or "none known">
Closure type: <normal|forced partial>
**Case closed**: <case_id>
**Closure type**: <normal|forced partial>
**Conclusion**: <one paragraph>
**Confidence**: <level and reason>
**Caveats**: <bullets>
**Goal completion**: <completion gate passed / forced with explicit approval>
**Stop fallback**: <inactive marker emitted with reason>
**Exports**:
- Markdown: <path from MCP>
- Mermaid: <path from MCP>
What SKILL.md sets; muted values are Claude Code's defaults
6 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)./discuss-caseThe assistant should use this when the user wants to discuss an existing Detective case, resolve a blocker, answer a targeted question, provide guidance/facts/theories, change scope, or choose between alternatives. It records guidance without running investigation. Do not use for new case creation (open-case), vague pre-case scoping (brainstorm), autonomous investigation (investigate), read-only status review (review-board), or closure (close-case)./investigateThe assistant should use this when the user asks to continue, resume, advance, work, or run the next step for an existing Detective case id. It autonomously drives MCP OODA cycles. Do not use to create a new case (use open-case), pre-scope a vague concern (use brainstorm), only show status/exports (use review-board), ask/record user guidance without investigation (use discuss-case), or finalize closure (use close-case).npx claudepluginhub esonhugh/marketplace --plugin detectiveOther plugins' skills for the same job