Skills for Real Engineers. Straight from my .agents directory.
tdd
Agent skill fromcodeaholicguy/ai-devkit
AI DevKit · Test-driven development — write a failing test before writing production code. Use when implementing new functionality, adding behavior, or fixing bugs during active development.
How to install tdd
npx skills add codeaholicguy/ai-devkit# or add only this skill to Claude Code: copy the folder
skills/tdd/
# into
~/.claude/skills/tdd/ (all projects)
.claude/skills/tdd/ (one project)
1# TDD23Red. Green. Refactor. In that order, every time.45## Hard Rules67- No production code without a failing test first.8- If production code was written before its test, delete it and start over with a failing test.9- Never skip the red step. A test that has never failed proves nothing.1011## Cycle1213For each unit of behavior:14151. **Red** — Write a test for the next behavior. Run it. It must fail. Read the failure message — it should describe the missing behavior.162. **Green** — Write the minimum production code to make the test pass. Nothing more. Run the test. Apply the `verify` skill.173. **Refactor** — Clean up both test and production code. Run the test again. Still green? Done. Apply the `verify` skill.1819Then pick the next behavior and repeat.2021## Rules for Each Step2223**Red:**24- Test one behavior, not one function. Name the test after what the system should do, not what the function is called.25- The test must fail for the right reason — a missing method, wrong return value, unmet condition. Not a syntax error or import failure.26- If the test passes immediately, it's not testing new behavior. Delete it or pick a different behavior.2728**Green:**29- Write the simplest code that passes. Hardcode if needed — the next test will force generalization.30- Do not add code "while you're in there." If it's not required by a failing test, it doesn't exist yet.31- Do not refactor during green. Pass first, clean second.3233**Refactor:**34- Remove duplication between test and production code.35…
Excerpt shown under the repository's Apache-2.0 license.
More skills in ai-devkit
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.
