One-click install
npx skills add https://github.com/SpecForgeAI/deepagent-bot --skill sp-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sp_tdd
Source: https://github.com/SpecForgeAI/deepagent-bot/tree/main/skills/sp_tdd
Command: npx skills add https://github.com/SpecForgeAI/deepagent-bot --skill sp-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces a disciplined development workflow by requiring a failing test before writing production code, preventing over-engineering and guiding implementation with concrete requirements.

Core Features & Use Cases

  • Write a failing test first for a feature or bugfix to establish correct behavior.
  • Iterate with the RED-GREEN-REFACTOR loop to minimize code and maximize reliability.
  • Useful across software engineering tasks from small features to complex bug fixes, improving maintainability and confidence.

Quick Start

Write a failing test for a small feature, then implement the minimal code to make it pass.

Frequently Asked Questions about sp_tdd

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor cycle work?

Test-driven development is a workflow requiring a failing test before writing production code. The red-green-refactor cycle drives this by first writing a failing test, implementing minimal code to pass it, then iteratively refactoring to maximize reliability and maintainability.

How do I enforce a test-first workflow for new software features and bug fixes?

You enforce a test-first workflow by writing an explicit failing test that establishes correct behavior for a feature or bugfix. You then iterate using the red-green-refactor loop, writing minimal production code to satisfy the test requirements and prevent over-engineering.

Why should I write a failing unit test before implementing production code?

Writing a failing unit test before implementation guides your design with concrete requirements and prevents over-engineering. It establishes the correct behavior upfront, ensuring your software engineering tasks produce reliable, well-tested features with maximum maintainability.

Can I use test-driven development for both small features and complex bug fixes?

Yes, test-driven development is useful across software engineering tasks from small features to complex bug fixes. The red-green-refactor cycle scales to handle varying complexity by focusing on minimal production code and iterative refactoring to improve confidence.

What is the best way to prevent over-engineering when implementing software features?

The best way to prevent over-engineering is to drive feature development with a failing test first. By enforcing minimal production code that satisfies explicit test requirements through the red-green-refactor loop, you strictly limit code to what is necessary.