tdd-workflow

Automate RED-GREEN-REFACTOR cycles for backend features and APIs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that every new feature or API follows a Test-Driven Development approach: RED → GREEN → REFACTOR, preventing regressions and improving code quality. It coordinates tests, implementations, and reviews using subagents to maintain context.

Core Features & Use Cases

  • RED Phase: Automatically create failing integration tests before any code is written.
  • GREEN Phase: Generate minimal implementation to satisfy tests with existing patterns.
  • REFACTOR Phase: Conduct quality checks and ensure long-term maintainability.
  • Use Case: When a developer asks to add a new API, the Skill drives the full TDD cycle, preserving context and ensuring tests exist first.

Quick Start

Say "Add new feature" and let the TDD workflow orchestrate RED, GREEN, and REFACTOR phases.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce test-driven development in my API backend?

Test-driven development enforces writing failing tests before implementation. This Skill automates the TDD workflow—RED phase creates integration tests, GREEN phase generates minimal code to pass them, REFACTOR phase reviews quality—coordinating subagents across feature and API development to maintain code reliability.

Can I automate the RED-GREEN-REFACTOR cycle for new features?

Yes. This Skill orchestrates the complete TDD cycle: it generates failing integration tests first, creates minimal implementations using existing patterns, then conducts quality checks. Subagent coordination preserves context across all three phases for consistent, tested features.

What's required to set up test automation for API endpoints?

Integration test scaffolding with in-memory SQLite, trigger keywords to initiate workflows, and subagent coordination (test-writer, code-generator, test-runner, code-reviewer) are prerequisites. The Skill requires full test-suite verification and minimal implementation patterns before deployment.

How does this prevent regressions in backend development?

TDD prevents regressions by requiring tests to pass before code merges. This Skill enforces strict test coverage on all new features and APIs, runs full test-suite verification, and coordinates code review—ensuring every addition is validated against existing behavior.

Can I use this for both feature additions and API creation?

Yes. This Skill applies to feature additions, API endpoint creation, and implementation tasks across the backend. It guides the RED-GREEN-REFACTOR cycle uniformly, maintaining consistent test-first discipline regardless of task type.