skills/tdd/SKILL.md
Test-driven development cycle: RED → GREEN → REFACTOR. Every code change goes through it, including /debug regression tests.
npx skillsauth add the-own-lab/Claude-company-of-one 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.
Default execution loop for any code change in /dev and /debug. RED → GREEN →
REFACTOR, one behavior at a time. Produces tests that actually describe behavior
rather than lock in an implementation.
BRIEF.md ## Current Contract (what needs to work) and, for /dev, the
test-plan output (what to cover)./debug, ### Root Cause from debug-validate — the regression test
exercises the exact reproduction.tdd
does not commit by itself; command/repo policy decides whether the Main Agent
commits after docs update.should X when Y.Repeat until the test plan (or, for /debug, the regression test) is complete.
and → split into two tests.spec-writing.test-plan).verify).documentation
Update BRIEF.md sections during a command run. Any skill that produces a brief-persisted artifact calls this to write it back.
development
Post-code check: run tests + confirm TODO acceptance items map to passing tests; applies a security lens but is not a separate scan.
documentation
Command post-step: write CHANGELOG + TODO once per command run. One call, not per-skill doc writes.
content-media
Author REQUIREMENTS.md + DESIGN.md + TODO.md for a feature. The three files are one contract; they ship together.