tdd

Guides step-by-step Red-Green-Refactor cycles with one test at a time.

Updated Apr 14, 2025
One-click install
npx skills add https://github.com/narcisobenigno/groceries --skill tdd-narcisobenigno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/narcisobenigno/groceries/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/narcisobenigno/groceries --skill tdd-narcisobenigno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces Test-Driven Development (TDD) discipline by guiding you through a micro-cycle: write ONE test, run tests to see it fail, implement minimal code to make it pass, refactor, then repeat for the NEXT test. This reduces cognitive load and ensures incremental design, saving time and reducing complexity.

Core Features & Use Cases

  • ONE test at a time: Drive development with a single test to guide implementation.
  • Red-Green-Refactor workflow: Ensure tests drive design and code quality.
  • Consistent process for features, deciders, and projections: Apply TDD discipline across tasks to minimize defects.

Quick Start

Start by creating a new test file describing the behavior, then run bun test to observe the failing test, implement the minimal code to pass, and repeat for the next test.