{"success":true,"name":"experiment-designer","description":"Use when planning product experiments, writing testable hypotheses, estimating sample size, prioritizing tests, or interpreting A/B outcomes with practical statistical rigor.","category":"unitary","path":"unitary/experiment-designer/SKILL.md","file":"SKILL.md","content":"---\nname: experiment-designer\ndescription: Use when planning product experiments, writing testable hypotheses, estimating sample size, prioritizing tests, or interpreting A/B outcomes with practical statistical rigor.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/s3a/skills/experiment-designer`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n> **Imported** from https://github.com/alirezarezvani/claude-skills @ `19392f7` (MIT), for Nader (director), 2026-09-27. Quarantined and scanned PASS (`agents/tools/skill-scan.mjs`), scripts read by hand (stdlib only, no network). Score 8/10.\n> **BRIMIND rules win over this text:** the owner's standing rules (`brimind-owner-standing-rules`), the Claude-models-only-via-the-CLI law and the $2/M cap, only provider-acked and gateway-paid figures count, and the director never contacts a prospect or sends anything client-facing.\n\n# Experiment Designer\n\nDesign, prioritize, and evaluate product experiments with clear hypotheses and defensible decisions.\n\n## When To Use\n\nUse this skill for:\n- A/B and multivariate experiment planning\n- Hypothesis writing and success criteria definition\n- Sample size and minimum detectable effect planning\n- Experiment prioritization with ICE scoring\n- Reading statistical output for product decisions\n\n## Core Workflow\n\n1. Write hypothesis in If/Then/Because format\n- If we change `[intervention]`\n- Then `[metric]` will change by `[expected direction/magnitude]`\n- Because `[behavioral mechanism]`\n\n2. Define metrics before running test\n- Primary metric: single decision metric\n- Guardrail metrics: quality/risk protection\n- Secondary metrics: diagnostics only\n\n3. Estimate sample size\n- Baseline conversion or baseline mean\n- Minimum detectable effect (MDE)\n- Significance level (alpha) and power\n\nUse:\n```bash\npython3 scripts/sample_size_calculator.py --baseline-rate 0.12 --mde 0.02 --mde-type absolute\n```\n\n4. Prioritize experiments with ICE\n- Impact: potential upside\n- Confidence: evidence quality\n- Ease: cost/speed/complexity\n\nICE Score = (Impact * Confidence * Ease) / 10\n\n5. Launch with stopping rules\n- Decide fixed sample size or fixed duration in advance\n- Avoid repeated peeking without proper method\n- Monitor guardrails continuously\n\n6. Interpret results\n- Statistical significance is not business significance\n- Compare point estimate + confidence interval to decision threshold\n- Investigate novelty effects and segment heterogeneity\n\n## Hypothesis Quality Checklist\n\n- [ ] Contains explicit intervention and audience\n- [ ] Specifies measurable metric change\n- [ ] States plausible causal reason\n- [ ] Includes expected minimum effect\n- [ ] Defines failure condition\n\n## Common Experiment Pitfalls\n\n- Underpowered tests leading to false negatives\n- Running too many simultaneous changes without isolation\n- Changing targeting or implementation mid-test\n- Stopping early on random spikes\n- Ignoring sample ratio mismatch and instrumentation drift\n- Declaring success from p-value without effect-size context\n\n## Statistical Interpretation Guardrails\n\n- p-value < alpha indicates evidence against null, not guaranteed truth.\n- Confidence interval crossing zero/no-effect means uncertain directional claim.\n- Wide intervals imply low precision even when significant.\n- Use practical significance thresholds tied to business impact.\n\nSee:\n- `references/experiment-playbook.md`\n- `references/statistics-reference.md`\n\n## Tooling\n\n### `scripts/sample_size_calculator.py`\n\nComputes required sample size (per variant and total) from:\n- baseline rate\n- MDE (absolute or relative)\n- significance level (alpha)\n- statistical power\n\nExample:\n```bash\npython3 scripts/sample_size_calculator.py \\\n  --baseline-rate 0.10 \\\n  --mde 0.015 \\\n  --mde-type absolute \\\n  --alpha 0.05 \\\n  --power 0.8\n```\n","linked_files":["references/experiment-playbook.md","references/statistics-reference.md","scripts/sample_size_calculator.py"],"origin":"brimind","owner_id":null,"source":"router"}