tdd-guide

Generate test cases and analyze coverage reports for TDD workflows.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/zhizhunbao/ai-dev-config --skill tdd-guide-zhizhunbao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-guide
Source: https://github.com/zhizhunbao/ai-dev-config/tree/main/core/skills/dev-tdd_guide
Command: npx skills add https://github.com/zhizhunbao/ai-dev-config --skill tdd-guide-zhizhunbao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the Test Driven Development process, helping engineering teams write better tests faster and improve code quality through intelligent automation.

Core Features & Use Cases

  • Intelligent Test Generation: Automatically create test cases from requirements, user stories, or code.
  • Coverage Analysis: Parse coverage reports to identify gaps and suggest improvements.
  • TDD Workflow Guidance: Provides step-by-step guidance through the Red-Green-Refactor cycle.
  • Use Case: A developer needs to implement a new API endpoint. They provide the requirements and get generated test stubs, then use the skill to analyze coverage and get guidance on refactoring, ensuring robust and well-tested code.

Quick Start

Use the tdd-guide skill to generate tests for the provided user registration requirements.

Frequently Asked Questions about tdd-guide

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

FAQPage Schema
How do I generate test cases from requirements for my API endpoint?

Test generation from requirements automates creating test stubs for API endpoints. Provide your user stories or requirements, and the tool outputs initial test cases to start the Red-Green-Refactor cycle.

How does coverage analysis identify gaps in my testing?

Coverage analysis parses coverage reports to identify untested code paths. It evaluates your existing tests against the codebase and suggests specific improvements to close testing gaps and ensure robust code.

Can I use this TDD workflow with Pytest and Jest?

Yes, the TDD workflow supports multiple languages and testing frameworks including Pytest, Jest, JUnit, and Vitest. It guides you through the Red-Green-Refactor cycle across these environments for unit and integration testing.

What is the best way to start Test Driven Development on an existing codebase?

Starting Test Driven Development on an existing codebase involves parsing coverage reports to find gaps. The tool analyzes your code and coverage to guide step-by-step refactoring and generate targeted test cases.

How do I follow the Red-Green-Refactor cycle during development?

Following the Red-Green-Refactor cycle involves generating failing tests from requirements, writing code to pass them, and refactoring with coverage analysis. The tool provides step-by-step guidance throughout this workflow.

Does this tool support integration testing as well as unit testing?

Yes, the tool supports both integration testing and unit testing scenarios. It generates test cases and guides refactoring across supported frameworks like JUnit, Vitest, Pytest, and Jest for comprehensive coverage.