Execute a strict Red-Green-Refactor TDD cycle for one requirement at a time while applying KISS and DRY. Use when the user provides a business rule, acceptance criterion, bug fix, or feature requirement and wants test-first development, behavioral tests, failing tests first, TDD, red-green-refactor, or high-quality code. Works for unit, integration, UI component, API, and CLI tests across stacks.
75
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Execute one complete TDD cycle per requirement. Never test private internals. Test observable behavior through the public interface.
Input: the requirement or business rule.
Stop after RED and wait for confirmation before implementation if the user asked for a strict step-by-step TDD cycle. If the user asked you to implement end to end, run the cycle internally and report each phase.
Input: the failing test.
Input: passing behavior from RED and GREEN.
Improve code quality without changing external behavior.
Apply KISS:
Apply DRY:
Present:
<test name> still passes."Mock at system boundaries only: external APIs, databases, time, randomness, file system, queues, and network calls.
Never mock your own classes, private methods, internal collaborators, or implementation details.
Use dependency injection to make boundaries explicit and mockable. Prefer boundary interfaces with named operations over generic fetch or execute functions.
Read references/mocking.md when dependency boundaries or mocks are involved.
Query by user-facing semantics first:
getByRole with accessible name.Accessibility exposed through tests is part of the behavior.
Read references/tests.md for examples and red flags.
0b7ce3d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.