tdd-guide

Generate tests, analyze coverage reports, and guide red-green-refactor TDD workflows across frameworks.

2|1|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/bhaktofmahakal/ai-counsellor-hf --skill tdd-guide-bhaktofmahakal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd-guide
Source: https://github.com/bhaktofmahakal/ai-counsellor-hf/tree/main/.claude/skills/tdd-guide
Command: npx skills add https://github.com/bhaktofmahakal/ai-counsellor-hf --skill tdd-guide-bhaktofmahakal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Writing comprehensive tests and maintaining coverage targets is time-consuming, and teams struggle to identify untested code paths, weak assertions, and gaps in their test suites across multiple languages and frameworks. ## Core Features & Use Cases - Test Generation: Convert user stories, API specs, and source code into executable test cases with proper scaffolding for Jest, Pytest, JUnit, Vitest, and Mocha. - Coverage Analysis: Parse LCOV, JSON, and XML coverage reports to calculate line, branch, and function coverage, then produce prioritized P0/P1/P2 gap recommendations. - TDD Workflow Guidance: Step-by-step red-green-refactor phase validation, test quality scoring, fixture generation, and framework migration. - Use Case: Paste a TypeScript password validation function and receive a complete Jest test file covering happy paths, error cases, and boundary values, plus a coverage report analysis highlighting untested branches. ## Quick Start Ask the assistant to generate Jest tests for a pasted function covering happy paths, error cases, and edge cases.

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 requirements automatically?▼

Provide a user story, API spec, or source code along with your target framework such as Jest or Pytest. The skill generates complete test files with arrange-act-assert structure covering happy paths, error cases, and boundary values.

How to analyze test coverage from an LCOV report?▼

Paste the raw LCOV content or provide the report file path. The analyzer parses line, branch, and function coverage, identifies uncovered lines per file, and returns prioritized P0/P1/P2 recommendations against your target threshold.

Which testing frameworks are supported for test generation?▼

Supported frameworks include Jest 29+, Vitest 0.34+, Mocha, Pytest 7+, unittest, and JUnit 5.9+. The skill auto-detects the framework from imports and syntax, or you can specify it explicitly.

Can I convert Jest tests to Pytest format?▼

Yes, the framework adapter translates test structure, assertions, and setup/teardown hooks between frameworks. Paste the source tests and specify the target framework to receive equivalent tests with matching coverage.

What are the limitations of automated test generation?▼

Generated tests provide scaffolding that requires human review, and the skill performs static analysis only without executing tests. It focuses on unit tests and is not suited for E2E, performance, or security testing.