📄 SKILL.md

← Vault

name: test-driven-development

description: Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle with test-first approach.

version: 1.1.0

author: Hermes Agent (adapted from obra/superpowers)

license: MIT

metadata:

hermes:

tags: [testing, tdd, development, quality, red-green-refactor]

related_skills: [systematic-debugging, writing-plans, subagent-driven-development]


Test-Driven Development (TDD)

Overview

Write the test first. Watch it fail. Write minimal code to pass.

Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.

Violating the letter of the rules is violating the spirit of the rules.

When to Use

Always:

Final Rule

`

Production code → test exists and failed first

Otherwise → not TDD

`

No exceptions without the user's explicit permission.