- Home
- Skills
- Ntcoding
- Claude Skillz
- Tdd Process
tdd-process_skill
- Python
247
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ntcoding/claude-skillz --skill tdd-process- README.md3.8 KB
- SKILL.md22.3 KB
Overview
⚪ TDD: PLANNING This skill enforces a strict test-driven development state machine with red-green-refactor cycles for Python projects. It guides test-first development, ensures meaningful failures, requires minimum implementations, and verifies compilation and linting before advancing. Use it to adopt disciplined TDD workflows and generate repeatable, verifiable cycles.
How this skill works
⚪ TDD: PLANNING The skill defines the TDD lifecycle: PLANNING (write failing test), RED (implement the minimal fix), GREEN (verify tests pass), REFACTOR (improve design while keeping green), and VERIFY (run full suite, lint, and build). It inspects test intent, produces test specifications (not full production code), and mandates evidence at each transition: test outputs, compile and lint results, and justifications for minimal changes.
When to use it
- When you want to adopt strict test-first development for a new feature
- When converting legacy code to small, testable increments
- When teaching or enforcing disciplined TDD practices in a team
- For small-to-medium Python tasks where iterative verification is valuable
- When you need reproducible evidence of test-driven progress
Best practices
- Always write tests before implementation; tests should express behavior, not design
- Make failures meaningful: adjust tests or helpers until the failure pinpoints the behavior
- Implement only what the failing test demands — prefer hardcoded stubs for single-case failures
- Run tests, compilation, and lint on every small change and show outputs as evidence
- Keep planning outputs as test specifications; avoid sharing production implementation in plan mode
Example use cases
- Start TDD for a new function: plan tests, run to get red, implement minimal code, then refactor
- Enforce classroom TDD exercises: students submit cycles with test outputs and justifications
- Migrate a bug fix into a TDD cycle to produce a focused regression test before fixing
- Create bite-sized features in Python modules with proof-of-correctness at each step
- Validate library API contracts via failing tests, then implement minimal surface to satisfy them
FAQ
A meaningful failure is a test failure that clearly indicates the behavior missing or incorrect (not a syntax/setup error) and is copy-pasted verbatim as evidence.
Can I alter tests to make them pass?
No. Tests specify the required behavior. If a test is wrong, return to PLANNING to adjust the test or clarify requirements; do not change tests to fit implementations.