bug-scan

Installation
SKILL.md

Activation Contract

Use this skill to scan a whole repo (global) or given paths/modules (targeted) for latent bugs and prove each one. Not for investigating an already-reported bug, reviewing a PR, or security audits (use api-security-scan).

Hard Rules

  • NEVER modify production code and NEVER propose or apply fixes; repro tests are throwaway (temp file, run, delete unless the user asks to keep them).
  • ALWAYS open with one option prompt before any work: mode, categories, and output format (chat | markdown); never infer any of them from the prompt.
  • Cite file:line and a concrete failure scenario (input/state → wrong result); no speculation.
  • Previous reports are leads, never evidence: re-verify every inherited finding with a test.
  • docs/bug-scan/{YYYY-MM-DD}.json is the only artifact: it is the report and the history. Never write a ledger or a rendered file.
  • Delegate reconnaissance to an exploration subagent when available; hypotheses and verdicts stay with you.
  • Run repro tests in parallel when available, one write-capable subagent per finding, at most 4 concurrent; each returns facts, not verdicts.
  • ALWAYS state what was not reviewed.
  • ALWAYS run python3 assets/reconcile.py --report <report.json>, then python3 assets/validate_report.py --file <report.json>; fix every ERROR: until exit 0. Never overwrite an existing report.

Decision Gates

Installs
16
GitHub Stars
2
First Seen
Oct 3, 2026