tdd-workflow

Drive red-green-refactor cycles for pytest and vitest tasks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/arsen-ask-lx/.claude_file_4all --skill tdd-workflow-arsen-ask-lx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/arsen-ask-lx/.claude_file_4all/tree/main/skills/tdd-workflow
Command: npx skills add https://github.com/arsen-ask-lx/.claude_file_4all --skill tdd-workflow-arsen-ask-lx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDD practices streamline development by ensuring tests guide implementation, helping Audit Platform teams catch defects early and maintain quality across pipelines.

Core Features & Use Cases

  • Provides a repeatable red-green-refactor cycle for backend and frontend tasks within the Planner→Tester→Builder→Reviewer→Archivist workflow.
  • Guides writing tests for each acceptance criterion before code, ensures deterministic test runs, and supports regression testing.
  • Includes practical guidelines for pytest, model_bakery, and vitest usage, plus refactoring and task decomposition strategies.

Quick Start

Write failing tests for the first acceptance criterion, implement the minimal code to pass, and iterate for the next criterion.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I structure a TDD workflow for both backend and frontend testing?

A structured TDD workflow drives red-green-refactor cycles across backend pytest and frontend vitest, ensuring one test per acceptance criterion with deterministic checks before minimal code implementation.

What is the best way to handle AssertionError and ImportError during test-driven development?

Handling AssertionError and ImportError during test-driven development involves stepwise red-green cycles where you write failing tests, implement minimal code to pass, and refactor iteratively within the Planner→Tester→Builder pipeline.

Can I use vitest and pytest together in a single TDD pipeline?

Yes, vitest and pytest can run together in a single TDD pipeline. The workflow guides writing tests for each acceptance criterion across frontend and backend, enforcing deterministic runs and systematic refactoring.

How do I write deterministic tests for each acceptance criterion before implementation?

Writing deterministic tests for each acceptance criterion requires creating one isolated test per criterion, using model_bakery for backend fixtures and vitest for frontend, then running them to fail before writing code.

Does TDD refactoring work with task decomposition strategies in an Audit Platform?

TDD refactoring works with task decomposition in an Audit Platform by breaking down tasks through the Planner→Tester→Builder→Reviewer→Archivist pipeline, guiding stepwise cycles and regression testing across the stack.

Why does my test-driven development cycle stall during the refactor phase?

A test-driven development cycle stalls during refactor when deterministic checks are not enforced. The workflow provides explicit guidance on stepwise cycles, ensuring tests pass before and after code changes to maintain momentum.