Skip to content
Back to skills

Tdd Workflows Tdd Cycle

ASecurity

Strict execution of the TDD cycle Phases 1 to 6 with RED-GREEN-REFACTOR gates.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 18, 2026
ai-agentsgobashgit

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned October 18, 2026

npx -y skills add rayrabbit-ai/ai-engineering --skill tdd-workflows-tdd-cycle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd Workflows Tdd Cycle?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tdd Workflows Tdd Cycle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rayrabbit-ai-tdd-workflows-tdd-cycle/badge)](https://www.skillsdirectory.com/skills/rayrabbit-ai-tdd-workflows-tdd-cycle)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tdd-workflows-tdd-cycle
description: Strict execution of the TDD cycle Phases 1 to 6 with RED-GREEN-REFACTOR gates.
allowed-tools: Bash(openspec:*)
license: MIT
compatibility: Requires openspec CLI.
metadata:
  author: rayrabbit-ai
  version: "1.0"
  generatedBy: "1.6.0"
---

## Instrucciones de Ejecución TDD

Ejecuta un ciclo riguroso de Test-Driven Development aplicando las 15 Invariantes del repositorio:

### Umbrales de Cobertura
- Cobertura mínima de líneas: 80%
- Cobertura mínima de ramas: 75%
- Cobertura de rutas críticas: 100%

### Triggers de Refactorización
- Complejidad ciclomática > 10
- Longitud de función/método > 20 líneas
- Longitud de clase > 200 líneas
- Duplicación de bloques de código > 3 líneas

### Fases del Ciclo
1. **Fase 1: Especificación y Diseño del Test**: Define escenarios Given/When/Then, casos límite y matriz de errores.
2. **Fase 2: RED (Test que falla)**:
   - Escribe el test unitario antes de implementar código de producción.
   - Ejecuta en terminal: demuestra que falla por falta de implementación (no por errores de sintaxis).
   - Commit: `test(red): <descripción>`.
   - **COMPUERTA**: STOP y reporte al operador.
3. **Fase 3: GREEN (Implementación mínima)**:
   - Implementa ÚNICAMENTE el código necesario para pasar el test en rojo.
   - Ejecuta la suite completa: verifica que pasa y valida la suite `@legacy_baseline`.
   - Verifica reporte de cobertura.
   - Commit: `feat(green): <descripción>`.
   - **COMPUERTA**: STOP y reporte al operador.
4. **Fase 4: REFACTOR (Calidad y limpieza)**:
   - Reduce complejidad, elimina duplicaciones y aplica principios SOLID.
   - Mantén la suite verde tras cada modificación.
   - Commit: `refactor: <descripción>`.
5. **Fase 5: INTEGRATION (Pruebas de Interfaz)**:
   - Diseña tests de integración que modelen la interacción entre módulos (fail-first).
   - Implementa integración mínima hasta verde.
   - Commit: `test(integration): <descripción>`.
6. **Fase 6: HARDENING (Casos límite y revisión final)**:
   - Añade pruebas de stress, boundary y error recovery.
   - Commit: `chore(hardening): <descripción>`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.