test-driven-development skillA
test-driven-development is agent-read markdown (skill) from yeaight7/agent-powerups: Use when implementing any feature or bugfix, before writing implementation code.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns 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.
**Violating the letter of the rules is violating the spirit of the rules.**
## When to Use
**Always:**
- New features
- Bug fixes
- Refactoring
- Behavior changes
**Exceptions (ask your human partner):**
- Throwaway prototypes
- Generated code
- Configuration files
Thinking "skip TDD just this once"? Stop. That's rationalization.
## The Iron Law
```
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
```
Write code before the test? Delete it. Start over.
**No exceptions:**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
Implement fresh from tests. Period.
## Red-Green-Refactor
```mermaid
graph LR
red["RED<br/>Write failing test"]
style red fill:#ffcccc
verify_red{"Verify fails<br/>correctly"}
green["GREEN<br/>Minimal code"]
style green fill:#ccffcc
verify_green{"Verify passes<br/>All green"}
refactor["REFACTOR<br/>Clean up"]
style refactor fill:#ccccff
…Read the whole file at its exact version.
How to install
mdr add yeaight7/agent-powerups/test-driven-development@git:20260606.0acd84fmdr add yeaight7/agent-powerups/test-driven-development@sha256:e56fe92d0f653da6Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_t33sa6dfukcnezzx)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260606.0acd84f latest | 2026-06-06 | 0acd84f | 5,163 B | A | view · diff |
| git:20260502.ad239a0 | 2026-05-02 | ad239a0 | 5,343 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 (5163 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
yeaight7/agent-powerups · 6 stars · license Apache-2.0 · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_t33sa6dfukcnezzx GET https://markdownregistry.com/api/v1/resolve?ref=yeaight7/agent-powerups/test-driven-development GET https://markdownregistry.com/api/v1/blob/e56fe92d0f653da66a9b970d21b400fa75059fd6782514fa25abae49de3c0659
Your agent 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.
More from yeaight7/agent-powerups
Every file in yeaight7/agent-powerups