tdd-guide

Generate tests, coverage insights, and TDD workflow guidance for code.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/wewetv1987-cell/openclaw-backup --skill tdd-guide-wewetv1987-cell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-guide
Source: https://github.com/wewetv1987-cell/openclaw-backup/tree/main/skills/tdd-guide
Command: npx skills add https://github.com/wewetv1987-cell/openclaw-backup --skill tdd-guide-wewetv1987-cell

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps engineering teams turn requirements and source code into actionable tests, coverage insights, and step-by-step TDD guidance so they can move faster with fewer regressions.

Core Features & Use Cases

  • Test Generation: Create test cases, stubs, and fixtures from user stories, acceptance criteria, APIs, or existing code.
  • Coverage Analysis: Parse LCOV, JSON, and XML reports to find gaps, prioritize missing paths, and raise coverage toward target thresholds.
  • TDD Coaching: Guide red-green-refactor cycles, validate each phase, and suggest practical refactoring next steps.
  • Framework Support: Adapt output for Jest, Vitest, Pytest, JUnit, Mocha, and unittest across TypeScript, JavaScript, Python, and Java projects.
  • Use Case: A developer implementing authentication can ask for tests covering validation, error handling, and edge cases, then review coverage gaps and quality metrics before refactoring.

Quick Start

Ask the tdd-guide skill to generate tests for your feature requirements, analyze coverage gaps, and recommend the next red-green-refactor step.

Frequently Asked Questions about tdd-guide

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

FAQPage Schema
How do I generate tests and fixtures from existing source code?

You can generate tests by providing feature requirements, acceptance criteria, or source code. The Skill analyzes the input and produces test cases, stubs, and fixtures formatted for your specific testing framework, ready for immediate integration.

How do I parse LCOV and XML coverage reports to find missing test paths?

Coverage analysis parses LCOV, JSON, and XML reports to identify coverage gaps and prioritize missing execution paths. It calculates quality scores and highlights untested scenarios to help you reach your target coverage thresholds efficiently.

Does this tool support generating tests for both Pytest and JUnit frameworks?

Yes, it supports Pytest and JUnit, along with Jest, Vitest, Mocha, and unittest. It adapts the test generation and fixture output for TypeScript, JavaScript, Python, and Java projects across these specific testing environments.

What is the best way to follow a red-green-refactor TDD workflow?

TDD coaching guides you through the red-green-refactor cycle by validating each phase and suggesting practical refactoring steps. It helps you implement features incrementally by generating failing tests first, then creating the implementation to pass them.

Can I analyze coverage gaps for a TypeScript project using Jest?

Yes, coverage analysis supports TypeScript projects using Jest. It parses your coverage reports to identify missing scenarios, score test quality, and recommend specific areas needing additional test cases to meet your coverage thresholds.

Why does my test generation output need environment-aware formatting?

Environment-aware formatting ensures the generated tests, stubs, and fixtures match your specific CLI, desktop, or API context. This prevents syntax and configuration mismatches, allowing the output to integrate seamlessly into your existing project structure.