test-red

Write RED tests mapped to SPEC acceptance criteria before production code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/wendeus0/AI-dotfiles --skill test-red
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-red
Source: https://github.com/wendeus0/AI-dotfiles/tree/main/core/skills/test-red
Command: npx skills add https://github.com/wendeus0/AI-dotfiles --skill test-red

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that during a feature's RED phase, tests are written to fail before any production code, driven by an approved SPEC.

Core Features & Use Cases

  • 1:1 mapping: Each acceptance criterion and error case in the SPEC gets a dedicated test.
  • Preproduction RED: Tests are authored before production code to prevent regressions.
  • Clear read order and discipline: The skill enforces a reading order (AGENTS.md, architecture guides, SPEC, related files) and a strict naming convention for tests.

Quick Start

Read AGENTS.md and the SPEC guidance, then draft RED tests that reflect the SPEC before touching production.

Frequently Asked Questions about test-red

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

FAQPage Schema
How do I write RED tests from a feature spec before writing production code?▼

You write RED tests by mapping each acceptance criterion and error case from an approved SPEC to a dedicated test that fails before any production code is written, enforcing the test-driven development RED phase.

What is the RED phase in test-driven development and when do I need it?▼

The RED phase in test-driven development is the initial step where you write failing tests that validate requirements before production code exists. You need it when a feature has an approved SPEC but existing tests are inadequate.

Do I need an approved SPEC to start writing unit tests for test-driven development?▼

Yes, you need an approved SPEC that contains testable criteria to start writing RED tests. The SPEC must be finalized and present, and the resulting tests must map one-to-one to its acceptance criteria.

How do I ensure my unit tests match every acceptance criterion in my feature spec?▼

You ensure a one-to-one mapping by giving each acceptance criterion and error case in the SPEC a dedicated test, applying strict naming conventions and a clear reading order of architecture guides and the SPEC.

What's the difference between writing RED tests and writing regular unit tests?▼

RED tests are authored pre-production to intentionally fail and validate requirements from an approved SPEC, whereas regular unit tests are often written after production code and may not map one-to-one to spec acceptance criteria.

When should I not use RED tests for my software testing workflow?▼

You should not write RED tests when your SPEC is not yet approved or lacks testable criteria, or when existing tests are already adequate for the feature's requirements.