Skills for Real Engineers. Straight from my .agents directory.
test-driven-development
Agent skill frommvschwarz/openrig
Use when implementing any feature or bugfix, before writing implementation code
How to install test-driven-development
npx skills add mvschwarz/openrig# or add only this skill to Claude Code: copy the folder
skills/_canonical/process/test-driven-development/
# into
~/.claude/skills/test-driven-development/ (all projects)
.claude/skills/test-driven-development/ (one project)
1# Test-Driven Development (TDD)23## Overview45Write the test first. Watch it fail. Write minimal code to pass.67**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.89**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.1011## When to Use1213**Use test-first for selected behavior where regression risk warrants it:**14- New features15- Bug fixes16- Refactoring17- Behavior changes1819**Choose proportionate verification for work such as:**20- Throwaway prototypes21- Generated code22- Configuration files2324Resolve the task's selected project/mission/slice procedure first. A required25TDD step remains required within that scope; changing it needs the authority26named by that selection. Outside it, choose verification that can detect the27failure without adding a human approval ritual. The procedure below describes28TDD when selected, not a completion gate for every kind of work.2930**Chunk size follows the outcome.** Keep red → green → refactor for the behavior31being changed and build a coherent chunk. TDD does not require two people,32…
Excerpt shown under the repository's Apache-2.0 license.
More skills in openrig
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
