Green — Testing skill for Claude Code
Execute TDD Green Phase - write minimal implementation to pass the failing test.
How to install Green
Installs to ~/.claude/commands/wbern-agent-instructions-green.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/wbern/agent-instructions/HEAD/.claude/commands/green.md -o ~/.claude/commands/wbern-agent-instructions-green.md Restart Claude Code, or start a new session, for it to be picked up.
What Green does
description: Execute TDD Green Phase - write minimal implementation to pass the failing test argument-hint:
**User arguments:**
Green: $ARGUMENTS
**End of user arguments**
GREEN PHASE! Apply the below to the user input above.
General Guidelines
Output Style
- Never explicitly mention TDD in code, comments, commits, PRs, or issues
- Write natural, descriptive code without meta-commentary about the development process
- The code should speak f
Alternatives in Testing
- Add Plugin — Integrate a spec-driven/skill framework as a bundled agtx plugin 1.5k ★
- Test Fixing — Detect failing tests and propose patches or fixes 475 ★
- TDD Diagnostics.V1 — Follow strict TDD stages 272 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Red
Execute TDD Red Phase - write ONE failing test
Test Driven Development
Use when implementing any feature or bugfix, before writing implementation code - write the test first, watch
TDD Implement
by jerseycheese - Implements Test-Driven Development by analyzing feature requirements, creating tests first (
Cha Fix
Write the failing test first, then the smallest fix that turns it green. One writer, one defect, one commit.
TDD Cycle
Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-green-refactor discipline:
Distill Context
Synthesise Pass 1 context into a minimal context.md, then spawn a clean subagent for the build phase with only
Related Agents
Ctdd Green
TDD GREEN phase implementation agent. Reads failing tests and a spec, implements to make tests pass. Tool surf
Wasp Refactor Executor
Execute mechanical refactorings (DRY, extract function, rename) while maintaining test green status. Optimized
Shep Use Case Creator
Scaffolds a new application-layer use case with TDD (RED test file first, then minimal GREEN implementation),