test-driven-development

Advocates test-driven development with the red-green-refactor cycle.

1|Updated Apr 21, 2025
One-click install
npx skills add https://github.com/agi-house-india/agihouse-site --skill test-driven-development-agi-house-india
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/agi-house-india/agihouse-site/tree/main/.claude/skills/test-driven-development
Command: npx skills add https://github.com/agi-house-india/agihouse-site --skill test-driven-development-agi-house-india

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill advocates Test-Driven Development (TDD) to ensure correct behavior before implementing features, reducing defects and enabling safer refactors.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Failing tests drive minimal, focused implementation.
  • Phase-Driven Workflow: Root-cause validation, minimal implementation, and continuous verification.
  • Anti-Patterns Awareness: Guidance to avoid common testing pitfalls and shortcuts.
  • Use Case: When adding a new feature, start with a failing test, implement just enough code to pass, and refactor with confidence.

Quick Start

Start with a failing test (RED), then implement the minimal code to pass (GREEN), and finally refactor for clarity and maintainability.