{"success":true,"name":"experiment-readout","description":"Analyse a finished A/B test and write an honest results readout with real statistics. Use when asked to read out an A/B test, analyse experiment results, check if a result is statistically significant, or decide ship/no-ship from test data. Produces a readout — the computed lift, p-value & confidence interval, a significance verdict, guardrail check, and a clear ship / no-ship / iterate recommenda","category":"unitary","path":"unitary/experiment-readout/SKILL.md","file":"SKILL.md","content":"---\nname: experiment-readout\ndescription: \"Analyse a finished A/B test and write an honest results readout with real statistics. Use when asked to read out an A/B test, analyse experiment results, check if a result is statistically significant, or decide ship/no-ship from test data. Produces a readout — the computed lift, p-value & confidence interval, a significance verdict, guardrail check, and a clear ship / no-ship / iterate recommendation. Includes a stdlib significance calculator.\"\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/s3a/skills/experiment-readout`. 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/mohitagw15856/pm-claude-skills @ `f6ca7934` (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 Readout Skill\n\nA test result is only a decision if the statistics are sound — and \"variant looks higher\" is not a\nresult. This skill computes the lift, the p-value, and a confidence interval from the raw counts, checks\nthe guardrails, and writes an honest readout with a clear ship/no-ship call — flagging the traps\n(peeking, underpowered, novelty, a significant but tiny effect) that make teams ship noise.\n\n## Required Inputs\n\nAsk for these only if they aren't already provided:\n\n- **The metric & data** — for a conversion test: users and conversions per variant (control vs. treatment). For a continuous metric: mean, SD, and n per variant.\n- **The hypothesis** — what you expected and the minimum effect that matters.\n- **Guardrail metrics** — what shouldn't get worse (revenue, latency, retention).\n- **Test setup** — planned sample size/duration, and whether it ran to plan (for the peeking check).\n\n## Output Format\n\n### Experiment Readout: [test name]\n\n**1. Result** — computed (use the helper): control vs. treatment rate, **absolute & relative lift**, **p-value**, and the **confidence interval** on the difference.\n\n| Variant | N | Conversions | Rate |\n|---|---|---|---|\n| Control | | | |\n| Treatment | | | |\n\n→ Lift: **X%** (CI: [a%, b%]) · p = **0.0xx**\n\n**2. Verdict** — significant at the stated bar or not, *and* whether the effect is **big enough to matter** (a significant +0.2% may not be worth the complexity). Distinguish statistical from practical significance.\n\n**3. Guardrails** — did anything you promised not to harm move? A win that tanks a guardrail isn't a win.\n\n**4. Validity checks** — was it run to the planned sample (no peeking/early-stopping)? Sample-ratio mismatch? Novelty/seasonality? Call out anything that undermines the result.\n\n**5. Recommendation** — **ship / no-ship / iterate / re-run**, with the reason. If inconclusive, say so — \"no significant difference\" is a valid, useful result, not a failure to spin.\n\n## Programmatic Helper\n\n`scripts/ab_significance.py` (stdlib only) computes the two-proportion z-test, p-value, lift, and CI:\n\n```bash\n# python3 ab_significance.py <control_n> <control_conv> <treat_n> <treat_conv>\npython3 scripts/ab_significance.py 10000 800 10000 880\npython3 scripts/ab_significance.py 10000 800 10000 880 --json\n```\n\n## Quality Checks\n\n- [ ] Lift, p-value, and a confidence interval are computed (not just \"higher\")\n- [ ] Statistical significance AND practical significance are both assessed\n- [ ] Guardrail metrics are checked, not just the primary\n- [ ] Validity is checked: ran to planned n, no peeking, no sample-ratio mismatch\n- [ ] An inconclusive result is reported honestly, not spun into a win\n- [ ] The recommendation is explicit (ship/no-ship/iterate/re-run)\n\n## Anti-Patterns\n\n- [ ] Do not call significance by eye — compute the p-value and CI; a higher number isn't a result\n- [ ] Do not ignore the confidence interval — a CI spanning zero (or huge) means you don't actually know the effect\n- [ ] Do not confuse statistical with practical significance — a tiny significant lift may not be worth shipping\n- [ ] Do not trust a peeked/early-stopped test — stopping when it looks good inflates false positives massively\n- [ ] Do not spin a null result — \"no detectable difference\" is honest and often the right call\n\n## Based On\n\nFrequentist A/B analysis — two-proportion z-test, confidence intervals, guardrails, and the peeking/practical-significance pitfalls.\n","linked_files":["scripts/ab_significance.py"],"origin":"brimind","owner_id":null,"source":"router"}