tdd_workflow

Generates tests, analyzes coverage reports, and guides red-green-refactor TDD cycles across frameworks.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/jvsandhu/agentic-skills --skill tdd-workflow-jvsandhu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd_workflow
Source: https://github.com/jvsandhu/agentic-skills/tree/main/skills/tdd_workflow
Command: npx skills add https://github.com/jvsandhu/agentic-skills --skill tdd-workflow-jvsandhu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing and maintaining tests is often skipped or done inconsistently, leaving codebases with untested edge cases, low coverage, and fragile logic. This Skill enforces a disciplined Test Driven Development workflow by generating test cases, analyzing coverage gaps, and guiding the red-green-refactor cycle. ## Core Features & Use Cases - Test Generation: Convert requirements, user stories, or source code into executable test cases with fixtures, mocks, and proper scaffolding for Jest, Pytest, JUnit, Vitest, Mocha, and RSpec. - Coverage Analysis: Parse LCOV, JSON, and XML coverage reports to identify untested branches and produce prioritized P0/P1/P2 improvement recommendations. - TDD Workflow Guidance: Step-by-step red-green-refactor coaching with checkpoints for test isolation, behavior-focused assertions, and coverage targets. - Use Case: Paste an authentication module and ask for comprehensive tests covering happy paths, error cases, and edge cases, then receive ready-to-run test files plus a quality review. ## Quick Start Ask the agent to generate comprehensive tests for your module by pasting the source code or providing a file path and specifying the target framework.

Frequently Asked Questions about tdd_workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit tests from existing source code?

Provide the source file path or paste the code directly, and the skill detects the language and framework automatically. It generates test files with proper imports, describe blocks, fixtures, and mocks for Jest, Pytest, JUnit, or Vitest.

How to analyze test coverage gaps in my project?

Supply a coverage report in LCOV, JSON, or Cobertura XML format, and the skill parses line, branch, and function coverage. It identifies untested paths and returns prioritized P0/P1/P2 recommendations for closing gaps.

Can I convert Jest tests to Pytest format?

Yes, the framework adapter supports converting test files between Jest, Pytest, JUnit, Vitest, Mocha, and RSpec. Paste the existing tests and specify the target framework to receive translated test code.

What is the red-green-refactor TDD workflow?

Red-green-refactor is a three-phase cycle: write a failing test that defines the desired behavior, write minimal code to make it pass, then refactor while keeping tests green. The skill guides each phase with checkpoints for isolation and coverage targets.

Which languages and input formats are supported?

The skill supports TypeScript, JavaScript, Python, and Java source code, provided as file paths or pasted snippets. It also accepts coverage reports, JUnit XML test results, user stories, and OpenAPI specifications as inputs.