test-driven-development

Enforce a test-first workflow with pytest-driven failing tests before implementation.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/dawsonblock/HERMY --skill test-driven-development-dawsonblock
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/dawsonblock/HERMY/tree/main/hermes-agent-2026.4.23/skills/software-development/test-driven-development
Command: npx skills add https://github.com/dawsonblock/HERMY --skill test-driven-development-dawsonblock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing features and fixes without tests leads to undetectable regressions and unclear requirements.

Core Features & Use Cases

  • Red-Green-Refactor cycle as a mandatory workflow for new features, bug fixes, and refactors.
  • Early feedback through failing tests guiding design, interfaces, and edge-case handling.
  • Encourages maintainable, well-documented behavior and safer code evolution.

Quick Start

Run the TDD cycle by writing a failing test first, then implement the minimal code to pass.

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 test-driven development in Python?▼

Test-driven development in Python starts by writing a failing pytest before any production code, delivering the minimal implementation to pass it, then refactoring while keeping tests green. This enforces a test-first workflow.

What is the red-green-refactor cycle?▼

The red-green-refactor cycle is a mandatory test-first workflow: write a failing test, implement the minimal code to make it pass, then refactor safely while maintaining green tests.

Why does writing tests first improve software quality?▼

Writing tests first improves software quality by providing early feedback through failing tests that guide design, interfaces, and edge-case handling, preventing undetectable regressions and unclear requirements.

Can I use this test-first workflow for bug fixes and refactoring?▼

Yes, the test-first workflow applies to feature development, bug fixes, and refactors across software projects, ensuring production code is always guided by failing tests and maintaining well-documented behavior.

What's the best way to prevent regressions when adding new features?▼

The best way to prevent regressions is adopting a test-first workflow, writing a failing test before implementation to ensure safer code evolution and maintainable, well-documented behavior.

Do I need pytest to follow a test-driven development process?▼

Pytest-driven workflows are emphasized for Python environments, but the core test-driven development process requires writing a failing test first, making it adaptable across different software testing frameworks.