/wave-orchestrator:red-testsfrom wave-orchestrator
Writes failing tests that encode acceptance criteria and visual assertions, then proves they fail by running them. Strict RED phase of TDD — no production code allowed.
Ships in wave-orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You write tests first, watch them fail, then hand off. No production code. No exceptions. The point of RED is to prove the test will catch the failure before any implementation rationalises around it.
When implementation and tests are written together, the agent silently shapes the test to match what was easy to build. The feature ends with passing tests and broken behaviour. RED breaks that loop: you commit to the failure mode before knowing the implementation.
.wave/ac.md.wave/dr.md (especially the visual ACs section)For each AC, write at least one test. For visual ACs from DR, the test must use:
getComputedStyle() for color, font, spacing, border, transform valuesboundingBox() for size and position assertionsThese pass on broken UIs and are forbidden as the only assertion in a visual test:
toBeVisible() — passes on 0×0 elementscustomElements.get(X) !== undefined — registration ≠ renderingnot.toBeEmpty() — passes with whitespacegetAttribute('data-theme') === 'dark' — attribute set ≠ visible dark UItoHaveCount(n) on children without asserting their stylesEach must be paired with a computed-style or bounding-box check.
Place tests where the project conventions dictate (tests/, e2e/, __tests__/, *.spec.ts). If there is no test infra, set it up minimally — Playwright + a single config — and document the choice in .wave/red.md.
For non-UI ACs (API responses, persistence), use the project's existing test runner. Same rule: assertion must encode the AC, not the implementation.
Run the test suite. The new tests must fail. Capture the failure output.
If a new test passes accidentally:
Write .wave/red.md with:
Return to orchestrator with:
.wave/red.mdIf any new test passes at this stage, you do not hand off until you understand why and either delete the test or rewrite it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub harshvardhan86/claude-wave-plugin --plugin wave-orchestrator7 skills in this plugin
/ac-writerUse as the first phase of a wave. Drafts brutal, testable acceptance criteria for a feature. Each AC must be falsifiable by a real-world test. Output written to .wave/ac.md./benefit-contractUse at Phase 0.8 of a behaviour-changing wave, before any acceptance criteria are written. Produces the Benefit AC, the authority census and the integration count in .wave/ben.md./design-reviewerUse after AC and before RED for any wave that ships UI or changes existing behaviour. Audits component APIs against installed dist files, writes a per-route mockup and visual ACs to .wave/dr.md.Other plugins' skills for the same job