Experiment logo

Experiment

Organization
ai-analyst-lab
experiment

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.

Overview

Publisherai-analyst-lab
Repositoryai-analyst-plugin
Skill nameexperiment
Stars
34
Forks
13
Bundled files
11
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ai-analyst-lab on GitHub. Read the source before you install it.

Installation

Install the Experiment AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/experiment
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/experiment .claude/skills/experiment
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Experiment in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Experiment on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Experiment is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

If the skill install path cannot be resolved (some sandboxed environments): read the script file(s) from this skill, write a copy into a scripts/ folder inside the working folder, and run from there. The scripts are self-contained.

Skill: /experiment — OpenXP Experimentation Platform

Purpose

Multi-mode skill for the full experiment lifecycle — from design through analysis to ship/no-ship decision. Orchestrates the experiment plugin agents and calls the coded statistical library bundled in this skill at scripts/experiment_stats/ instead of improvising Python.

Using the bundled library: add this skill's scripts/ directory to sys.path, then import, e.g.

python
import sys
sys.path.insert(0, "<path to this skill>/scripts")  # the scripts/ dir next to this SKILL.md
from experiment_stats import srm_check

Requires pandas, numpy, and scipy; power.py and corrections.py also need statsmodels (install it in the sandbox if missing).

When to Use

Invoke as /experiment [mode] or trigger on experiment-related intents:

  • "I want to run an experiment"
  • "Analyze this A/B test"
  • "Did this experiment work?"
  • "What's the power for this test?"

Modes

/experiment design

Purpose: Create a pre-registered experiment config. Agent: the experiment-designer plugin agent Flow:

  1. Run Experiment Brief skill to capture hypothesis, north star, guardrails
  2. Invoke Experiment Designer agent
  3. Output: experiments/{slug}/experiment.yaml (from templates/experiment.yaml) Checkpoint: Config review (Type B — skippable with --just-do-it)

/experiment power

Purpose: Power analysis + duration estimation. Flow:

  1. Read experiments/{slug}/experiment.yaml for metric type, baseline, MDE
  2. Call the bundled power module (scripts/experiment_stats/power.py):
    • Proportion metric → power_proportion(baseline_rate, mde)
    • Continuous metric → power_mean(baseline_mean, baseline_std, mde)
  3. Call duration_estimate(total_sample, daily_traffic, allocation)
  4. Update experiment.yaml with computed values (sample_size, duration, viable)
  5. If NOT_VIABLE → suggest /causal select as alternative Checkpoint: Power viability (Type C — NOT_VIABLE fires mandatory checkpoint)

/experiment analyze

Purpose: Run statistical tests on experiment data. Agent: the experiment-analyzer plugin agent Flow:

  1. Read experiments/{slug}/experiment.yaml for pre-registered config
  2. SRM Gate (mandatory first step):
    python
    from 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 analysis
  3. Treatment effect analysis using coded helpers:
    python
    from 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)
  4. Effect size: cohens_d(control, treatment)
  5. Multiple comparisons: adjust_pvalues(all_p_values, method="holm")
  6. Guardrail checks against thresholds from experiment.yaml
  7. Segment analysis (Simpson's paradox check)
  8. Output: experiments/{slug}/working/analysis_results.json Checkpoint: SRM gate (Type C — BLOCK halts everything)

/experiment interpret

Purpose: Walk the Result Interpretation Tree and classify the outcome. Agent: the experiment-interpreter plugin agent Flow:

  1. Read analysis results from experiments/{slug}/working/analysis_results.json
  2. Walk the Result Interpretation Tree:
    • Positive result + clean guardrails → SHIP
    • Positive result + degraded guardrails → INVESTIGATE (Mixed Results Framework)
    • Null result (powered) → ABORT (no evidence of benefit)
    • Null result (underpowered) → LEARN (extend or re-design)
    • Negative result → ABORT
    • SRM or data quality issue → INVALID
  3. Apply Spotify's EwL classification: Ship / Abort / Learn / Invalid
  4. Reference pre-registered decision rules from experiment.yaml
  5. Output: classification + rationale Checkpoint: Ship decision (Type C — always fires); INVALID → refuse to proceed

/experiment report

Purpose: Generate markdown report from analysis results. Agent: the experiment-readout plugin agent Flow:

  1. Read analysis results (structured JSON, not re-computing)
  2. Read experiment.yaml for context
  3. Fill report template (templates/experiment-report.md)
  4. Adapt to audience (executive/technical/cross-functional)
  5. Output: experiments/{slug}/reports/experiment_report_{{DATE}}.md

/experiment monitor

Purpose: SRM check + guardrail status + sample tracking during a running experiment. Agent: the experiment-monitor plugin agent Flow:

  1. Read experiment.yaml for expected allocation and guardrail thresholds
  2. Run srm_check() with p < 0.0005 threshold (Microsoft production standard)
  3. Run guardrail tests (one-sided where appropriate)
  4. Track sample accumulation vs. required sample size
  5. Output: experiments/{slug}/working/monitoring_update.md
    • Traffic light status: GREEN (on track) / YELLOW (watch) / RED (halt) Checkpoint: RED guardrail (Type C — triggers halt)

/experiment status

Purpose: Show experiment lifecycle state. Flow:

  1. Read experiments/{slug}/experiment.yaml
  2. Display: current status, key metrics, timeline, any blockers
  3. No agent needed — direct YAML read and format

/experiment full

Purpose: 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.

State Management

experiments/{slug}/
├── experiment.yaml          # Pre-registered config (tracked)
├── working/                 # Intermediates (gitignored)
│   ├── analysis_results.json
│   ├── monitoring_update.md
│   └── ...
└── reports/                 # Final reports (tracked)
    └── experiment_report_{{DATE}}.md

Helper Function Reference

All statistical work uses the coded library bundled at scripts/experiment_stats/:

FunctionModuleUse For
welch_test()ab_testsContinuous metric A/B test
proportion_test()ab_testsBinary metric A/B test
ratio_metric_test()ab_testsRatio metric (delta method)
winsorize()ab_testsOutlier-robust pre-processing
power_proportion()powerSample size for proportions
power_mean()powerSample size for means
detectable_effect()powerMDE from fixed sample
duration_estimate()powerTimeline planning
srm_check()srmSample ratio mismatch
srm_diagnose()srmSegmented SRM root cause
cohens_d()effect_sizeStandardized effect size
relative_lift()effect_sizePercentage change
adjust_pvalues()correctionsMultiple comparison correction
cuped_adjust()variance_reductionCUPED variance reduction
confidence_sequence()sequentialAlways-valid CI (peeking ok)
bayesian_proportion()bayesianBayesian A/B (proportions)
bayesian_mean()bayesianBayesian A/B (means)

Cross-Product Handoffs

  • /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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Experiment AI skill do?

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.

Why use Experiment on TypingMind?

Because you install it once and use it with any model. Experiment is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Experiment in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/experiment. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Experiment?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Experiment?

As many as you like. As long as a model supports skills, you can use Experiment with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Experiment AI skill free?

Yes. It is published on GitHub by ai-analyst-lab under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇