test-driven-development

Enforce the RED-GREEN-REFACTOR cycle for software implementation tasks.

7|1|Updated Jul 26, 2026
One-click install
npx skills add https://github.com/paxlabs-inc/ion-agent --skill test-driven-development-paxlabs-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/paxlabs-inc/ion-agent/tree/main/skills/software-development/test-driven-development
Command: npx skills add https://github.com/paxlabs-inc/ion-agent --skill test-driven-development-paxlabs-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the uncertainty of untested code by enforcing a strict discipline where tests are written before implementation, ensuring that every line of production code is verified and intentional.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Cycle: Provides a structured workflow to ensure tests fail, pass with minimal code, and are refactored safely.
  • Vertical Tracer Bullets: Encourages building features in end-to-end slices rather than writing all tests at once, preventing brittle test suites.
  • Use Case: When implementing a complex feature, use this Skill to guide the agent in writing a failing test case first, ensuring the logic is sound and the requirements are met before any production code is committed.

Quick Start

Use the test-driven-development skill to implement the new user authentication feature by writing a failing test case first.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I enforce the RED-GREEN-REFACTOR cycle during software development?

This methodology mandates writing a failing test first, implementing minimal code to pass it, and then refactoring safely. It ensures every line of production code is verified and intentional.

What is the best way to write tests before implementation for new features?

Writing tests before implementation is best achieved by building features in end-to-end slices, known as vertical tracer bullets. This approach prevents brittle test suites by guiding you to write a failing test case first before committing production code.

Can I use test-driven development for both bug fixes and refactoring existing code?

Yes, test-driven development applies to bug fixes and refactoring efforts alongside new feature development. It ensures high code quality and prevents regressions by requiring tests to be written before any production code is modified.

Does test-driven development require terminal and file system access to run test suites?

Yes, this test-driven development approach requires terminal access to execute test suites and file system access to manage test and production code files. This access allows the agent to verify failing tests and implement code directly.

Why does writing all tests at once result in brittle test suites?

Writing all tests at once often results in brittle test suites because it lacks end-to-end validation. Encouraging vertical tracer bullets builds features in complete slices, ensuring logic is sound and requirements are met iteratively.