Solo Unicorn Club logo

Skill Packs

TDD Master Skill

Write the test first, every time, without being told

// First 7 days

What can be running fast.

01

Get a ready-to-run system that replaces blank-page setup.

02

Ship a usable package with 6 included files and working structure.

03

Move from purchase to first setup in about 2 min.

// Included files

What is inside the package.

tdd-master.md
examples/jest-example.md
examples/vitest-example.md
examples/pytest-example.md
config/coverage-thresholds.yaml
README.md

Description

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.

solo-unicornclaude-code

Upgrade path

  • 01Start with this package and validate the workflow.
  • 02Add specialized skills or bundles once the core system is stable.
  • 03Use the community to sharpen positioning, demos, and feedback loops.
Previewtdd-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

// Community acceleration

Use the room after the purchase.

Bring your workflow into the Solo Unicorn community for sharper feedback, operator critique, and more visibility once the system is live.

Discuss implementation