tdd-workflow

Enforce test-driven development with red-green-refactor cycles and 80% coverage.

1|1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/PedroHBO/opencode-config-skills --skill tdd-workflow-pedrohbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/PedroHBO/opencode-config-skills/tree/main/skills/tdd-workflow
Command: npx skills add https://github.com/PedroHBO/opencode-config-skills --skill tdd-workflow-pedrohbo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps engineers practice test-driven development by ensuring tests guide implementation and achieving 80%+ coverage across unit, integration, and E2E tests.

Core Features & Use Cases

  • Comprehensive test-first workflow for creating new features, fixing bugs, or refactoring with safety.
  • Guidance on unit, integration, and Playwright-based E2E testing patterns.
  • Best practices for mocking external dependencies, validating coverage, and maintaining continuous testing.

Quick Start

Start by writing tests for your feature, then implement the minimal code to satisfy them and verify 80%+ coverage.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I achieve 80%+ test coverage using TDD?

Achieve 80%+ test coverage by driving implementation through test-driven development cycles, validating coverage metrics continuously, and writing minimal code to satisfy tests for features, bug fixes, and refactoring.

What is the best way to structure unit, integration, and E2E testing workflows?

Structure testing workflows by applying test-first patterns across unit, integration, and E2E levels, utilizing red-green-refactor cycles and mocking external dependencies to prevent regression.

Can I use Playwright for end-to-end testing within a TDD workflow?

Playwright is supported for end-to-end testing within the TDD workflow, providing guidance on E2E patterns to validate feature development and ensure comprehensive test coverage.

How do you mock external dependencies during test-driven development?

Mock external dependencies during test-driven development by applying best practices for isolating components, which ensures tests guide implementation safely and prevents external regressions.

When should I use red-green-refactor cycles for refactoring existing code?

Use red-green-refactor cycles for refactoring existing code when you need to maintain safety, prevent regression, and ensure that newly written tests validate the refactored implementation.