/doe:shrink [list of suspects]from doe
Finds the guilty few among many boolean suspects using group testing (split-half, delta debugging) instead of toggling one at a time. Useful when 8+ independently toggleable suspects hide a single culprit or small set and each run is expensive.
Ships in doe. 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.
When one culprit hides among n toggles, testing halves finds it in log2 n to 2·log2 n runs instead of n — the upper end pays for testing the second half after a pass: 32 flags → 5-10 runs, 1000 config lines → 10-20. The method is group testing; delta debugging is its generalization to multiple culprits.
Vocabulary: each suspect has a suspect value (as in the failing config) and an innocent value (as in the known-good one). "Test a subset" means: subset at suspect values, everything else innocent, run, record fail/pass.
Two runs before any search:
Skipping these two runs is how a whole binary search gets spent chasing a phantom.
Split the suspects in half, test one half. Fails → culprit inside, recurse into it. Passes → test the other half; fails → recurse there. Repeat to one suspect.
Both halves passing is a finding, not an error: the failure needs suspects from both halves at once. Re-split along a different boundary first (group by subsystem instead of by list order); if every split shows the same pattern, it is a genuine interaction — take the surviving suspects to the taguchi skill and rank them as factors.
When more than one culprit is plausible, split-half alone can chase the first one and lose the rest. The ddmin scheme:
A failure is certain — the bug fired. A pass is probabilistic — the bug may just not have fired this time. A false pass sends the search into the wrong half and the error compounds silently. So repeat only the passing verdicts: before trusting a pass, rerun it N times, N ≥ ln(0.05)/ln(1−p) for repro probability p observed on the all-suspect baseline (p=0.5 → 5, p=0.3 → 9, p=0.1 → 29). A run that fails once anywhere in the repeats is a fail.
Same discipline as the taguchi skill: culprit alone at suspect value must fail; everything-but-culprit at suspect values must pass. If the second run fails, there is another culprit still in the dropped remainder — resume step 2 on it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lexfrei/ccc --plugin doe4 skills in this plugin
/pairwiseGenerate a minimal pairwise covering array for factors with arbitrary mixed level counts, using the bundled deterministic generator. TRIGGER — invoke when a debugging or testing plan has 3+ independent factors whose level counts do not fit the fixed taguchi arrays (a 4-level factor, a 5-value enum, uneven mixes like 4x3x2x2) and each run is expensive. DO NOT TRIGGER when every factor has 2-3 levels (use the taguchi skill - balanced arrays support effect ranking), for a single factor (bisect it), or when runs are cheap enough to brute-force the full factorial./taguchiPlan a minimal set of debugging or testing runs with a Taguchi orthogonal array instead of changing one factor at a time. TRIGGER — invoke proactively whenever a debugging, tuning, or repro plan involves 3+ independent candidate factors (flags, versions, environments, config values) and each run is expensive (slow build, CI round-trip, flaky repro, hardware cycle); the moment the plan starts to look like "try A, then B, then A+B" this skill replaces it. Also on explicit ask - "taguchi", "orthogonal array", "DOE", "design of experiments", "plan the runs", "reduce iterations". DO NOT TRIGGER for a single suspected factor (bisect it), runs cheap enough to brute-force the full factorial, factors that cannot be set independently, or pure code-reading investigation with no experiment loop.Other plugins' skills for the same job