tdd-guide

Generate unit tests from requirements and analyze coverage reports.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/tiandiyiqi/ai-skills --skill tdd-guide-tiandiyiqi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-guide
Source: https://github.com/tiandiyiqi/ai-skills/tree/main/engineering-team/tdd-guide
Command: npx skills add https://github.com/tiandiyiqi/ai-skills --skill tdd-guide-tiandiyiqi

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 by automating test generation, analyzing code coverage, and providing workflow guidance, significantly reducing the time and effort required to write high-quality tests.

Core Features & Use Cases

  • Intelligent Test Generation: Create comprehensive test cases from requirements, user stories, or code.
  • Coverage Analysis: Parse LCOV, JSON, or XML reports to identify gaps and suggest improvements.
  • TDD Workflow Guidance: Get step-by-step instructions for the Red-Green-Refactor cycle.
  • Use Case: A developer needs to implement a new authentication feature. They provide the requirements and code, and the skill generates Jest test stubs, analyzes coverage, and guides them through writing tests and refactoring.

Quick Start

Use the tdd-guide skill to generate tests for a password validation function based on provided 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 unit tests from code and requirements using TDD?

You can generate unit tests from code and requirements by providing your inputs to the tool, which then creates comprehensive test stubs to initiate the Red-Green-Refactor TDD cycle.

How does coverage analysis identify gaps in my test suite?

Coverage analysis identifies gaps by parsing LCOV, JSON, or XML reports to evaluate your test suite execution and suggest specific improvements for uncovered code paths.

Can I use this TDD workflow with Python and Jest for TypeScript?

Yes, the TDD workflow supports multiple languages including TypeScript, Python, and Java, working seamlessly with frameworks like Jest, Pytest, and JUnit.

What is the best way to start the Red-Green-Refactor cycle for a new feature?

Start the Red-Green-Refactor cycle by providing your feature requirements and code to generate initial test stubs, followed by step-by-step workflow guidance to write and refactor tests.

Do I need an existing test framework setup to analyze test coverage?

You need a test framework to run your suite, but the tool can parse existing LCOV, JSON, or XML coverage reports to analyze gaps without requiring a specific environment setup.