cyberneticlibrary

Investigate bugs with test-first approach

bug-investigationskillsetup L1381
majiayu000/claude-skill-registry
What it does

Reproduce bugs via tests before fixing implementation code

Best for

Teams enforcing TDD discipline to prevent regressions and verify actual bug fix.

Inputs
  • · bug report (steps, expected vs actual)
  • · codebase + test framework
Outputs
  • · failing reproducing test
  • · minimal code fix
  • · passing test + full suite run
Requires
  • · test framework (Jest, pytest, Vitest, etc.)
  • · Gherkin (for E2E scenarios)
Preconditions
  • · bug is not environment-specific
  • · test framework exists in project
Failure modes
  • · bug only occurs in production
  • · OS-specific or browser-specific
  • · race condition not reproducible in test
Trust signals
  • · Enforces test-first; rejects code changes before bug reproduction
  • · Escalates to logging after 2 failed test attempts
  • · Bans trial-and-error code changes