addy-test-driven-development

Guides test-driven development with RED-GREEN-REFACTOR cycles and bug reproduction tests.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/TylerSimons1127/vibe --skill addy-test-driven-development-tylersimons1127
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: addy-test-driven-development
Source: https://github.com/TylerSimons1127/vibe/tree/main/skills/addy-test-driven-development
Command: npx skills add https://github.com/TylerSimons1127/vibe --skill addy-test-driven-development-tylersimons1127

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Code changes ship without proof they work, and bug fixes lack regression guards. This Skill enforces a test-first workflow so every behavior change is verified by a failing-then-passing test before completion. ## Core Features & Use Cases - RED-GREEN-REFACTOR Cycle: Write a failing test first, implement minimal code to pass it, then refactor with tests green. - Prove-It Pattern for Bugs: Reproduce any reported bug with a failing test before attempting a fix, guaranteeing the fix works and preventing regressions. - Test Pyramid & Anti-Pattern Guidance: Balance unit, integration, and E2E tests; avoid flaky tests, over-mocking, and implementation-detail assertions. - Use Case: A bug report says completing a task doesn't set its timestamp. Write a reproduction test that fails, implement the fix, watch the test pass, then run the full suite to confirm no regressions. ## Quick Start Use the test-driven development skill to fix this bug by first writing a failing reproduction test, then implementing the fix and running the repository's full test suite.

Frequently Asked Questions about addy-test-driven-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I practice test-driven development on a bug fix?▼

Write a test that reproduces the bug first and confirm it fails, then implement the fix and confirm the test passes. Finish by running the repository's full test suite to verify no regressions were introduced.

What is the RED-GREEN-REFACTOR cycle in TDD?▼

RED means writing a failing test for the desired behavior, GREEN means writing the minimal code to make it pass, and REFACTOR means cleaning up the implementation while keeping tests green. The cycle repeats for each new behavior.

Should I use mocks or real implementations in unit tests?▼

Prefer real implementations first, then fakes, stubs, and finally mocks as a last resort. Mock only at boundaries where dependencies are slow, non-deterministic, or have uncontrollable side effects like external APIs or email sending.

When should I not use test-driven development?▼

Skip TDD for pure configuration changes, documentation updates, and static content changes with no behavioral impact. TDD applies whenever logic is implemented, bugs are fixed, or existing functionality is modified.

Why do my tests pass but production still breaks?▼

Over-mocking is the usual cause: tests verify method calls instead of real behavior, so they pass while actual integrations fail. Test state and outcomes rather than interactions, and use real implementations or fakes where possible.

How do I find the right test command for an unfamiliar repository?▼

Inspect the build files like package.json, pom.xml, pyproject.toml, go.mod, or Cargo.toml, and prefer checked-in wrappers like ./gradlew or make test. README, CONTRIBUTING, and CI workflows show the commands that actually gate merges.