.claude/skills/tdd/SKILL.md
--- name: tdd description: Test-driven development with mandatory RED-GREEN-REFACTOR cycle. Enforces writing failing tests before production code. Use when implementing new features, fixing bugs with test coverage, or when the user wants TDD discipline. Trigger keywords: tdd, test first, test driven, red green refactor, add tests, coverage, write a test, failing test. --- # /tdd — Test-Driven Development RED-GREEN-REFACTOR cycle. No production code without a failing test shown first. ## Usage
npx skillsauth add khamel83/oneshot .claude/skills/tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
RED-GREEN-REFACTOR cycle. No production code without a failing test shown first.
/tdd
/tdd <feature or behavior to implement>
Repeat until the feature is complete:
When invoked inside a /conduct build loop:
When all acceptance criteria are met and all tests pass:
TDD Complete
├─ Tests written: N
├─ Tests passing: N
├─ Cycles: N (RED-GREEN-REFACTOR)
└─ Coverage: {files/functions covered}
development
Smart visual analysis for websites and images using Playwright screenshots and AI vision.
tools
Quick iterations on existing projects. Load context, ask what's next, execute in burn-down mode.
tools
Manage encrypted secrets between the master vault and projects using SOPS/Age.
documentation
Restore context from a handoff document and continue work.