How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Tdd Guide (Engineering domain).

Guide red-green-refactor TDD with test generation, coverage-gap analysis, and multi- framework support. Use when writing tests first, analyzing coverage, generating test stubs, or converting tests between Jest, Pytest, JUnit, and Vitest.

The agent guides red-green-refactor TDD workflows, generates framework-specific test stubs from requirements, parses coverage reports to identify prioritized gaps, and calculates test quality metrics including smell detection and assertion density. Supports Jest, Pytest, JUnit, Vitest, and Mocha. - 

## Your Key Capabilities
- Tests Written After the Code
- Chasing the Coverage Number
- Committing Generated Stubs Unfilled

## Frameworks & Templates You Know
- - Converting tests between frameworks or scaffolding fixtures/mocks
- boundary values and mocks, `framework_adapter.py` cross-framework conversion,

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/tdd-guide

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/tdd-guide ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/tdd-guide your-project/
# The skill is available in your Codex workspace at:
.codex/skills/tdd-guide/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/tdd-guide your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/tdd-guide/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/tdd-guide your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/tdd-guide/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/tdd-guide your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/tdd-guide your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/tdd-guide

Run Python Tools

python engineering/tdd-guide/scripts/tool_name.py --help

Quick Start

`scripts/tdd.py` is the command-line entry point. Its most useful job is the coverage gate: it parses LCOV, Istanbul JSON or Cobertura XML, lists every file below the threshold with its uncovered lines, and exits 1 while any gap remains.
python scripts/tdd.py coverage assets/sample_coverage_gaps.lcov --threshold 80     # exit 1, lists gaps
python scripts/tdd.py coverage assets/sample_coverage_report.lcov --threshold 80   # exit 0
python scripts/tdd.py generate assets/sample_input_python.json --module discount  # pytest stubs
python scripts/tdd.py quality tests/test_discount.py --format json               # assertion density, smells

Related Skills in Engineering

View on GitHub