From virtual-team
Enforces red-green-refactor TDD cycle with configurable strictness (strict/recommended/off). Use before writing implementation code for any feature or bugfix.
How this skill is triggered — by the user, by Claude, or both
Slash command
/virtual-team:test-driven-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Read `stack.md` and check the `tdd:` field. If the field is missing, default to **recommended**.
Read stack.md and check the tdd: field. If the field is missing, default to recommended.
tdd: value | Behavior |
|---|---|
strict | Iron law — no production code without a failing test. Delete and restart on violations. |
recommended | TDD is the expected workflow. Warn when skipped, log the skip, but proceed. |
off | No TDD enforcement. Tests are encouraged but not gated. Skip the rest of this skill. |
If tdd: off — stop reading. Do not enforce any TDD discipline.
The rule: ONE test, ONE implementation, then the next test. Never batch. Each RED-GREEN cycle is a learning step — the next test is informed by what you just discovered.
'rejects empty email with validation error')Write the simplest code to make the test pass. Nothing more.
// Just enough to pass async function retryOperation(fn, maxRetries = 3) { for (let i = 0; i < maxRetries; i++) { try { return await fn(); } catch (e) { if (i === maxRetries - 1) throw e; } } } // YAGNI — over-engineered beyond what the test requires async function retryOperation(fn, options?: { maxRetries?: number; backoff?: 'linear' | 'exponential'; onRetry?: (attempt: number) => void; timeout?: number; }) { ... }Run the test. Confirm it passes. Confirm all other tests still pass.
Only after green: remove duplication, improve names, extract helpers. Keep tests green. Don't add behavior. Then write the next failing test for the next behavior.
In recommended mode, if you write production code before a test:
In strict mode, skips are not allowed. Delete the code and start over.
Before marking any implementation step complete:
Bug found? Write a failing test reproducing it first. In recommended mode, strongly encouraged. In strict mode, mandatory.
npx claudepluginhub ovargas/virtual-team --plugin virtual-teamEnforces Test-Driven Development (TDD) with red-green-refactor cycle. Guides writing failing tests first for features, bug fixes, or when OMC_TDD_MODE enabled and TDD keywords detected.
Enforces RED-GREEN-REFACTOR TDD cycle: write a failing test first, then minimal code to pass, then refactor. Use when implementing features or fixing bugs during the implement phase.