Skip to content
Back to skills

Experiment Receipts

ASecurity

Plans and reads out product experiments (A/B tests, variant tests, usability pilots) with the decision stated first, a precise primary metric, sample size as a planning assumption, guardrails, a privacy-scoped event contract, and a clear split between what was verified and what was simulated. Use when the user designs an A/B test, picks an experiment metric, estimates sample size, instruments analytics events, or writes an experiment readout.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentspythonbashrails

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add aliraza2025/receipts --skill experiment-receipts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Experiment Receipts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Experiment Receipts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aliraza2025-experiment-receipts/badge)](https://www.skillsdirectory.com/skills/aliraza2025-experiment-receipts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: experiment-receipts
description: Plans and reads out product experiments (A/B tests, variant tests, usability pilots) with the decision stated first, a precise primary metric, sample size as a planning assumption, guardrails, a privacy-scoped event contract, and a clear split between what was verified and what was simulated. Use when the user designs an A/B test, picks an experiment metric, estimates sample size, instruments analytics events, or writes an experiment readout.
---

# Experiment receipts

An experiment plan should let a skeptical reader see the decision, the metric, and exactly what has and has not been checked. This skill writes the plan and the readout.

## Workflow

1. **Decision first.** Write the decision as a question with two outcomes, e.g. "Should intake show every field at once or guide the user through steps?"
2. **Primary metric.** Define it precisely: eligible population, exposure event, success event, counting rule (each participant once), and what success is not (e.g. reaching review is not approval or revenue).
3. **Sample size as an assumption.** Run `scripts/sample_size.py` with a stated baseline and minimum detectable effect. Label the output "planning assumption" until a pilot gives a real baseline.
4. **Guardrails.** Metrics that must not get worse (errors, handoffs, time to complete) and the business rules both arms must share.
5. **Event contract.** Allowlist the event names and properties. Exclude free text, names, contact details, and anything not needed for the metric.
6. **Stopping rule.** Fix eligibility, exclusions, horizon, and the stopping rule before collecting randomized traffic.
7. **Readout.** Use the template. Keep "verified", "simulated", and "not yet run" in separate sections.

## Sample size script

```bash
python3 scripts/sample_size.py --baseline 0.40 --mde 0.15
# per arm: 173 (two-sided alpha 0.05, power 0.80)
```

Options: `--alpha` (default 0.05), `--power` (default 0.80). The script uses the standard two-proportion normal approximation and only the Python standard library.

## Readout template

```markdown
# [Experiment name] readout

**Decision:** ...
**Primary metric:** ... (definition)
**Guardrails:** ...

## Verified
- Implementation facts that were actually tested (assignment repeatable, events delivered, properties stripped)

## Simulated or illustrative
- Anything produced with synthetic data, with a note that its rates are authored, not observed

## Not yet run
- Real-user sessions, powered test, business outcomes

## Result
- [Only observed results, with n per arm, interval, and date. If none: "No real-user results yet."]

## Next decision
- ...
```

## Example (planning)

Baseline completion 40%, minimum detectable effect 15 percentage points, two-sided 5% significance, 80% power: about 173 participants per arm. Plan for 200 per arm as headroom, and revisit after a usability pilot. These are assumptions, not results.

## Rules

- Never report a synthetic simulation's conversion rates as evidence that a variant works.
- A missing user identifier is not enrollment.
- Count exposure before success; ignore success events that precede exposure.

Files in this skill

  • SKILL.md3.1 KB
  • scripts/sample_size.py1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.