tdd SKILL.md skillA

tdd from leek/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add leek/agent-skills/tdd@git:20261020.d6396e8

Pins git:20261020.d6396e8 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
leek/agent-skills
Path
skills/tdd/SKILL.md
Versions recorded
6
Latest version
git:20261020.d6396e8, committed Oct 20, 2026
First version recorded
Aug 15, 2026
Size
5,027 bytes
Repository stars
4
License
MIT

The red → green loop for any stack: seams, what a good test is, and the anti-patterns to refuse. Use when building features test-first or when another skill needs the loop.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# TDD

The red → green loop, for whatever test framework the project already uses. Consult before and during the loop, not after.

Read `GLOSSARY.md` (or the older `CONTEXT.md`) if it exists so test names and interface vocabulary match the project's domain language, and respect ADRs in the area you're touching.

Before writing or reviewing tests, read
[`references/testing-best-practices.md`](references/testing-best-practices.md)
and apply its value gate and rejection rules throughout the loop.

**Stack references.** Identify the stack from its manifests (`composer.json`, `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`). If a matching file exists below, read it before the first cycle: it maps the seams and rules here onto that stack's test tooling. Otherwise apply the rules through the suite's existing conventions.

- Laravel (`laravel/framework` in `composer.json`): [`references/laravel.md`](references/laravel.md)

## Rules of the loop

- **Red before green.** Write the failing test first, watch it fail for the right reason (a missing route 404s, not a typo'd import), then write only enough code to pass. No speculative features.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add leek/agent-skills/tdd@sha256:d15f1795318e803e

The line at the top of this page pins the label git:20261020.d6396e8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_znqakggtvh7s4btz.svg)](https://markdownregistry.com/a/art_znqakggtvh7s4btz)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between Aug 15, 2026 and Oct 20, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20261020.d6396e8 latest2026-10-20 d6396e8 5,027 BA view · diff
git:20261006.cae3ac32026-10-06 cae3ac3 4,872 BA view · diff
git:20261006.192f5aa2026-10-06 192f5aa 4,698 BA view · diff
git:20261005.870ecad2026-10-05 870ecad 4,502 BA view · diff
git:20260831.64fb3ee2026-08-31 64fb3ee 4,473 BA view · diff
git:20260815.14d67ac2026-08-15 14d67ac 4,445 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5027 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

leek/agent-skills · 4 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_znqakggtvh7s4btz
GET https://markdownregistry.com/api/v1/resolve?ref=leek/agent-skills/tdd
GET https://markdownregistry.com/api/v1/blob/d15f1795318e803e9bd3a11b9f9160b3d17b25c5ce73b246647d51d118856b42

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from leek/agent-skills

AGENTS.md AGENTS.md file
leek/agent-skills · AGENTS.md
git:20261020.7c18a10 · audit A · 4 stars
CLAUDE.md CLAUDE.md file
leek/agent-skills · CLAUDE.md
git:20260506.52cef56 · audit B · 4 stars
architecture-satisfaction SKILL.md skill
leek/agent-skills · skills/architecture-satisfaction/SKILL.md · Run a bounded architectural refactor loop toward a stated design.
git:20261019.0f2f385 · audit A · 4 stars
autopilot SKILL.md skill
leek/agent-skills · skills/autopilot/SKILL.md · Drive an existing wayfinder map, spec, or set of tickets to completion through fresh top-level Claude Code, Codex, or…
git:20261006.cae3ac3 · audit A · 4 stars
browser-test SKILL.md skill
leek/agent-skills · skills/browser-test/SKILL.md · Test a web app from a start URL and a plain-language prompt. A planner splits the prompt into cases, cheap parallel…
git:20261011.ab699a5 · audit A · 4 stars
chatter-scout SKILL.md skill
leek/agent-skills · skills/chatter-scout/SKILL.md · Sweep the web for new chatter on a topic, skip what earlier runs already saw, verify what is left, and write one…
git:20261011.024ee5c · audit A · 4 stars
closeout SKILL.md skill
leek/agent-skills · skills/closeout/SKILL.md · Check whether this session is safe to close: unsaved work, running jobs, open PRs, unanswered questions, and steps…
git:20261020.609a4bb · audit A · 4 stars
code-review SKILL.md skill
leek/agent-skills · skills/code-review/SKILL.md · Three-axis review of the diff since a fixed point: Correctness (bugs, failure modes, security), Standards (repo…
git:20261012.631a831 · audit A · 4 stars
code-smells-audit SKILL.md skill
leek/agent-skills · skills/code-smells-audit/SKILL.md · Audit a codebase, path, or branch diff for classic code smells against the 56-smell Luzkan catalog (PHP/Laravel and…
git:20261006.cae3ac3 · audit A · 4 stars
codebase-design SKILL.md skill
leek/agent-skills · skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules in any codebase. Use when the user wants to design or improve a class or…
git:20261006.192f5aa · audit A · 4 stars
commit SKILL.md skill
leek/agent-skills · skills/commit/SKILL.md · Commit the work done in this session, skipping files a parallel session also touched.
git:20261006.cae3ac3 · audit A · 4 stars
dependency-audit SKILL.md skill
leek/agent-skills · skills/dependency-audit/SKILL.md · Run a dependency audit for Composer or npm projects and propose a safe upgrade plan.
git:20261006.cae3ac3 · audit A · 4 stars

Every file in leek/agent-skills

Other files named tdd

tdd SKILL.md skill
yeachan-heo/oh-my-claudecode · skills/tdd/SKILL.md · Test-first at pre-agreed seams — one test, one implementation, tracer-bullet red/green; independent expected values…
git:20261009.7b270a4 · audit A · 40,148 stars
tdd SKILL.md skill
cursor/plugins · pstack/skills/tdd/SKILL.md · Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious…
git:20260923.b0b9c7a · audit A · 13,494 stars
tdd SKILL.md skill
cursor/plugins · harness/pstack/claude-code/skills/tdd/SKILL.md · Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious…
git:20261016.182f2ce · audit A · 13,494 stars
tdd SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/tdd/SKILL.md · 测试驱动开发。适用于用户想用先写测试的方式构建功能或修复缺陷、提到 “red-green-refactor”,或需要集成测试时。
git:20261008.5be0dc1 · audit A · 5,110 stars
tdd SKILL.md skill
wesammustafa/claude-code-everything-you-need-to-know · examples/intermediate/01-first-skill/dot-claude/skills/tdd/SKILL.md · TODO
git:20261006.11cadf7 · audit A · 3,462 stars
tdd SKILL.md skill
michael-denyer/pstack-claude · plugins/pstack/skills/tdd/SKILL.md · Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious…
git:20260923.4a3ef20 · audit A · 3,263 stars
tdd SKILL.md skill
rohitg00/pro-workflow · skills/tdd/SKILL.md · Drive a change through a red-green-refactor loop - failing test first, minimal code to pass, then clean up. Use when…
git:20260718.7f7209d · audit A · 2,922 stars
tdd SKILL.md skill
backnotprop/pstack · skills/tdd/SKILL.md · Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious…
git:20261004.c0c3f13 · audit A · 2,481 stars

Browse by kind, by grade A, or by owner.