Skip to content
Back to skills

Tdd

ASecurity

Implement a behaviour change test-first. Use when adding a feature, fixing a bug, or when the user asks for TDD.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add dimonchik03/quotaware --skill tdd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tdd?

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

Security grade badge for Tdd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dimonchik03-tdd/badge)](https://www.skillsdirectory.com/skills/dimonchik03-tdd)

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: tdd
description: Implement a behaviour change test-first. Use when adding a feature, fixing a bug, or when the user asks for TDD.
---

# TDD loop

1. State the behaviour as one sentence of the form "when X, the system does Y".
2. Locate the public interface the test should go through. Do not test internals.
3. Write one failing test named after that sentence. Run only that test and confirm it fails for the expected reason.
4. Write the smallest change that makes it pass. No speculative generality.
5. Run the test again and confirm it is green.
6. Refactor with the test green: naming, duplication, structure. Re-run after each refactor step.
7. Repeat from step 1 for the next behaviour.
8. Before finishing, run the full test command listed in `AGENTS.md` once.

## Rules

- Never write production code without a failing test that demands it.
- Never change a test and the code it covers in the same step.
- If the test is hard to write, the design is wrong. Stop and fix the design first.

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.