tdd-tests

Generate failing pytest unit tests from a feature test plan.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sjev/robodev --skill tdd-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-tests
Source: https://github.com/sjev/robodev/tree/main/skills/tdd-tests
Command: npx skills add https://github.com/sjev/robodev --skill tdd-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of failing tests based on a feature's test plan, ensuring the "Red" phase of Test-Driven Development is met before implementation begins.

Core Features & Use Cases

  • TDD Test Generation: Translates test plan items into executable, failing test code.
  • Red Phase Enforcement: Guarantees tests fail before any production code is written.
  • Use Case: After defining a new feature's requirements and test plan in docs/features/my-feature.md, run /tdd-tests my-feature to generate the initial set of failing tests.

Quick Start

Use the tdd-tests skill to write failing tests for the 'download-command' feature.

Frequently Asked Questions about tdd-tests

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

FAQPage Schema
How do I generate failing unit tests for the red phase of TDD?

You generate failing unit tests by providing a feature test plan, which this Skill translates into executable pytest code to strictly enforce the red phase of TDD before implementation begins.

What is the best way to automate test case creation from a feature test plan?

Automating test case creation involves translating test plan items into failing test code, ensuring tests are isolated from external dependencies via mocking and adhere to pytest conventions.

Does this TDD test generation approach work with pytest conventions?

Yes, TDD test generation strictly adheres to pytest conventions and isolates external dependencies via mocking to ensure the generated failing unit tests integrate seamlessly into your automated test suite.

How do I write failing tests for a specific feature requirement?

You write failing tests by defining feature requirements and a test plan in a markdown file, then running the generation command to automatically produce the initial set of failing test code.

When do I need to isolate external dependencies via mocking for TDD?

You need to isolate external dependencies via mocking during the red phase of TDD to guarantee that the generated failing unit tests accurately validate feature requirements without side effects.