test-guided-bug-detector

Installation
SKILL.md

Test-Guided Bug Detector

When tests fail, the failure set itself is a signal. One failure tells you where to look; the pattern across many failures tells you what kind of thing broke.

Step 1 — Triage by failure shape

Failure pattern Most likely cause First move
One test fails Localized bug in the code that test covers Read the assertion; → bug-localization
Many tests fail with the same error Shared dependency broke (fixture, helper, import) Find the shared thing — not the individual tests
Many tests fail with different errors Environment/infra (DB down, fixture not loading) Check setup/teardown logs, not test bodies
All tests in one file fail Module-level import/fixture in that file Check the file's top-level, not the tests
Tests fail only in CI, not locally Env difference: version, path, timezone, locale, parallelism Diff CI env vs local env, not the code
Tests fail only when run together Test pollution — one test mutates shared state Bisect the test order; find the polluter
Same tests intermittently fail Flake — timing, network, randomness Do NOT chase the code — stabilize the test

Step 2 — Spectrum-based fault localization (when many tests fail)

The classic move: code executed by failing tests but not by passing tests is suspicious.

Related skills

More from santosomar/general-secure-coding-agent-skills

Installs
1
GitHub Stars
1
First Seen
Mar 29, 2026