ClipMarts

TDD Master Skill

Write the test first, every time, without being told

$9Starter SkillFor specialists, founders, and lean teams

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.

Setup Time

2 min

Difficulty

Intermediate

Works With
paperclipclaude-code

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.md
# 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 duplication

Installation Guide

terminal
$ paperclipai skill import --from ./tdd-master/
Skill imported successfully.

One command to import — then assign to any agent in your company.

Option A: CLI (recommended)

1

Download and extract the ZIP

unzip tdd-master.zip
2

Import the skill

paperclipai skill import --from ./tdd-master/
3

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

1

Open Skills page

Navigate to Skills → Import Skill

2

Upload the product folder

From the extracted ZIP, upload the tdd-master/ directory containing SKILL.md.

3

Assign to agents

Go to Agents → [agent] → Skills and add "TDD Master Skill" from the list.

Share
Files included6
Setup time2 min
Difficultyintermediate

Tags

tddtestingjestvitestpytestquality