tdd SKILL.md skillA

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

Install it, pinned
mdr add madnpc/skills/tdd@git:20260905.d7ecf7d

Pins git:20260905.d7ecf7d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
madnpc/skills
Path
skills/tdd/SKILL.md
Versions recorded
5
Latest version
git:20260905.d7ecf7d, committed Sep 5, 2026
First version recorded
Jun 24, 2026
Size
4,174 bytes
Repository stars
3
License
none declared

适用于以测试先行方式实现或修复高风险行为,尤其是核心规则、回归与集成路径。Use when implementing or repairing high-risk behavior test-first, especially core rules, regressions, integration paths, or changes that require red-green-refactor. 中文关键词:高风险逻辑、测试驱动开发、先写测试、红绿重构、回归测试、集成测试、核心规则。.

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

# Test-Driven Development

## 输出语言

默认使用简体中文与用户沟通,并以简体中文编写测试策略、测试说明和实现总结。用户明确指定其他语言或既有文档语言另有约定时,遵从该约定;代码、命令、产品名和必须保持原文的引用不强行翻译。

TDD is the red → green loop. This skill is the reference that makes that loop produce tests worth keeping: what a good test is, where tests go, the anti-patterns, and the rules of the loop. Every section applies on every cycle — consult them before and during the loop, not after.

When exploring the codebase, read `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.

## What a good test is

Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists — and survives refactors because it doesn't care about internal structure.

See [tests.md](tests.md) for examples and [mocking.md](mocking.md) for mocking guidelines.

## Seams — where tests go
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add madnpc/skills/tdd@sha256:499a32b7abf93206

The line at the top of this page pins the label git:20260905.d7ecf7d, 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_fyjpykwosocxfrx6.svg)](https://markdownregistry.com/a/art_fyjpykwosocxfrx6)

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

Versions

The registry has recorded 5 versions of this file, between Jun 24, 2026 and Sep 5, 2026, about one every 18 days.

versioncommittedcommitsizeaudit
git:20260905.d7ecf7d latest2026-09-05 d7ecf7d 4,174 BA view · diff
git:20260702.eb2c7d72026-07-02 eb2c7d7 3,843 BA view · diff
git:20260624.2d5338c2026-06-24 2d5338c 4,923 BA view · diff
git:20260624.211e8952026-06-24 211e895 4,631 BA view · diff
git:20260624.055aa442026-06-24 055aa44 4,606 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 (4174 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

madnpc/skills · 3 stars · license none declared · pushed 2026-09-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_fyjpykwosocxfrx6
GET https://markdownregistry.com/api/v1/resolve?ref=madnpc/skills/tdd
GET https://markdownregistry.com/api/v1/blob/499a32b7abf932068e844a74a15fc720b4ae898955372cfb9042fa03b87fd32c

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 madnpc/skills

sync-skills SKILL.md skill
madnpc/skills · .claude/skills/sync-skills/SKILL.md · 适用于本仓库(npc404-skills)同步上游技能:运行 scripts/sync-skills.mjs 检测上游变化,逐个研判 diff 是否为有效更新(实质内容变化,还是排版、笔误等噪音),给出本地化建议,处理完成后推进版本记录。U…
git:20260702.eb2c7d7 · audit A · 3 stars
AGENTS.md AGENTS.md file
madnpc/skills · AGENTS.md
git:20260713.b7ab5e6 · audit A · 3 stars
CLAUDE.md CLAUDE.md file
madnpc/skills · CLAUDE.md
git:20260702.7a40591 · audit A · 3 stars
brainstorming SKILL.md skill
madnpc/skills · skills/brainstorming/SKILL.md · 适用于编写代码前,当需求或方向仍不清楚时,梳理模糊想法、比较方案并形成轻量设计文档。Use before implementation when the request is ambiguous or the direction is…
git:20260929.4fdade6 · audit A · 3 stars
codebase-design SKILL.md skill
madnpc/skills · skills/codebase-design/SKILL.md · 适用于设计或优化模块接口、决定 seam、提升模块深度与可测试性。Use when designing or improving module interfaces, deciding where a seam belongs…
git:20260624.2d5338c · audit A · 3 stars
diagnosing-bugs SKILL.md skill
madnpc/skills · skills/diagnosing-bugs/SKILL.md · 适用于根因不明确、反复出现、不稳定、跨组件或性能退化的故障。Use when a bug, test failure, runtime error, unexpected behavior, or performance…
git:20260905.d7ecf7d · audit A · 3 stars
domain-modeling SKILL.md skill
madnpc/skills · skills/domain-modeling/SKILL.md · 适用于构建或完善项目领域模型、统一代码库术语、创建或编辑 CONTEXT.md,以及记录或更新 ADR。Build and sharpen a project's domain model. Use when discussing…
git:20260905.d7ecf7d · audit A · 3 stars
grill-me SKILL.md skill
madnpc/skills · skills/grill-me/SKILL.md · 仅在用户明确调用 `$grill-me`、`/grill-me`,或明确要求“拷问我”“追问到底”时,启动一次按决策前沿分轮推进的高强度访谈,以澄清并压力测试计划、设计、决策或想法。Explicit-entry wrapper for a…
git:20260905.d7ecf7d · audit A · 3 stars
grill-with-docs SKILL.md skill
madnpc/skills · skills/grill-with-docs/SKILL.md · 仅在用户明确调用 `$grill-with-docs`、`/grill-with-docs`,或明确要求在高强度访谈中同步沉淀术语表和 ADR 时使用。Explicit-entry wrapper for a relentless…
git:20260929.4fdade6 · audit A · 3 stars
grilling SKILL.md skill
madnpc/skills · skills/grilling/SKILL.md · 适用于用户想对计划、设计、决策或想法进行高强度压力测试,或明确要求 grill、拷问、追问到底、深挖问题时。Relentlessly interview the user about a plan, design, decision…
git:20260905.d7ecf7d · audit A · 3 stars
handoff SKILL.md skill
madnpc/skills · skills/handoff/SKILL.md · 适用于将未完成任务及其上下文移交给新的代理或会话。Use when handing an unfinished task or its context to a fresh agent or a new session…
git:20260713.b7ab5e6 · audit A · 3 stars
karpathy-guidelines SKILL.md skill
madnpc/skills · skills/karpathy-guidelines/SKILL.md · 适用于代码改动容易过度设计、范围蔓延或需要严格审查时。Use when a code change risks overengineering, scope creep, broad refactors, or needs a…
git:20260624.2d5338c · audit A · 3 stars

Every file in madnpc/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.