
Tdd Guide
Test-first development skill that generates tests, mocks, and coverage analysis across Jest, Pytest, JUnit, Vitest, and Mocha.
- skills.sh installs
- 1K
- GitHub stars
- 30.3K
- last updated
- Aug 21, 2026
What it does
- Covers red-green-refactor workflows, test generation from source code, and coverage gap analysis with prioritized P0/P1/P2 output
- Includes
test_generator.py,coverage_analyzer.py,tdd_workflow.py, andfixture_generator.pyfor tests, reports, phase checks, and mocks - Derives tests from numbered acceptance criteria in
specs/<feature>.mdso each criterion maps to at least one test case - Designed for projects adding tests before or after code, raising coverage toward an 80% threshold, or mocking dependencies
Install
$ npx -y skills add alirezarezvani/claude-skills --skill tdd-guide -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
TDD Guide
Test-driven development skill for generating tests, analyzing coverage, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, and Vitest.
Workflows
Generate Tests from Code
- Provide source code (TypeScript, JavaScript, Python, Java)
- Specify target framework (Jest, Pytest, JUnit, Vitest)
- Run
test_generator.pywith requirements - Review generated test stubs
- Validation: Tests compile and cover happy path, error cases, edge cases
Analyze Coverage Gaps
- Generate coverage report from test runner (
npm test -- --coverage) - Run
coverage_analyzer.pyon LCOV/JSON/XML report - Review prioritized gaps (P0/P1/P2)
- Generate missing tests for uncovered paths
- Validation: Coverage meets target threshold (typically 80%+)
TDD New Feature
- Write failing test first (RED)
- Run
tdd_workflow.py --phase redto validate - Implement minimal code to pass (GREEN)
- Run
tdd_workflow.py --phase greento validate - Refactor while keeping tests green (REFACTOR)
- Validation: All tests pass after each cycle
Examples
Test Generation — Input → Output (Pytest)
Details
- Repository
- github.com/alirezarezvani/claude-skills
- Category
- Testing & QA
- First seen
- May 16, 2026
More from alirezarezvani/claude-skills
All 259- Gdpr Dsgvo Expert1K
- A11y Audit1K
- Ux Researcher Designer1K
- Senior Prompt Engineer999
- Senior Data Scientist991
- Agile Product Owner957
- Senior Ml Engineer954
- Content Creator944
- Cto Advisor938
- Senior Secops935
- Tech Stack Evaluator933
- Content Humanizer922
- App Store Optimization910
- Cfo Advisor906
- Cold Email886
- Information Security Manager Iso27001883
- Risk Management Specialist883
- Marketing Strategy Pmm882
- Product Strategist880
- Security Pen Testing880
- Adversarial Reviewer878
- Database Designer875
- Marketing Demand Acquisition860
- Red Team857
Similar to Tdd Guide
More Testing & QA
test-driven-developmentbobmatnyc/claude-mpm-skills406 installsLanguage-agnostic TDD guide covering red-green-refactor, test structure, mocking, and coverage targets for any stack.
senior-qaalirezarezvani/claude-skills1.2K installsGenerates Jest, React Testing Library, MSW, and Playwright tests for React and Next.js apps.
tddpproenca/dot-skills423 installsStructured guide of 42 test-driven development rules for red-green-refactor workflow and test design.
python-testing-patternswshobson/agents40.7K installsComprehensive pytest guide covering fixtures, mocking, parameterization, and test-driven development workflows for Python.