Skip to content
Back to skills

Test First

ASecurity

Fix a bug or add behaviour by writing a failing test first, then the smallest change that makes it pass. Use for any bug fix or new behaviour in code that has tests.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agents

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add naidx0/nova --skill test-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test First?

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

Security grade badge for Test First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naidx0-test-first/badge)](https://www.skillsdirectory.com/skills/naidx0-test-first)

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
description: Fix a bug or add behaviour by writing a failing test first, then the smallest change that makes it pass. Use for any bug fix or new behaviour in code that has tests.
---

# Test first

1. Reproduce: write a test that fails for the reason the report gives. Run it and read the failure.
2. Make the smallest change that turns it green. Never change the test to fit the code.
3. Add a negative control where it helps: a case that must still be refused, or must still pass.
4. Run the whole suite and read its bare exit code, not a summary line.
5. Commit the test and the fix together, saying what was wrong and why the change fixes it.

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.