debug-failing-test

SkillDev tools

Systematic process for diagnosing and fixing a failing test

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the debug-failing-test skill

What this skill tells your AI

The instructions your AI receives, as published by albinotonnina/echos in .hive/prompts/skills/debug-failing-test/SKILL.md and read by ahel’s review.

Follow this order before changing any application code:

  1. Reproduce in isolation Run only the failing test and confirm it fails reliably (not intermittently).

  2. Read the full error output Do not skim — read the assertion failure, the stack trace, and any stderr output. Note the exact line number in the test and in the source.

  3. Check for environment issues

    • Is the test DB seeded?
    • Are required env vars set in .env.test?
    • Is there leftover state from a previous test run?
  4. Trace the failure Add a single console.log at the point of failure to inspect the actual value. Do not add multiple logs at once — add one, run, interpret, then add the next.

  5. Identify the root cause Is the test wrong (wrong expectation), the fixture wrong (bad test data), or the code wrong? Fix the right thing — do not change a test expectation just to make it pass.

  6. Verify the fix Run the full test suite after fixing. If the fix touches shared utilities, check for regressions in related tests.

Signals

GitHub stars
60
Forks
8
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
debug-failing-test
Source
github.com/albinotonnina/echos