tdd SKILL.md skillA
tdd from vinvcn/mattpocock-skills-zh-cn is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add vinvcn/mattpocock-skills-zh-cn/tdd@git:20261008.5be0dc1Pins git:20261008.5be0dc1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- vinvcn/mattpocock-skills-zh-cn
- Path
skills/engineering/tdd/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261008.5be0dc1, committed Oct 8, 2026
- First version recorded
- Jul 4, 2026
- Size
- 3,452 bytes
- Repository stars
- 5,110
- License
- MIT
测试驱动开发。适用于用户想用先写测试的方式构建功能或修复缺陷、提到 “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
# 测试驱动开发 TDD 是 red -> green loop。这个 skill 是让该 loop 产出值得保留的 tests 的 reference:什么是好 test、tests 应该放在哪里、anti-patterns,以及 loop 的规则。每个 cycle 前和 cycle 中都要参考这些内容,而不是事后才看。 探索 codebase 时,读取 `GLOSSARY.md`(如果存在),让 test names 和 interface vocabulary 与项目 domain language 对齐,并尊重你触碰区域的 ADRs。 ## 什么是好 test Tests 应通过 public interfaces 验证 behavior,而不是 implementation details。代码可以完全改变;tests 不该随之改变。一个好 test 读起来像 specification:"user can checkout with valid cart" 能清楚说明存在什么能力;因为它不关心 internal structure,所以能承受 refactors。 示例见 [tests.md](tests.md),mocking 规则见 [mocking.md](mocking.md)。 ## Seams:tests 放在哪里 **Seam** 是你测试的 public boundary:可以观察 behavior、但不伸手进入内部的 interface。Tests 放在 seams 上,绝不针对 internals。 **只测试预先认可的 seams。** 写任何 test 前,先写下要测试的 seams 并与用户确认。未经确认的 seam 不写 test。你无法测试所有东西;提前认可 seams,才能把测试精力放在 critical paths 和复杂 logic 上,而不是每个 edge case。 询问:"What's the public interface, and which seams should we test?" 当 interface 的形状本身就是问题所在时(module 该多深、seam 该放在哪里、interface 应该暴露什么),调用 Skill 工具并指定 `codebase-design` 获取词汇。它是 module、interface、depth、seam、adapter、leverage 和 locality 这些术语的共享来源,是供查阅的 reference,而不是要运行的 session。 ## 反模式 …
Read the whole file at its exact version.
How to install
mdr add vinvcn/mattpocock-skills-zh-cn/tdd@sha256:9004dac03661cd6eThe line at the top of this page pins the label git:20261008.5be0dc1, 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.
[](https://markdownregistry.com/a/art_2bxxosynnjbijudx)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jul 4, 2026 and Oct 8, 2026, about one every 24 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261008.5be0dc1 latest | 2026-10-08 | 5be0dc1 | 3,452 B | A | view · diff |
| git:20261008.f659bb3 | 2026-10-08 | f659bb3 | 3,461 B | A | view · diff |
| git:20260921.49ef591 | 2026-09-21 | 49ef591 | 3,472 B | A | view · diff |
| git:20260811.b46e155 | 2026-08-11 | b46e155 | 3,454 B | A | view · diff |
| git:20260704.c71ad54 | 2026-07-04 | c71ad54 | 3,111 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3452 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
vinvcn/mattpocock-skills-zh-cn · 5,110 stars · license MIT · pushed 2026-10-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2bxxosynnjbijudx GET https://markdownregistry.com/api/v1/resolve?ref=vinvcn/mattpocock-skills-zh-cn/tdd GET https://markdownregistry.com/api/v1/blob/9004dac03661cd6e18422eda247d2eeb6020ce83d1e0488eab031de5957d51c6
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 vinvcn/mattpocock-skills-zh-cn
Every file in vinvcn/mattpocock-skills-zh-cn