tdd-guide · borghei — Claude Code skill: TDD and installation
The tdd-guide Claude Code skill guides red-green-refactor cycles and works with test suites. It can draft tests from requirements and inspect coverage reports for gaps.
LicenseRef-MIT-Commons-Clause 143 installs ★ 1,183 updated 2026-11-08
npx skills add borghei/Claude-Skills --skill tdd-guide -a claude-codeWhat tdd-guide does
The skill guides red-green-refactor steps, drafts tests from requirements, and reads LCOV, Istanbul JSON, or Cobertura XML coverage reports. It can also assess test quality and convert tests across Jest, Vitest, Pytest, JUnit, and other supported frameworks.
The package includes scripts/tdd.py, a CLI with coverage, generate, and quality commands. coverage reports files and lines below the target; it returns exit code 1 while gaps remain. Its default threshold is 80, and --threshold lets you set another value.
Generated stubs fail until you add a real assertion. To generate them, provide a framework and requirements or an API specification; coverage analysis takes a report file.
What it helps with
- write a failing test for a new feature
- draft tests from requirements or an API specification
- find uncovered files and lines in a coverage report
- assess test quality and flag test smells
- convert tests between Jest, Pytest, JUnit, and Vitest
Example prompts for the agent
- Generate pytest stubs from
requirements.jsonwithpython scripts/tdd.py generate requirements.json --framework pytest. - Inspect
coverage.lcovwith a threshold of 80 usingpython scripts/tdd.py coverage coverage.lcov --threshold 80. - Assess
tests/test_discount.pyand return JSON withpython scripts/tdd.py quality tests/test_discount.py --format json.
How to install tdd-guide
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill tdd-guide -a claude-code2Manually: put the files in place
~/.claude/skills/tdd-guide/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/tdd-guide/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill tdd-guide -a codex2Manually: put the files in place
.agents/skills/tdd-guide/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill tdd-guide -a cursor2Manually: put the files in place
.cursor/skills/tdd-guide/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install borghei/Claude-Skills engineering/tdd-guide/SKILL.md2Manually: put the files in place
.github/skills/tdd-guide/SKILL.md1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill tdd-guide -a gemini-cli2Platform CLI
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/tdd-guideManually: put the files in place
.devin/skills/tdd-guide/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill tdd-guide -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about tdd-guide
How do I install tdd-guide in Claude Code?
Run npx skills add borghei/Claude-Skills --skill tdd-guide -a claude-code. The skill file is at ~/.claude/skills/tdd-guide/SKILL.md.
What does tdd-guide do?
It guides red-green-refactor work, drafts test stubs from requirements, and examines coverage reports for gaps. It also scores test quality and supports test conversion across frameworks.
Which coverage report formats does tdd-guide accept?
Its coverage command reads LCOV, Istanbul JSON, and Cobertura XML. It reports uncovered lines and files below the chosen threshold.
Similar skills
All skills for Testing and QA →tdd-guide by other authors comes first.