Statistical Analyst
alirezarezvani/claude-skills
Run hypothesis tests, analyze A/B experiment results, calculate sample sizes, and interpret statistical significance with effect sizes.
The analysis and lifecycle owner for experiments. An agent skill from ai-analyst-lab/ai-analyst.
$ npx skills add ai-analyst-lab/ai-analyst --skill experiment -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ai-analyst-lab/ai-analyst experiment --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/experiment .claude/skills/experiment && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "experiment" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experiment into .claude/skills/experiment/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experiment", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experimentType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ai-analyst-lab/ai-analyst --skill experiment -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ai-analyst-lab/ai-analyst experiment --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/experiment .agents/skills/experiment && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "experiment" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experiment into .agents/skills/experiment/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experiment", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ai-analyst-lab/ai-analyst --skill experiment -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ai-analyst-lab/ai-analyst experiment --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/experiment .cursor/skills/experiment && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "experiment" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experiment into .cursor/skills/experiment/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experiment", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ai-analyst-lab/ai-analyst.git --path .claude/skills/experiment--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ai-analyst-lab/ai-analyst --skill experiment -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ai-analyst-lab/ai-analyst experiment --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/experiment .gemini/skills/experiment && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "experiment" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experiment into .gemini/skills/experiment/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experiment", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ai-analyst-lab/ai-analyst experimentInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ai-analyst-lab/ai-analyst --skill experiment -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/experiment .github/skills/experiment && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "experiment" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experiment into .github/skills/experiment/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experiment", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ai-analyst-lab/ai-analyst --skill experiment -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ai-analyst-lab/ai-analyst experiment --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/experiment .opencode/skills/experiment && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "experiment" agent skill from https://github.com/ai-analyst-lab/ai-analyst/tree/main/.claude/skills/experiment into .opencode/skills/experiment/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experiment", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
experimentThe analysis and lifecycle owner for experiments. An agent skill from ai-analyst-lab/ai-analyst.
Experiment is an agent skill from ai-analyst-lab/ai-analyst. The analysis and lifecycle owner for experiments. Full experiment lifecycle: design, power analysis, statistical analysis, interpretation, reporting, and monitoring of A/B tests. Invoke as /experiment. Trigger on "A/B test", "experiment", "treatment vs control", "sample size", "MDE", "statistical significance", "ship decision", "test readout", "is this result significant?". Runs the SRM gate first.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Marketing & SEO, covering A/B testing, Experimental design and Statistics. The repository describes itself as: AI Product Analyst — Claude Code-powered data analysis toolkit. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 52c0744. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Experiment loads about 2k tokens when it runs. Until then it costs about 103 tokens; SKILL.md has 625 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ai-analyst-lab/ai-analyst at commit 52c0744, republished under its MIT licence (© ai-analyst-lab). 625 words, ~1,979 tokens.
.claude/skills/experiment/SKILL.md (or your agent's skills folder).Multi-mode skill for the full experiment lifecycle — from design through analysis to ship/no-ship decision. Orchestrates experiment agents and calls coded statistical helpers from helpers/stats/experiment_stats/ instead of improvising Python.
Invoke as /experiment [mode] or trigger on experiment-related intents:
/experiment designPurpose: Create a pre-registered experiment config.
Agent: agents/experiments/experiment-designer.md
Flow:
experiments/{slug}/experiment.yaml (from templates/experiment.yaml)
Checkpoint: Config review (Type B — skippable with --just-do-it)/experiment powerPurpose: Power analysis + duration estimation. Flow:
experiments/{slug}/experiment.yaml for metric type, baseline, MDEhelpers/stats/experiment_stats/power.py:power_proportion(baseline_rate, mde)power_mean(baseline_mean, baseline_std, mde)duration_estimate(total_sample, daily_traffic, allocation)experiment.yaml with computed values (sample_size, duration, viable)/causal select as alternative
Checkpoint: Power viability (Type C — NOT_VIABLE fires mandatory checkpoint)/experiment analyzePurpose: Run statistical tests on experiment data.
Agent: agents/experiments/experiment-analyzer.md
Flow:
experiments/{slug}/experiment.yaml for pre-registered configfrom helpers.stats.experiment_stats import srm_check
# Positional lists ONLY — do not pass dicts.
# First arg: observed counts per variant (order must match expected_ratios).
# Second arg: expected allocation ratios, summing to 1.0.
result = srm_check([4218, 4196], [0.5, 0.5])
# result = {"chi2_stat": 0.058, "p_value": 0.81, "verdict": "PASS", ...}
if result["verdict"] == "BLOCK":
# HALT — do not proceed to treatment effect analysisfrom helpers.stats.experiment_stats import welch_test, proportion_test, ratio_metric_test
# Select based on metric type from experiment.yaml
if metric_type == "proportion":
result = proportion_test(c_success, c_n, t_success, t_n)
elif metric_type == "continuous":
result = welch_test(control_values, treatment_values)
elif metric_type == "ratio":
result = ratio_metric_test(num_c, den_c, num_t, den_t)cohens_d(control, treatment)adjust_pvalues(all_p_values, method="holm")experiments/{slug}/working/analysis_results.json
Checkpoint: SRM gate (Type C — BLOCK halts everything)/experiment interpretPurpose: Walk the Result Interpretation Tree and classify the outcome.
Agent: agents/experiments/experiment-interpreter.md
Flow:
experiments/{slug}/working/analysis_results.json/experiment reportPurpose: Generate markdown report from analysis results.
Agent: agents/experiments/experiment-readout.md
Flow:
templates/experiment-report.md)experiments/{slug}/reports/experiment_report_{{DATE}}.md/experiment monitorPurpose: SRM check + guardrail status + sample tracking during a running experiment.
Agent: agents/experiments/experiment-monitor.md
Flow:
srm_check() with p < 0.0005 threshold (Microsoft production standard)experiments/{slug}/working/monitoring_update.md/experiment statusPurpose: Show experiment lifecycle state. Flow:
experiments/{slug}/experiment.yaml/experiment fullPurpose: End-to-end: design → power → analyze → interpret → report. Flow: Runs design, power, analyze, interpret, report in sequence. Checkpoints: All Type C checkpoints fire. Type B skipped with --just-do-it.
experiments/{slug}/
├── experiment.yaml # Pre-registered config (tracked)
├── working/ # Intermediates (gitignored)
│ ├── analysis_results.json
│ ├── monitoring_update.md
│ └── ...
└── reports/ # Final reports (tracked)
└── experiment_report_{{DATE}}.mdAll statistical work uses coded helpers from helpers/stats/experiment_stats/:
| Function | Module | Use For |
|---|---|---|
welch_test() | ab_tests | Continuous metric A/B test |
proportion_test() | ab_tests | Binary metric A/B test |
ratio_metric_test() | ab_tests | Ratio metric (delta method) |
winsorize() | ab_tests | Outlier-robust pre-processing |
power_proportion() | power | Sample size for proportions |
power_mean() | power | Sample size for means |
detectable_effect() | power | MDE from fixed sample |
duration_estimate() | power | Timeline planning |
srm_check() | srm | Sample ratio mismatch |
srm_diagnose() | srm | Segmented SRM root cause |
cohens_d() | effect_size | Standardized effect size |
relative_lift() | effect_size | Percentage change |
adjust_pvalues() | corrections | Multiple comparison correction |
cuped_adjust() | variance_reduction | CUPED variance reduction |
confidence_sequence() | sequential | Always-valid CI (peeking ok) |
bayesian_proportion() | bayesian | Bayesian A/B (proportions) |
bayesian_mean() | bayesian | Bayesian A/B (means) |
/experiment power → NOT_VIABLE → suggest /causal select (quasi-experimental)/causal select → "Can you randomize? YES" → suggest /experiment design/experiment analyze → SRM BLOCK → suggest investigating assignment logic© ai-analyst-lab, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/experiment of ai-analyst-lab/ai-analyst.
Open the folder on GitHubat commit 52c0744
Experiment next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Experiment this skillai-analyst-lab/ai-analyst | 304 | — | ~2k | Automated safety check: Pass | MIT | |
| Statistical Analystalirezarezvani/claude-skills | 28k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Ab Test Analyzeririnabuht12-oss/marketing-skills | 3.9k | — | ~1.4k | Automated safety check: Pass | None | |
| Define Hypothesisproduct-on-purpose/pm-skills | 715 | — | ~966 | Automated safety check: Pass | Apache-2.0 | |
| A B Test DesignOwl-Listener/designer-skills | 2.9k | 1 repos | ~472 | Automated safety check: Pass | MIT | |
| Data Scientistmagnus919/hermes-profiles | 281 | — | ~3.3k | Automated safety check: Pass | MIT |
alirezarezvani/claude-skills
Run hypothesis tests, analyze A/B experiment results, calculate sample sizes, and interpret statistical significance with effect sizes.
irinabuht12-oss/marketing-skills
Statistical significance calculator for A/B test results with sample size requirements, segment breakdowns, and hypothesis generation.
product-on-purpose/pm-skills
Defines a testable hypothesis with clear success metrics and a validation approach.
Owl-Listener/designer-skills
Design an A/B experiment — hypothesis, variants, primary metric, and sample size.
magnus919/hermes-profiles
PhD-level expertise in data science, statistics, and machine learning.
magnus919/agent-skills
A skill your agent uses for PhD-level expertise in data science, statistics, and machine learning: rigorous statistical analysis, experimental design, causal inference, advanced modeling, research…
ai-analyst-lab/ai-analyst
Never present a metric or number in isolation; anchor every number to a comparison (prior period, benchmark, or another segment) or state that none is available.
ai-analyst-lab/ai-analyst
Retrieve proven SQL patterns, table cheatsheets, and join patterns from .knowledge/query-archaeology/ so past work gets reused.
ai-analyst-lab/ai-analyst
Save completed analyses to the knowledge system's analysis archive for future reference.
ai-analyst-lab/ai-analyst
Verify Google Workspace MCP authentication at the start of any session that needs Google APIs (Docs, Slides, Drive).
ai-analyst-lab/ai-analyst
Causal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats.
ai-analyst-lab/ai-analyst
Standardized workflow for uploading local chart PNGs to Google Drive and making them available for insertion into Google Docs and Slides.
Categories
The analysis and lifecycle owner for experiments. An agent skill from ai-analyst-lab/ai-analyst. Experiment is an agent skill from ai-analyst-lab/ai-analyst. The analysis and lifecycle owner for experiments.
Experiment fits situations like: treatment vs control; statistical significance; is this result significant?.
Run `npx skills add ai-analyst-lab/ai-analyst --skill experiment -a claude-code`. Or copy the skill folder (.claude/skills/experiment in ai-analyst-lab/ai-analyst) into .claude/skills/experiment in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ai-analyst-lab/ai-analyst --skill experiment -a codex`. Or copy the skill folder (.claude/skills/experiment in ai-analyst-lab/ai-analyst) into .agents/skills/experiment in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai-analyst-lab/ai-analyst --skill experiment -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/experiment, .gemini/skills/experiment, .github/skills/experiment and .opencode/skills/experiment in your project.
SKILL.md names no scripts, command-line tools or credentials: Experiment is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Experiment is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Experiment: Statistical Analyst (alirezarezvani/claude-skills, 28k stars), Ab Test Analyzer (irinabuht12-oss/marketing-skills, 3.9k stars), Define Hypothesis (product-on-purpose/pm-skills, 715 stars) and A B Test Design (Owl-Listener/designer-skills, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ai-analyst-lab (a GitHub organization) maintains it in ai-analyst-lab/ai-analyst, which has 304 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on September 30, 2026.
Source: ai-analyst-lab/ai-analyst on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.