From ajbm-dev
Enforces test-first behavior: write a failing test, verify failure, implement minimal code, and prove green. Use for features, bugfixes, and behavior changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ajbm-dev:test-driven-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use TDD to prove behavior changes, prevent regressions, and keep implementation scope tight.
Use TDD to prove behavior changes, prevent regressions, and keep implementation scope tight.
Core principle:
If you did not observe a meaningful failing test first, you do not yet have proof the test validates the change.
Execute the TDD cycle. Run tests. Report evidence. Don't stop at advice.
Default for:
Allowed exceptions (confirm with human partner):
If exception is used, document why and schedule follow-up tests.
No behavior-changing production code is complete without a failing test that was observed before the final implementation.
If you write behavior-changing implementation code before a failing test:
Exception only with explicit human partner approval.
Run targeted test command and confirm:
If it passes immediately, the test is not proving the new requirement yet.
Run targeted tests, then broader scope when feasible.
Confirm:
After green:
Re-run tests to prove refactor preserved behavior.
Each non-trivial change should include:
For bug fixes:
TDD Summary
- Requirement under test:
- <behavior>
- RED evidence:
- Command: <command>
- Failure observed: <yes/no + key message>
- GREEN evidence:
- Command: <command>
- Result: <passed/failed>
- Broader verification:
- <suite command + result> OR "Deferred: <reason>"
- Notes:
- <exceptions, constraints, or follow-up tests>
Required phrases:
I did not run tests.I ran targeted tests only.Before marking done:
TDD is an evidence discipline, not a slogan.
npx claudepluginhub ajbmachon/ajbm-skills --plugin ajbm-devProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.