Skip to content
Back to skills

Test Driven Development

ASecurity

Use when implementing a behavior change, bug fix, or refactor that can be expressed through automated tests.

  • 11 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 13, 2026
ai-agentsexpress

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 13, 2026

npx -y skills add z-Zihan/Evir --skill test-driven-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Driven Development?

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

Security grade badge for Test Driven Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z-zihan-test-driven-development/badge)](https://www.skillsdirectory.com/skills/z-zihan-test-driven-development)

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: test-driven-development
description: Use when implementing a behavior change, bug fix, or refactor that can be expressed through automated tests.
---

# Test-Driven Development

Adapted for Evir from Superpowers `test-driven-development`.

## Red, green, refactor

### Red

Write one minimal test describing observable behavior. Prefer real collaborators over mocks;
mock only boundaries that are unavailable, slow, destructive, or nondeterministic. Run the
focused test and confirm it fails because the behavior is missing, not because the test is
broken.

### Green

Implement the smallest production change that makes the test pass. Do not add speculative
options, adjacent cleanup, or a second behavior. Run the focused test, then the affected suite.

### Refactor

Only after green, improve names and remove duplication without changing behavior. Keep tests
green after every meaningful edit.

## Test quality

- Name the behavior and condition, not the implementation method.
- Assert public output, state transition, persisted data, emitted event, or visible UI.
- Include the failure or boundary case that motivated the change.
- Avoid snapshots for logic and avoid tests that merely restate mocks.
- A passing new test without an observed red state is weaker evidence; report that limitation.

## Exceptions

For generated files, dependency metadata, exploratory prototypes, or environments with no
viable test harness, use the strongest deterministic check available and explain why a red-green
cycle was not practical. Never delete or weaken existing tests to reach green.

Files in this skill

  • SKILL.md1.6 KB
  • manifest.json1.2 KB

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.