Help us improve
Share bugs, ideas, or general feedback.
From devcore
Test writing and fixing methodology covering TDD, failure investigation, and delegating fixes to agents.
npx claudepluginhub crouton-labs/crouton-kit --plugin devcoreHow this skill is triggered — by the user, by Claude, or both
Slash command
/devcore:testingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A failing test signals one of two things:
Applies Red-Green-Refactor TDD: write a failing test before implementation. Use for new logic, bug fixes (Prove-It Pattern with a failing test), or modifying existing behavior.
Enforces TDD (Red-Green-Refactor) for every feature, bugfix, or refactor. Write failing tests first, never production code without a failing test.
Share bugs, ideas, or general feedback.
A failing test signals one of two things:
Don't assume. Read the failure, trace the code path, determine which is true before changing anything.
Common signs the test is wrong:
Common signs the code is broken:
When adding new functionality, write tests first:
Benefits:
Skip TDD when: fixing obvious bugs, exploratory prototyping, or when the test setup cost exceeds the implementation.
When using agents to fix test failures:
Why agents don't run tests:
In agent instructions, include:
Fix the failing test. Do NOT run the test suite—make your change and exit.
If an agent encounters ambiguity about whether to fix the test or the code, it should stop and report a blocker.
If no, keep investigating.