tdd

Writes a test that fails first, then builds the simplest code to pass it, then cleans it up for bug fixes and new features.

Installation
Run `npx skills add "https://github.com/theonlyfusioncube/potetos-for-everyone" --skill "tdd"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

SKILL.mdShow the author's original SKILL.md
---
name: tdd
description: Write a minimal failing test before implementation, make it pass with the simplest code, and refactor cleanly. Use when implementing bug fixes or features with clear verification targets.
---
# Test-Driven Development (TDD)

1. Understand the exact requirement or bug and identify the narrowest executable check.
2. Write the failing test first. Ensure it fails for the expected reason, not a setup or syntax error.
3. Implement the minimal production code needed to make the failing test pass. Avoid speculative features.
4. Re-run the test to confirm green.
5. Refactor: clean up names, remove duplication, and simplify structure while keeping tests green.
6. Verify adjacent tests and broader contracts to ensure no regressions.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us