From kernel
Guides TDD workflow: write tests before code, red-green-refactor cycle, enforce 80%+ coverage. For any language or test framework.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kernel:tddThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<skill id="tdd">
<core_principles>
<anti_patterns> Writing code then tests validates bugs. Test first or not at all. Test behavior, not structure. Refactoring should not break tests. One behavior per test. If you need "and", split the test. Use semantic selectors ([data-testid], role), not CSS classes. Each test must be independent. No shared state between tests. </anti_patterns>
<on_complete> agentdb write-end '{"skill":"tdd","tests_written":,"coverage":"<X%>","cycle":"red->green->refactor","failures_caught":[""]}'
Record test count, coverage achieved, and what edge cases the tests catch. </on_complete>
npx claudepluginhub ariaxhan/kernel-claude --plugin kernelGuides Test-Driven Development with Red-Green-Refactor cycle for writing code, implementing features, or fixing bugs in TDD projects.
Enforces a strict red-green-refactor TDD cycle with coordinated agent orchestration, covering test specification, failing tests, and incremental implementation with coverage thresholds.
Executes testing tasks: writes colocated test files, runs tests, and summarizes coverage. Includes TDD variant with rationalization counters and red flags.