test-driven-development

Implement the red-green-refactor cycle for writing features and fixing bugs.

1|Updated Sep 26, 2025
One-click install
npx skills add https://github.com/pascallammers/mylo-travel-concierge-v2 --skill test-driven-development-pascallammers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/pascallammers/mylo-travel-concierge-v2/tree/main/.factory/skills/test-driven-development
Command: npx skills add https://github.com/pascallammers/mylo-travel-concierge-v2 --skill test-driven-development-pascallammers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of writing high-quality, reliable, and maintainable code by enforcing a structured development process that minimizes bugs and regressions.

Core Features & Use Cases

  • Red-Green-Refactor Cycle: Guides users through writing failing tests, implementing minimal code, and then refactoring.
  • Test Case Examples: Provides clear examples for testing exceptions, async code, using fixtures, and mocking.
  • Use Case: When developing a new user authentication module, use this skill to first write a test for a successful login, then implement the basic login logic, and finally refactor the code for security and efficiency, ensuring all tests remain green.

Quick Start

Use the test-driven-development skill to implement the red-green-refactor cycle for a new user registration feature.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
What is the red-green-refactor cycle in test-driven development?

The red-green-refactor cycle in test-driven development is a process where you write a failing test, implement minimal code to pass it, and then refactor. This methodology ensures code reliability and prevents regressions while improving software design.

How do I start writing new features using test-driven development in Python?

To write new features using test-driven development, start by writing a failing test for the desired behavior. Then implement the minimal code required to make the test pass, and finally refactor the code for better quality while ensuring tests remain green.

Does test-driven development work for fixing bugs and refactoring existing code?

Yes, test-driven development works for fixing bugs and refactoring existing code. By writing a test that reproduces the bug first, you can verify the fix and confidently refactor without introducing regressions, maintaining high code quality standards.

Can I use test-driven development for testing exceptions and async code in Python?

Yes, you can use test-driven development for testing exceptions and async code in Python. The methodology provides clear test case examples for handling exceptions, asynchronous operations, using fixtures, and mocking to ensure comprehensive coverage.

Why should I use test-driven development for my software development process?

You should use test-driven development to write reliable, maintainable code and prevent regressions. It improves your software design through testability, documents expected behavior, enables confident refactoring, and maintains high code quality standards throughout development.