ultimate-tdd
Installation
SKILL.md
Ultimate TDD
Build features test-first through disciplined RED-GREEN-REFACTOR cycles. Each cycle adds one small behavior, keeping the codebase working at every step.
Operating Rules
- Always run tests — never assume they pass. Execute the test command and read the output.
- One test at a time — never write multiple tests before seeing them fail.
- Minimal production code — write only what the current failing test demands. Nothing more.
- Respect existing structure — before creating test files, find where tests already live. If a test file exists for the module you're working on, add to it.
- No automatic commits — the user decides when to commit.
- Phase names stay out of git — RED, GREEN, REFACTOR are useful conversation terms, but commit messages should describe actual changes (e.g. "add email validation", not "RED: write failing test for email").
- Not for retroactive testing — this skill is for building new functionality test-first. Adding tests to existing untested code is a different activity.
Phase 0: Project Reconnaissance
Before writing any test, understand the project's testing setup. This runs once at the start.
- Detect the test framework and runner. Check config files (
package.json,pyproject.toml,go.mod,Cargo.toml,Gemfile, etc.) and look for runner configs (jest.config.*,vitest.config.*,pytest.ini,.rspec). See references/framework-detection.md for the full detection guide.
Related skills