Build features or fix bugs test-first through agreed public interfaces using the red-green loop. Tested with Gemma4 E4B at 16K context and 24 tool rounds.
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 `GLOSSARY.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 it 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
A **seam** is the public boundary you test at: the interface where you observe behavior without reaching inside. Tests live at seams, never against internals.
…
The line at the top of this page pins the label git:20261015.4e92754, 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.
GET https://markdownregistry.com/api/v1/artifacts/art_sbkzaxj4murglxor
GET https://markdownregistry.com/api/v1/resolve?ref=zhongkaifu/tensorsharp/tdd
GET https://markdownregistry.com/api/v1/blob/7778199a27486e0bcb223a7b3657761c40d01ff1c9970b0c6e97e543f6aa388c
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.
zhongkaifu/tensorsharp · TensorAgent/skills/algorithmic-art/SKILL.md · Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users…
zhongkaifu/tensorsharp · TensorAgent/skills/canvas-design/SKILL.md · Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user…
zhongkaifu/tensorsharp · TensorAgent/skills/doc-coauthoring/SKILL.md · Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation…
zhongkaifu/tensorsharp · TensorAgent/skills/documents/SKILL.md · Read and write real documents on the device - PDF, XLSX, DOCX, PPTX and CSV. Turn a photo or picture into a PDF…
zhongkaifu/tensorsharp · TensorAgent/skills/find-skills/SKILL.md · Find, inspect and install skills for a requested task. Use when the user asks for a skill or wants new capabilities…
zhongkaifu/tensorsharp · TensorAgent/skills/frontend-design/SKILL.md · Design distinctive UI with intentional aesthetics and typography. Read the workflow first; save HTML with the offered…
zhongkaifu/tensorsharp · TensorAgent/skills/grill-me/SKILL.md · Interview the user to stress-test a plan or decision, one independent set of questions at a time.
zhongkaifu/tensorsharp · TensorAgent/skills/grill-with-docs/SKILL.md · Interview a plan, record agreed terms and decisions, and return saved document links before questions. Tested with…
zhongkaifu/tensorsharp · TensorAgent/skills/handoff/SKILL.md · Write a concise handoff from the conversation so another agent can continue; redact sensitive values. Tested with…
zhongkaifu/tensorsharp · TensorAgent/skills/internal-comms/SKILL.md · A set of resources to help me write all kinds of internal communications, using the formats that my company likes to…
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…
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…
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…
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…
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…