test-driven-development SKILL.md skillA

test-driven-development from mvschwarz/openrig is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mvschwarz/openrig/test-driven-development@git:20260907.6271b26

Pins git:20260907.6271b26 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mvschwarz/openrig
Path
skills/_canonical/process/test-driven-development/SKILL.md
Versions recorded
5
Latest version
git:20260907.6271b26, committed Sep 7, 2026
First version recorded
May 14, 2026
Size
12,399 bytes
Repository stars
7,989
License
Apache-2.0

Use when implementing any feature or bugfix, before writing implementation code.

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)

## Overview

Write the test first. Watch it fail. Write minimal code to pass.

**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.

**A strong default in service of shipping — not a law that outranks it.** TDD earns its keep where a failing test pins down behavior you'd otherwise get wrong: core logic, contracts, tricky edge cases. Match it to stakes — reach for it where test-first genuinely de-risks the change; throwaway prototypes, one-line copy tweaks, and obvious glue don't need the ceremony. Don't dodge it with synonyms; equally, don't let it block you from shipping the working thing.

## When to Use

**Use test-first for selected behavior where regression risk warrants it:**
- New features
- Bug fixes
- Refactoring
- Behavior changes

**Choose proportionate verification for work such as:**
- Throwaway prototypes
- Generated code
- Configuration files

Resolve the task's selected project/mission/slice procedure first. A required
TDD step remains required within that scope; changing it needs the authority
named by that selection. Outside it, choose verification that can detect the
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mvschwarz/openrig/test-driven-development@sha256:51f65d2bc71dd6fc

The line at the top of this page pins the label git:20260907.6271b26, 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_dbpjlyf5akhlntik.svg)](https://markdownregistry.com/a/art_dbpjlyf5akhlntik)

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

Versions

The registry has recorded 5 versions of this file, between May 14, 2026 and Sep 7, 2026, about one every 29 days.

versioncommittedcommitsizeaudit
git:20260907.6271b26 latest2026-09-07 6271b26 12,399 BA view · diff
git:20260906.ac21bc22026-09-06 ac21bc2 10,861 BA view · diff
git:20260826.bdc404f2026-08-26 bdc404f 11,291 BA view · diff
git:20260802.4c6d8882026-08-02 4c6d888 10,492 BA view · diff
git:20260514.8f89dca2026-05-14 8f89dca 10,099 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 (12399 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

mvschwarz/openrig · 7,989 stars · license Apache-2.0 · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_dbpjlyf5akhlntik
GET https://markdownregistry.com/api/v1/resolve?ref=mvschwarz/openrig/test-driven-development
GET https://markdownregistry.com/api/v1/blob/51f65d2bc71dd6fc84640bf113acf287f4e003ef325ed91cb112fce59149a298

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 mvschwarz/openrig

developing-openrig SKILL.md skill
mvschwarz/openrig · .agents/skills/developing-openrig/SKILL.md · Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a…
git:20261006.fcef78a · audit A · 7,989 stars
developing-openrig SKILL.md skill
mvschwarz/openrig · .claude/skills/developing-openrig/SKILL.md · Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a…
git:20261006.fcef78a · audit A · 7,989 stars
DESIGN.md@docs DESIGN.md file
mvschwarz/openrig · docs/DESIGN.md
git:20261005.f6358a2 · audit A · 7,989 stars
agent-operated-software SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md · Use when designing, building, operating, or diagnosing an ongoing application whose live backend or control loop…
git:20260908.e4e15c6 · audit A · 7,989 stars
agent-operated-workflows SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.md · Use when a bounded real-world procedure has a deterministic happy path but brownfield, variable, or partially knowable…
git:20260907.9006fc5 · audit A · 7,989 stars
applying-a-permission-policy SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md · Use before launching a team during agent-guided setup, or when a user asks to configure OpenRig command permissions…
git:20261006.141513e · audit A · 7,989 stars
claude-compaction-restore SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md · Use when a Claude Code session is about to compact, has just compacted, reached its context limit, resumed after…
git:20261008.2467b4e · audit A · 7,989 stars
delegating-work SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/delegating-work/SKILL.md · Use when you have a task and must decide WHO does it — yourself, a spawned subagent, or another agent in the topology…
git:20261018.ce7f89c · audit A · 7,989 stars
forming-an-openrig-mental-model SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md · Use when the system around you does not make sense yet: you just booted into a seat and do not know how the pieces fit…
git:20261020.a30fd61 · audit A · 7,989 stars
loading-addressable-markdown SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md · Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the…
git:20260901.0b86028 · audit A · 7,989 stars
messaging-the-human SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md · Use when project policy calls for a human decision or update, a human delivery is pending or failed, or a reply must…
git:20261009.a29dfbc · audit A · 7,989 stars
mission-slice-sop SKILL.md skill
mvschwarz/openrig · packages/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md · Use when starting, building, handing off, restoring, or closing a mission or slice under the default lightweight SDLC.
git:20261019.9cbd6e8 · audit A · 7,989 stars

Every file in mvschwarz/openrig

Other files named test-driven-development

test-driven-development SKILL.md skill
obra/superpowers · skills/test-driven-development/SKILL.md · Use when implementing any feature or bugfix, before writing implementation code
git:20260919.5bf4e78 · audit A · 302,424 stars
test-driven-development SKILL.md skill
addyosmani/agent-skills · skills/test-driven-development/SKILL.md · Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or…
git:20261011.7c47146 · audit A · 109,013 stars
test-driven-development SKILL.md skill
jnmetacode/superpowers-zh · skills/test-driven-development/SKILL.md · 在实现任何功能或修复 bug 时使用,在编写实现代码之前
v1.0.0 · audit A · 8,348 stars
test-driven-development SKILL.md skill
mvschwarz/openrig · packages/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md · Use when implementing any feature or bugfix, before writing implementation code
git:20260907.6271b26 · audit A · 7,989 stars
test-driven-development SKILL.md skill
cbrock84/headcount · plugins/technology/skills/test-driven-development/SKILL.md · Drives implementation by writing a failing test first, then the smallest code that passes it. Use this before writing…
git:20260901.aa45383 · audit A · 2,076 stars
test-driven-development SKILL.md skill
a5c-ai/babysitter · library/methodologies/superpowers/skills/test-driven-development/SKILL.md · Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle.
git:20260601.da7723a · audit A · 1,862 stars
test-driven-development SKILL.md skill
a5c-ai/babysitter · library/methodologies/rpikit/skills/test-driven-development/SKILL.md · Test-first development practice where test specifications are written before production code, integrated into plan…
git:20260601.da7723a · audit A · 1,862 stars
test-driven-development SKILL.md skill
a5c-ai/babysitter · library/methodologies/cc10x/skills/test-driven-development/SKILL.md · Strict RED-GREEN-REFACTOR cycle enforcement. Tests are never skipped or deferred. Run mode only, never watch mode. Exit…
git:20260601.da7723a · audit A · 1,862 stars

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