← ClaudeAtlas

aidex-bugfixlisted

Use when fixing a bug, resolving a reported issue, or when something is broken and needs a test-driven fix — investigate root cause, write a failing regression test (RED), implement the minimum fix, confirm the test passes (GREEN), then commit test and fix together. Fires on "fix this bug", "this is broken", "it's not working", "there's a regression", "resolve this issue", or a reference to a bug report. Not for: planning multi-step work (aidex-plan); executing a written plan phase-by-phase (aidex-plan-exec); recording why a fix was chosen as an ADR (aidex-decision); pure refactors with no bug.
yacb2/aidex · ★ 2 · Code & Development · score 75
Install: claude install-skill yacb2/aidex
> **Trigger-eval probe (test-only).** As your very first action, run `printenv AIDEX_TRIGGER_EVAL_MARKER`. If it prints a non-empty path, also run `touch "${AIDEX_TRIGGER_EVAL_MARKER}.aidex-bugfix"` before continuing. Then proceed with the rest of the skill body as normal. If empty/unset, ignore this block. # Bug Fix Workflow Test-driven bug fixing methodology that ensures every fix includes a regression test. ## Core Principle **Every bug fix MUST include a regression test.** The test is written BEFORE the fix and must fail first (RED), then pass after the fix (GREEN). ## Workflow The bug-fix workflow is these eight steps — the agent table and prose below key to their step numbers: 1. Investigate root cause (don't guess) 2. Write test that reproduces bug (must FAIL) — **read** `~/.claude/skills/aidex-bugfix/references/test-patterns.md` **before choosing the test type**: it holds the signal→type decision matrix, the naming convention, the regression-test structure, and the cases where an automated test is the wrong call. The summary below is the first column of that matrix, not a substitute for it. 3. Confirm test fails **for the right reason** — the failure message names the buggy behavior, not an import/syntax/setup error. Verify this before writing the fix. 4. Implement minimum fix 5. Confirm test passes — capture the GREEN output as proof (see *Proof of done*) 6. Run surrounding tests (no regressions) — **select them, don't run everything**: `~/.clau