Skills for Real Engineers. Straight from my .agents directory.
test-driven-development
Agent skill fromaddyosmani/agent-skills
Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline and the request does not mention tests.
How to install test-driven-development
npx skills add addyosmani/agent-skills# or add only this skill to Claude Code: copy the folder
skills/test-driven-development/
# into
~/.claude/skills/test-driven-development/ (all projects)
.claude/skills/test-driven-development/ (one project)
1# Test-Driven Development23## Overview45Write a failing test before writing the code that makes it pass. For bug fixes, reproduce the bug with a test before attempting a fix. Tests are proof — "seems right" is not done. A codebase with good tests is an AI agent's superpower; a codebase without tests is a liability.67## When to Use89- Implementing any new logic or behavior10- Fixing any bug (the Prove-It Pattern)11- Modifying existing functionality12- Adding edge case handling13- Any change that could break existing behavior1415**When NOT to use:** Pure configuration changes, documentation updates, or static content changes that have no behavioral impact.1617**Related:** For browser-based changes, combine TDD with runtime verification using Chrome DevTools MCP — see the Browser Testing section below.1819## Discover the Stack First2021The TDD cycle is universal; the commands are not. Before writing the first test, discover how *this* repository tests, and use its commands for every RED, GREEN, and verification step:2223- **Language and build system** — `package.json`, `pom.xml`/`build.gradle`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`, a `Makefile`24- **Checked-in wrappers** — prefer `./gradlew`, `./mvnw`, `make test`, or a repo script over globally installed tools25- **Test framework and configuration** — and how it runs a single focused test vs the full suite26- **Existing conventions** — where tests live, how files are named, what patterns neighboring tests follow27…
Excerpt shown under the repository's MIT license.
More skills in agent-skills
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.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
