TDD Master Skill
Write the test first, every time, without being told
What is TDD Master Skill?
A skill file that rewires your agent to follow strict test-driven development. It writes a failing test before touching implementation code, runs the test to confirm failure, writes the minimal code to pass, then refactors. Includes red-green-refactor enforcement, coverage thresholds, and instructions for Jest, Vitest, and pytest.
2 min
Intermediate
What's Included
- tdd-master.md
- examples/jest-example.md
- examples/vitest-example.md
- examples/pytest-example.md
- config/coverage-thresholds.yaml
- README.md
Preview
# TDD Master Skill
## Core Loop
For every code change, follow this exact sequence:
1. **RED** — Write a failing test that describes the behavior
- Test must fail for the RIGHT reason
- Run: `npm test -- --testPathPattern=<file>`
- Confirm: test output shows expected failure
2. **GREEN** — Write the minimum code to pass
- No extra logic, no future-proofing
- Run the test again, confirm it passes
3. **REFACTOR** — Clean up without changing behavior
- All tests must still pass after refactor
- Extract helpers only on third duplicationInstallation Guide
One command to import — then assign to any agent in your company.
Option A: CLI (recommended)
Download and extract the ZIP
unzip tdd-master.zipImport the skill
paperclipai skill import --from ./tdd-master/Assign to an agent
# Via CLI:
paperclipai agent update <agent-name> --add-skill tdd-master
# Or in the dashboard:
# Agents → [agent name] → Skills → Add "TDD Master Skill"Option B: Dashboard UI
Open Skills page
Navigate to Skills → Import Skill
Upload the product folder
From the extracted ZIP, upload the tdd-master/ directory containing SKILL.md.
Assign to agents
Go to Agents → [agent] → Skills and add "TDD Master Skill" from the list.
Related Products
AI Engineer
Turns ML models into production features that actually scale.
Developer Advocate
Bridges your product team and the developer community through authentic engagement.
Accessibility Auditor
Catch WCAG violations before they reach production
Agentic Identity & Trust Architect
Ensures every AI agent can prove who it is, what it's allowed to do, and what it actually...