Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs experiments to minimize and account for batch effects using balanced layouts and blocking strategies. Use when planning multi-batch experiments, assigning samples to sequencing lanes, or designing studies where technical variation could confound biological signals.
.claude/skills/bio-experimental-design-batch-design/SKILL.md| Model | Eval pass | Runs |
|---|---|---|
| gemini-3.6-flash | — | 1 |
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 43% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 97% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -6% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -53% | 0% |
| case-09 | ✓→✓ | = Same ✓ | 16% | 0% |
<!--
#
#
-->
Batch effects are unavoidable. Good design makes them correctable.
r# BAD: Confounded design # Batch 1: All treated samples # Batch 2: All control samples # -> Cannot separate batch from treatment # GOOD: Balanced design # Batch 1: 3 treated, 3 control # Batch 2: 3 treated, 3 control # -> Batch effect can be estimated and removed
rlibrary(designit) # Create balanced assignment samples <- data.frame( sample_id = paste0('S', 1:24), condition = rep(c('ctrl', 'treat'), each = 12), sex = rep(c('M', 'F'), 12) ) # Optimize batch assignment batch_design <- osat(samples, batch_size = 8, balance_cols = c('condition', 'sex'))
rlibrary(sva) # From count matrix mod <- model.matrix(~condition, colData) mod0 <- model.matrix(~1, colData) # Estimate number of surrogate variables (hidden batches) n_sv <- num.sv(counts_normalized, mod) # Estimate surrogate variables svobj <- sva(counts_normalized, mod, mod0, n.sv = n_sv)
| Method | When to Use | |--------|-------------| | ComBat | Known batches, moderate effects | | SVA | Unknown batches, exploratory | | RUVseq | Using control genes | | limma::removeBatchEffect | Visualization only |
Always record:
<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | pass→pass | 3,573 | 4,075 | +14% | 1 | 1 | 0% | 722 | 1,419 | +97% | 0 | 0 | — |
case-01 | pass→pass | 9,578 | 5,629 | -41% | 1 | 1 | 0% | 1,755 | 1,649 | -6% | 0 | 0 | — |
case-02 | fail→pass | 7,905 | 6,786 | -14% | 1 | 1 | 0% | 1,358 | 1,940 | +43% | 0 | 0 | — |
case-03 | pass→pass | 14,735 | 3,488 | -76% | 1 | 1 | 0% | 2,830 | 1,325 | -53% | 0 | 0 | — |
case-09 | pass→pass | 12,612 | 10,322 | -18% | 1 | 1 | 0% | 2,313 | 2,673 | +16% | 0 | 0 | — |
case-10 | pass→pass | 16,174 | 11,970 | -26% | 1 | 1 | 0% | 2,653 | 2,587 | -2% | 0 | 0 | — |
case-11 | pass→pass | 10,263 | 7,390 | -28% | 1 | 1 | 0% | 1,712 | 1,864 | +9% | 0 | 0 | — |
case-20 | pass→pass | 10,677 | 6,977 | -35% | 1 | 1 | 0% | 1,963 | 1,919 | -2% | 0 | 0 | — |
case-21 | pass→pass | 11,815 | 7,863 | -33% | 1 | 1 | 0% | 2,297 | 2,099 | -9% | 0 | 0 | — |
case-22 | pass→pass | 12,077 | 9,899 | -18% | 1 | 1 | 0% | 2,068 | 2,364 | +14% | 0 | 0 | — |
case-05 | pass→pass | 15,091 | 3,433 | -77% | 1 | 1 | 0% | 1,383 | 1,295 | -6% | 0 | 0 | — |
case-06 | pass→pass | 8,617 | 3,963 | -54% | 1 | 1 | 0% | 1,617 | 1,372 | -15% | 0 | 0 | — |
case-07 | pass→pass | 6,382 | 4,766 | -25% | 1 | 1 | 0% | 1,066 | 1,576 | +48% | 0 | 0 | — |
case-08 | pass→pass | 9,202 | 5,924 | -36% | 1 | 1 | 0% | 1,730 | 1,696 | -2% | 0 | 0 | — |
case-12 | pass→pass | 13,525 | 10,606 | -22% | 1 | 1 | 0% | 2,323 | 2,412 | +4% | 0 | 0 | — |
case-13 | pass→pass | 14,221 | 9,467 | -33% | 1 | 1 | 0% | 2,300 | 2,203 | -4% | 0 | 0 | — |
case-14 | pass→pass | 5,571 | 3,215 | -42% | 1 | 1 | 0% | 1,039 | 1,258 | +21% | 0 | 0 | — |
case-15 | pass→pass | 8,488 | 6,317 | -26% | 1 | 1 | 0% | 1,455 | 1,664 | +14% | 0 | 0 | — |
case-16 | pass→pass | 11,731 | 10,578 | -10% | 1 | 1 | 0% | 2,176 | 2,641 | +21% | 0 | 0 | — |
case-17 | pass→pass | 8,162 | 3,619 | -56% | 1 | 1 | 0% | 1,340 | 1,229 | -8% | 0 | 0 | — |
case-18 | pass→pass | 13,216 | 15,865 | +20% | 1 | 1 | 0% | 2,129 | 2,110 | -1% | 0 | 0 | — |
case-19 | pass→pass | 15,262 | 9,095 | -40% | 1 | 1 | 0% | 2,628 | 1,959 | -25% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/26/2026 | +9% |
Other measured skills in the registry, with their headline benchmark lift.