Skip to content
Back to skills

Test First Development

ASecurity

Use when implementing any feature or bugfix, before writing implementation code. You MUST write a failing test first, run it and watch it fail for the expected reason, then write the minimal code that makes it pass. Code written before its test is deleted and written again from the test.

  • 1,567 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
ai-agents

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add autonomous-ai/openharness --skill test-first-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test First Development?

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

Security grade badge for Test First Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/autonomous-ai-test-first-development/badge)](https://www.skillsdirectory.com/skills/autonomous-ai-test-first-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-first-development
description: "Use when implementing any feature or bugfix, before writing implementation code. You MUST write a failing test first, run it and watch it fail for the expected reason, then write the minimal code that makes it pass. Code written before its test is deleted and written again from the test."
---

Red, green, refactor. Write one small test for one behavior, run it and read the failure; a test that passes at once tests nothing new. Write the least code that turns it green, run the whole file, then clean up names and duplication while it stays green. Repeat for the next behavior. Mocks only where a real dependency cannot run in a test.

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.