tdd-guideTest-driven development workflow with test generation, coverage analysis, and multi-framework support
Install via ClawdBot CLI:
clawdbot install alirezarezvani/tdd-guideTest-driven development skill for generating tests, analyzing coverage, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, and Vitest.
| Capability | Description |
|------------|-------------|
| Test Generation | Convert requirements or code into test cases with proper structure |
| Coverage Analysis | Parse LCOV/JSON/XML reports, identify gaps, prioritize fixes |
| TDD Workflow | Guide red-green-refactor cycles with validation |
| Framework Adapters | Generate tests for Jest, Pytest, JUnit, Vitest, Mocha |
| Quality Scoring | Assess test isolation, assertions, naming, detect test smells |
| Fixture Generation | Create realistic test data, mocks, and factories |
test_generator.py with requirementsnpm test -- --coverage)coverage_analyzer.py on LCOV/JSON/XML reporttdd_workflow.py --phase red to validatetdd_workflow.py --phase green to validate| Tool | Purpose | Usage |
|------|---------|-------|
| test_generator.py | Generate test cases from code/requirements | python scripts/test_generator.py --input source.py --framework pytest |
| coverage_analyzer.py | Parse and analyze coverage reports | python scripts/coverage_analyzer.py --report lcov.info --threshold 80 |
| tdd_workflow.py | Guide red-green-refactor cycles | python scripts/tdd_workflow.py --phase red --test test_auth.py |
| framework_adapter.py | Convert tests between frameworks | python scripts/framework_adapter.py --from jest --to pytest |
| fixture_generator.py | Generate test data and mocks | python scripts/fixture_generator.py --entity User --count 5 |
| metrics_calculator.py | Calculate test quality metrics | python scripts/metrics_calculator.py --tests tests/ |
| format_detector.py | Detect language and framework | python scripts/format_detector.py --file source.ts |
| output_formatter.py | Format output for CLI/desktop/CI | python scripts/output_formatter.py --format markdown |
For Test Generation:
For Coverage Analysis:
For TDD Workflow:
| Scope | Details |
|-------|---------|
| Unit test focus | Integration and E2E tests require different patterns |
| Static analysis | Cannot execute tests or measure runtime behavior |
| Language support | Best for TypeScript, JavaScript, Python, Java |
| Report formats | LCOV, JSON, XML only; other formats need conversion |
| Generated tests | Provide scaffolding; require human review for complex logic |
When to use other tools:
Generated Mar 1, 2026
A team building a React/Node.js web app uses the skill to generate Jest tests for new features, ensuring TDD adherence. They analyze coverage reports to identify gaps in authentication modules, prioritizing fixes to maintain 85%+ coverage.
A fintech startup developing a Python-based REST API employs the skill to create Pytest tests for endpoints, guiding red-green-refactor cycles. Coverage analysis on JSON reports helps uncover untested error handling in transaction logic.
An enterprise with a Java monolith uses the skill to generate JUnit tests for untested legacy modules, improving maintainability. The TDD workflow assists in safely refactoring critical business logic while validating test passes.
A coding bootcamp integrates the skill into their curriculum to teach TDD principles. Students use it to generate tests for JavaScript and Python exercises, analyzing coverage to learn best practices in test isolation and quality.
Maintainers of a TypeScript library use the skill to automate test generation for new contributions, ensuring consistency with Vitest. Coverage analysis on LCOV reports identifies low-coverage areas in utility functions for community fixes.
Offer the skill as a cloud-based service with tiered pricing (e.g., free for individuals, paid for teams). Revenue comes from monthly subscriptions based on usage metrics like test generations or coverage analyses.
Sell on-premise licenses to large organizations for integration into their CI/CD pipelines. Revenue is generated through one-time license fees or annual support contracts, targeting industries like finance and healthcare.
Provide a free version with basic test generation and coverage analysis, while charging for advanced features like multi-framework adapters or priority support. Revenue streams include in-app purchases and upsells.
š¬ Integration Tip
Integrate the skill into CI/CD pipelines by running coverage_analyzer.py post-test to enforce thresholds, and use test_generator.py during code reviews to automate test scaffolding.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.