sc-tdd

Automate the Red-Green-Refactor cycle with Python validation scripts.

19|2|Updated Aug 26, 2025
One-click install
npx skills add https://github.com/Tony363/SuperClaude --skill sc-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-tdd
Source: https://github.com/Tony363/SuperClaude/tree/main/.claude/skills/sc-tdd
Command: npx skills add https://github.com/Tony363/SuperClaude --skill sc-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, jest, vitest, go, cargo, and includes scripts (resource) components.

What problem does it solve?

This Skill enforces a rigorous Test-Driven Development (TDD) workflow, preventing common anti-patterns and ensuring tests are written and validated before implementation.

Core Features & Use Cases

  • Red-Green-Refactor Enforcement: Guides users through the strict 7-step TDD cycle.
  • Automated Validation: Uses scripts to validate test failures (RED) and successes (GREEN), blocking progress if rules are broken.
  • Framework Agnostic: Auto-detects or accepts specified testing frameworks (pytest, jest, vitest, etc.).
  • Use Case: When developing a new feature, this skill ensures you write a failing test first, then the minimal code to pass it, and finally refactor, all while maintaining a verifiable state.

Quick Start

Initiate the TDD workflow for a new feature by describing it.

Frequently Asked Questions about sc-tdd

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

FAQPage Schema
How do I enforce a strict Red-Green-Refactor TDD workflow in my development process?

You can enforce a strict Red-Green-Refactor TDD workflow by using scripts that validate semantic test failures during the RED phase and prevent code commits during the GREEN phase until tests pass.

What is the best way to prevent code commits until tests pass in test-driven development?

Preventing code commits until tests pass in TDD requires automated state management scripts that validate semantic test failures and successes, blocking progress if workflow rules are broken.

Can I use automated TDD validation with pytest, jest, vitest, or cargo?

Automated TDD validation supports pytest, jest, vitest, go, and cargo by auto-detecting the testing frameworks to validate the Red-Green-Refactor cycle across different development environments.

How do I validate semantic test failures before writing implementation code?

Validating semantic test failures before writing implementation code requires using Python validation scripts to verify that tests fail for the correct semantic reasons during the initial TDD RED phase.

What are the common TDD anti-patterns when implementing a new feature?

Common TDD anti-patterns when implementing a new feature include writing implementation before tests and skipping refactoring, which automated Red-Green-Refactor enforcement prevents through strict cycle validation.

Why does my development workflow allow code commits when tests fail?

Your development workflow allows code commits when tests fail because it lacks automated validation scripts to enforce TDD state management, meaning semantic test failures do not block progress.