test-driven-development

Guide the Red-Green-Refactor cycle with failing tests before production code.

6|3|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/adrozdenko/soleri --skill test-driven-development-adrozdenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/adrozdenko/soleri/tree/main/agents/salvador-filetree/skills/test-driven-development
Command: npx skills add https://github.com/adrozdenko/soleri --skill test-driven-development-adrozdenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, ensuring that code is written to meet specific, pre-defined requirements and that tests are written before implementation, preventing the creation of untested or poorly understood code.

Core Features & Use Cases

  • Enforces TDD Cycle: Guides users through the Red-Green-Refactor loop.
  • Pre-computation Knowledge Search: Prioritizes checking existing patterns in the knowledge vault and web search before writing tests.
  • Use Case: When developing a new feature, use this Skill to ensure you write a failing test first, then the minimal code to pass, and finally refactor, leading to more robust and maintainable code.

Quick Start

Begin a TDD loop for implementing the user authentication feature.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I start the test-driven development process for a new feature?

To start test-driven development, you write a failing test that defines the desired feature requirements before writing any production code. This enforces the Red-Green-Refactor cycle, ensuring your implementation strictly adheres to predefined specifications.

What is the Red-Green-Refactor cycle in TDD?

The Red-Green-Refactor cycle in TDD is a development loop where you first write a failing test (Red), then create the minimal production code to pass it (Green), and finally clean up the code without changing behavior (Refactor). This structured loop prevents untested code.

How do I find existing testing patterns before writing new tests?

You find existing testing patterns by prioritizing searches across your knowledge base and the web before test creation. This pre-computation search step ensures you reuse established patterns rather than writing redundant or poorly understood tests from scratch.

Can I use TDD to improve code quality during refactoring?

You can use TDD to improve code quality during refactoring by relying on the tests written during the initial Red-Green phase. The existing test suite verifies that your structural changes and optimizations do not break the predefined feature requirements.

Why should I write tests before writing production code?

You should write tests before production code to prevent the creation of untested or poorly understood logic. This rigorous workflow ensures the implementation is driven directly by specific, pre-defined requirements, leading to more maintainable software.

Does test-driven development work for agile development workflows?

Test-driven development fits agile workflows by facilitating structured, iterative development cycles. It ensures every new feature increment is backed by a failing test first, maintaining robust code quality throughout continuous refactoring and development sprints.