Skip to content
Back to skills

Test Driven Development

ASecurity

Test-driven development workflow ensuring deterministic regression locks before writing implementation code.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsperformance

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add 4LPH7/Hive_Mind --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/4lph7-test-driven-development/badge)](https://www.skillsdirectory.com/skills/4lph7-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: Test-driven development workflow ensuring deterministic regression locks before writing implementation code.
triggers:
  - tdd
  - write tests
  - add tests
  - write unit test
  - add unit test
  - test first
  - test coverage
---

# Test-Driven Development (TDD) Protocol

Follow this contract for all bug fixes, features, and refactors:

## 1. Red Phase: Author Failing Specification
- Write a concrete test asserting desired behavior BEFORE writing implementation code.
- Run the test and verify it FAILS for the expected reason (assert failure or missing symbol).
- Ensure the failure is clear, unambiguous, and reproducible.

## 2. Green Phase: Minimum Code Implementation
- Write the minimum amount of code necessary to make the failing test pass.
- Resist the urge to add anticipatory features or over-engineer abstractions.
- Run the test and confirm it passes cleanly.

## 3. Refactor Phase: Clean & Harden
- Eliminate code duplication, improve naming, and strip redundant AI comments.
- Verify tests remain 100% green without changing test assertions.
- Verify performance constraints (latency, memory footprint, startup time).

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.