tdd SKILL.md skillA

tdd from gufranco/claude-engineering-rules is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add gufranco/claude-engineering-rules/tdd@git:20261028.af4ca3e

Pins git:20261028.af4ca3e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
gufranco/claude-engineering-rules
Path
skills/tdd/SKILL.md
Versions recorded
5
Latest version
git:20261028.af4ca3e, committed Oct 28, 2026
First version recorded
Jul 28, 2026
Size
8,904 bytes
Repository stars
3
License
MIT

Red-green-refactor TDD loop for a single behavior. Writes a failing test first, runs it to confirm red, implements minimum code to make it green, then refactors with the test as a safety net. Use when user says "tdd", "test first", "red green refactor", "write the test first", or wants a disciplined test-first cycle. For bulk test backfill, use /test; for debugging existing failures, use /investigate; for planning a feature, use /plan.

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

## Overview

Red-green-refactor loop. One behavior at a time. The test must fail before any production code is written.

## When to Use

- The user says "tdd", "test first", "red green refactor", or "write the test first".
- One behavior is small enough to state in a single sentence with a single observable outcome, such as `/tdd user.create rejects empty email`.
- A bug fix needs a reproduction test that fails before the fix lands.

For backfilling tests over existing code, use `/test`; for diagnosing a failure that already exists, use `/investigate`; for designing a feature before the first cycle, use `/plan`.

## Anti-pattern: write-all-tests-then-all-code

Never write the full test suite first and then implement against it in one batch. That pattern produces tests that describe an imagined shape, not the actual behavior the code ends up needing. The tests pass on shape and fail on behavior; they fail on shape and pass on behavior. Either way they stop being a safety net.

Always work in vertical slices: one test, then the smallest implementation that turns the test green, then the next test.

```mermaid
flowchart LR
    A[test 1 red] --> B[impl 1 green]
    B --> C[test 2 red]
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add gufranco/claude-engineering-rules/tdd@sha256:b56e2ac5b4e7d8f0

The line at the top of this page pins the label git:20261028.af4ca3e, 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_6ajhgca6cfhgdmbu.svg)](https://markdownregistry.com/a/art_6ajhgca6cfhgdmbu)

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

Versions

The registry has recorded 5 versions of this file, between Jul 28, 2026 and Oct 28, 2026, about one every 23 days.

versioncommittedcommitsizeaudit
git:20261028.af4ca3e latest2026-10-28 af4ca3e 8,904 BA view · diff
git:20261013.7233f742026-10-13 7233f74 8,922 BA view · diff
git:20261012.d0865132026-10-12 d086513 8,747 BA view · diff
git:20260731.0da2c422026-07-31 0da2c42 5,903 BA view · diff
git:20260728.8a9b2fb2026-07-28 8a9b2fb 5,746 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 (8904 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

gufranco/claude-engineering-rules · 3 stars · license MIT · pushed 2026-10-30 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6ajhgca6cfhgdmbu
GET https://markdownregistry.com/api/v1/resolve?ref=gufranco/claude-engineering-rules/tdd
GET https://markdownregistry.com/api/v1/blob/b56e2ac5b4e7d8f0e730c8cddfa2020950f0672589d8e4d28ccc0d5b2ee346c7

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 gufranco/claude-engineering-rules

CLAUDE.md CLAUDE.md file
gufranco/claude-engineering-rules · CLAUDE.md
git:20261029.8b030ee · audit A · 3 stars
aside SKILL.md skill
gufranco/claude-engineering-rules · skills/aside/SKILL.md · Mid-task side question handler. Freezes the active task state, answers a side question without state mutation, then…
git:20261012.84ebb18 · audit A · 3 stars
assessment SKILL.md skill
gufranco/claude-engineering-rules · skills/assessment/SKILL.md · Audit an implementation's architecture for completeness, missing patterns, and planted defects before a take-home or…
git:20261029.efb0280 · audit A · 3 stars
audit SKILL.md skill
gufranco/claude-engineering-rules · skills/audit/SKILL.md · Security audit across dependencies, secrets, Docker, code patterns, images, STRIDE, and OWASP. Covers dependency…
git:20261029.9c8290b · audit B · 3 stars
benchmark SKILL.md skill
gufranco/claude-engineering-rules · skills/benchmark/SKILL.md · Measure API latency, bundle size, and database query time, and compare them against saved baselines to catch…
git:20261013.02cb8cd · audit A · 3 stars
brain SKILL.md skill
gufranco/claude-engineering-rules · skills/brain/SKILL.md · Read from and write to the second brain vault. Subcommands - capture (default), ingest, ask, link, health, refresh…
git:20261022.be3b951 · audit A · 3 stars
checkpoint SKILL.md skill
gufranco/claude-engineering-rules · skills/checkpoint/SKILL.md · Save and resume working state across sessions, with subcommands save, resume, and list. Captures git state, decisions…
git:20261013.02cb8cd · audit A · 3 stars
cleanup SKILL.md skill
gufranco/claude-engineering-rules · skills/cleanup/SKILL.md · List stale branches, long-open PRs, merged branches, and orphaned worktrees, then close or delete each one with…
git:20261013.02cb8cd · audit A · 3 stars
concise-mode SKILL.md skill
gufranco/claude-engineering-rules · skills/concise-mode/SKILL.md · Opt-in terse-reply mode that drops articles, pleasantries, filler, and hedging while keeping full technical accuracy…
git:20261012.84ebb18 · audit A · 3 stars
cross-model SKILL.md skill
gufranco/claude-engineering-rules · skills/cross-model/SKILL.md · Consult a different model for orthogonal reasoning on a consequential decision, especially when confident. Discovers…
git:20261012.84ebb18 · audit A · 3 stars
deploy SKILL.md skill
gufranco/claude-engineering-rules · skills/deploy/SKILL.md · Merge a shipped PR, verify the deployment, and monitor post-deploy health, with land and canary subcommands.
git:20261013.02cb8cd · audit A · 3 stars
design SKILL.md skill
gufranco/claude-engineering-rules · skills/design/SKILL.md · Design consultation, variant exploration, and design system scaffolding, with subcommands consult (default), variants…
git:20261013.02cb8cd · audit A · 3 stars

Every file in gufranco/claude-engineering-rules

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,492 stars
tdd SKILL.md skill
alirezarezvani/claude-skills · .gemini/skills/tdd/SKILL.md
git:20260309.8902ba7 · audit C · 29,054 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 · 15,125 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 · 15,125 stars
tdd SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/tdd/SKILL.md · 测试驱动开发。适用于用户想用先写测试的方式构建功能或修复缺陷、提到 “red-green-refactor”,或需要集成测试时。
git:20261028.c48fd4a · audit A · 5,433 stars
tdd SKILL.md skill
nightly-labs/openbot · marketplace/production-catalog/bundles/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:20261013.9e6954c · audit A · 5,267 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,776 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:20261026.676831f · audit A · 3,518 stars

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