plugins/scientific-method/skills/evidence-first-debugging/SKILL.md
Use when debugging software, investigating incidents, diagnosing flaky tests, or analyzing performance regressions — enforces structured observation recording with evidence IDs, causality validation, and verification gates to prevent correlation-causation pollution. Use when an agent might otherwise summarize or speculate instead of reporting observed evidence.
npx skillsauth add jamie-bitflight/claude_skills evidence-first-debuggingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Primary responsibilities: observation recording, evidence IDs, causality validation, verification gates.
Load these references before producing any investigation output. A references index is available for a quick map of all shared files.
Load the applicable extension when the investigation type matches. Insert the extension's sections immediately after section 2 (OBSERVATIONS).
flowchart TD
Start([Identify investigation type]) --> Q1{Software bug or crash?}
Q1 -->|Yes| Dbg["Load [Debugging Extensions](../../shared/extensions/debugging-extensions.md)<br>Adds: CALL STACK, RECENT CODE CHANGES, DEPENDENCY GRAPH after section 2"]
Q1 -->|No| Q2{Latency, throughput, or memory regression?}
Q2 -->|Yes| Perf["Load [Performance Extensions](../../shared/extensions/performance-extensions.md)<br>Adds: BASELINE METRICS, REGRESSION WINDOW, HOT PATH ANALYSIS, RESOURCE UTILIZATION after section 2"]
Q2 -->|No| Neither[Proceed with base template only]
Enforce these for every investigation output, without exception.
Rule 1 — Facts only in FACTS / OBSERVATIONS / RESULTS
Write only directly observed signals. Causal language is permitted only when the Causality Gate classification is causal-supported. No guesses, no interpretation, no speculation.
Rule 2 — Label every hypothesis explicitly
Every hypothesis must state what it predicts and include a falsifiable test. Use the form:
H1: [specific causal mechanism]
Prediction: If H1 is true, we would observe [specific outcome]
Falsification test: [what would disprove H1]
Rule 3 — Reserve resolved-verified for verified outcomes
Output status: resolved-verified only when section 13 (Verification) contains a passing verification command with an evidence ID. If section 13 is absent or empty, the status must be mitigated, unresolved, or unknown.
Rule 4 — Cite evidence IDs on every claim
Every statement in FACTS or RESULTS must end with an evidence ID in brackets — e.g., [E3]. Statements without a citable evidence ID must be labeled UNKNOWN.
Rule 5 — Disclose all truncated output
When any output is abbreviated, include a truncation disclosure block immediately after the snippet:
TRUNCATED
total lines: <N>
shown: <M>
method: head | tail | grep
fingerprint: <sha256 or key tokens>
command: <exact command used>
Silent abbreviation is prohibited.
Choose exactly one per investigation output. Include it in section 14 of the investigation template.
flowchart TD
Start([Choose investigation status]) --> Q1{Is the issue resolved?}
Q1 -->|No — still occurring| Unresolved[status: unresolved]
Q1 -->|Partially — symptoms reduced but root cause unknown| Mitigated[status: mitigated]
Q1 -->|Yes — fix applied| Q2{Does section 13 contain a passing verification command with evidence?}
Q2 -->|Yes| Verified[status: resolved-verified]
Q2 -->|No — verification missing or inconclusive| Unknown[status: unknown]
Before emitting any investigation output, verify all items.
resolved-verified is used only when section 13 contains passing verification evidencedevelopment
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.