Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Dispatches N parallel candidate implementations of a TDD step, scores each, picks the best, and logs all candidates for audit.
27% 86%+59 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 6 of 22 without it.
Candidate A and Candidate B both pass all unit tests and both have a complexity delta of 2. Candidate A adds 4 lines of code and runs in 1.2s. Candidate B adds 8 lines of code and runs in 0.3s. Which candidate wins?
Selects Candidate A as the winner
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Speculative dispatch is a technique where the orchestrator generates N candidate implementations of the same TDD step in parallel, scores each by measured properties, and picks the best — while logging every candidate, including discarded ones, for human audit.
Use speculative dispatch when the decision is ambiguous and at least 3 feasible candidate strategies exist.
| Signal | Use speculative dispatch? |
|---|---|
| Step has ≥3 plausible implementation strategies | YES |
| Decision is clear from prior context | NO — implement directly |
| Only 1-2 strategies, clear winner | NO — implement directly |
| Performance matters and strategies have measurable trade-offs | YES |
| Domain is novel and "correct" structure is unknown | YES |
Speculative dispatch is orthogonal to TDD stages — it applies at any phase (RED unit-test authoring, GREEN, COMMIT under the 3-phase canon per ADR-025; or RED_UNIT, GREEN, COMMIT under the legacy 5-phase contract) where ambiguity is genuine and 3 candidates are feasible within the time budget.
Generate exactly 3 candidates per speculative step by default:
| Role | Strategy |
|---|---|
| minimal-change | Inline, no new abstractions. Lowest complexity, fewest lines. |
| refactor-heavy | Extracts helpers, adds guards, defensive patterns. Higher complexity. |
| pattern-extraction | Generalises to a factory/template. Highest lines. Justified if reuse follows. |
Three candidates is the minimum viable set for meaningful scoring. More than 5
Next to this one in the catalogue, plus more from the same author.