analyze-experiment
Skill0 starsChanged 8 months agoMITView on GitHub
Comprehensive A/B test analysis with statistical validity, segment breakdown, and SHIP/ITERATE/ABANDON recommendation. Uses mcp__Amplitude__query_experiment, mcp__Amplitude__get_experiments.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- freemty/labmatetheir own version, first seen Sep 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- freemty/labmate★ 25same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository190 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-auditSkill
- accessibility-complianceSkill
- ado-api-cliSkill
- ado-artifactsSkill
- ado-container-deploymentsSkill
- ado-organizationSkill
- ado-pipeline-designSkill
- ado-pipeline-optimizationSkill
- ado-pipeline-securitySkill
- ado-pipelines-opsSkill
- ado-release-managementSkill
- ado-security-policiesSkill
- ado-work-trackingSkill
- adr-writingSkill
- agentic-ai-patternsSkill
- agentic-evalSkill
- agentic-memorySkill
- agentic-reliabilitySkill
- agentic-securitySkill
- ai-data-moatSkill
- ai-harnessSkill
- ai-product-designSkill
- ai-product-monetizationSkill
- ai-product-positioningSkill
- ai-product-retentionSkill
- ai-product-validationSkill
- ai-safety-guardrailsSkill
- add-analytics-instrumentationSkill
- analyze-account-healthSkill
- analyze-ai-topicsSkill
- analyze-chartSkill
- analyze-dashboardSkill
- analyze-feedbackSkill
- compare-user-journeysSkill
- create-chartSkill
- create-dashboardSkill
- daily-briefSkill
- debug-replaySkill
- diagnose-errorsSkill
- diff-intakeSkill
- discover-analytics-patternsSkill
- discover-event-surfacesSkill
- discover-opportunitiesSkill
- instrument-eventsSkill
- investigate-ai-sessionSkill
- monitor-ai-qualitySkill
- monitor-reliabilitySkill
- replay-ux-auditSkill
- review-agent-insightsSkill
- taxonomySkill
- weekly-briefSkill
- what-would-lenny-doSkill
- analytics-reportingSkill
- api-contract-testingSkill
- api-designSkill
- authentication-patternsSkill
- blockchain-auditSkill
- brainstormingSkill
- brand-voiceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Use mcp__Amplitude__get_experiments to find the experiment by name, feature flag, or product area.
- Distinctive: line 23
Start date and current status (running, paused, concluded)
- Distinctive: line 29
Before analyzing results, validate that the data is trustworthy.
- Very specific: line 40
Use mcp__Amplitude__query_experiment to retrieve results for the primary metric:
- Distinctive: line 69
Check all secondary and guardrail metrics for regressions.
- Distinctive: line 87
If the experiment hasn't run long enough, the recommendation may be "NEED MORE DATA" even if current results look positive.
- Distinctive: line 94
Do qualitative signals align with or contradict the quantitative findings?
- Distinctive: line 125
Segment heterogeneity: When the treatment effect varies significantly across user segments, suggesting the change should be targeted rather …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyze Amplitude Experiment
When to Use
- An A/B test has run for at least one week and you need a go/no-go decision
- A stakeholder asks "did the experiment work?"
- You need to check if an experiment is statistically valid before acting on results
- A test shows a positive primary metric but you need to check for regressions in guardrail metrics
- Reviewing multiple experiments to prioritize which results to ship
Core Jobs
Dimension 1: Initial Setup — Identify the Experiment
Use mcp__Amplitude__get_experiments to find the experiment by name, feature flag, or product area. Retrieve:
- Experiment name and hypothesis
- Variants: control and treatment(s), with traffic allocation percentages
- Start date and current status (running, paused, concluded)
- Primary success metric and guardrail metrics
Workaround — Metric Name Limitation: The Amplitude MCP cannot retrieve metric names directly by metric ID. To identify what metrics the experiment tracks, search for charts related to the experiment via mcp__Amplitude__get_charts and look for associated funnel or segmentation charts that reference the experiment's flag.
Dimension 2: Data Quality Assessment
Before analyzing results, validate that the data is trustworthy. Run these 7 validity checks:
- Traffic balance: Is traffic split as configured? If a 50/50 split shows 55/45, there may be a selection bias issue.
- Sample Ratio Mismatch (SRM): A statistically significant difference in traffic between control and treatment (p<0.05 on a chi-square test of traffic counts) invalidates the experiment. Flag and do not proceed with analysis.
- Statistical power: Does the experiment have enough users to detect the expected effect size? Target 80%+ power. A small sample cannot confirm a null result.
- Novelty effect: Did engagement spike in the first 1-3 days for the treatment variant? If so, the true effect may be smaller than early results suggest.
- Experiment pollution: Are users crossing between control and treatment? (Can happen if bucketing is user-level but the variant affects a shared resource.)
- Pre-experiment parity: Were control and treatment groups equivalent on key metrics before the experiment launched? A difference in the pre-period suggests selection bias.
- Instrumentation check: Did both variants log events at similar rates? A drop in event logging for one variant suggests a tracking bug.
Dimension 3: Primary Metric Analysis
Use mcp__Amplitude__query_experiment to retrieve results for the primary metric:
- Absolute lift: treatment value minus control value (e.g., "conversion rate: 12.3% vs 11.1%, lift = +1.2 percentage points")
- Relative lift: (treatment - control) / control (e.g., "+10.8% relative improvement")
- p-value: probability the result is due to chance. p<0.05 = statistically significant at standard threshold.
- 95% Confidence Interval: the range of plausible true effect sizes. If the CI crosses zero, the result is not conclusive.
- Statistical significance: p<0.05 is the standard threshold. Note: significance does not mean the effect is large enough to matter.
- Practical significance: is the lift large enough to be worth shipping? A 0.1% conversion improvement that is statistically significant may not be worth the maintenance cost.
Dimension 4: Segment Analysis
Breaking down results by user segments is mandatory. Present results as markdown tables.
Required segments to check:
| Segment | Control Rate | Treatment Rate | Lift | p-value | Significant? |
| iOS | — | — | — | — | — |
| Android | — | — | — | — | — |
| Web | — | — | — | — | — |
| New users (<30 days) | — | — | — | — | — |
| Returning users (30+ days) | — | — | — | — | — |
| Free tier | — | — | — | — | — |
| Paid tier | — | — | — | — | — |
| High-activity users | — | — | — | — | — |
| Low-activity users | — | — | — | — | — |
Fill this table from mcp__Amplitude__query_experiment results. Segment heterogeneity (the treatment working very differently across segments) is important: it may indicate the change should only ship to specific segments, or that the aggregate result is misleading.
Dimension 5: Secondary Metrics and Guardrail Metrics
Check all secondary and guardrail metrics for regressions. A positive primary metric result is invalid if a guardrail metric regresses.
Key guardrail metrics to check:
- Revenue metrics: did ARPU or conversion to paid decline?
- Retention: did D7 or D30 retention change for either group?
- Engagement depth: did session depth, feature usage, or time-on-product change?
- Support signals: did error rates or support ticket rates increase in the treatment?
Any statistically significant regression in a guardrail metric must be disclosed prominently and factored into the recommendation.
Dimension 6: Duration Assessment
Assess whether the experiment has run long enough:
- Power analysis: given the observed traffic rate and effect size, was the pre-specified sample size reached?
- Learning curves: some effects take 2-3 weeks to stabilize as users adapt to the change. Has the effect been stable for at least 2 weeks?
- Seasonality: does the experiment span any known seasonal patterns (weekends, end of month, holidays) that could bias results?
- Business cycles: for B2B products, experiments that don't include a full weekly cycle (Mon-Sun) may not capture the full user behavior pattern.
If the experiment hasn't run long enough, the recommendation may be "NEED MORE DATA" even if current results look positive.
Dimension 7: Qualitative Validation
Cross-reference quantitative results with qualitative signals:
- Are there session replays of treatment users that show how they interact with the change?
- Has user feedback (NPS, CSAT, support tickets) changed since the experiment launched?
- Do qualitative signals align with or contradict the quantitative findings?
Dimension 8: Final Recommendation
Deliver one of four verdicts with quantified rationale:
SHIP: Primary metric improved significantly (p<0.05), no guardrail regressions, sample size adequate, effect stable over time. State the expected impact at full rollout.
ITERATE: Results show promise but are inconclusive, or there is a guardrail regression that needs to be fixed. State specifically what to change and why.
ABANDON: Primary metric shows no improvement (p>0.05 with adequate power) or shows a significant negative effect, or a guardrail metric has regressed and cannot be fixed. State what was learned.
NEED MORE DATA: Sample size insufficient, experiment ran too briefly, or SRM detected. State the minimum additional runtime or sample size required before a decision can be made.
Be comprehensive, not brief. Stakeholders need to understand the reasoning behind the recommendation, not just the verdict.
MCP Tools
mcp__Amplitude__get_experiments— retrieve experiment configuration and metadatamcp__Amplitude__query_experiment— fetch experiment results by variant and segmentmcp__Amplitude__get_charts— find charts associated with the experiment for metric identificationmcp__Amplitude__get_context— get projectId and organization context
Key Concepts
- Sample Ratio Mismatch (SRM): A statistically significant imbalance between the number of users assigned to each variant, suggesting bucketing is broken. Invalidates the experiment.
- Statistical power: The probability that the experiment can detect an effect of the expected size if one truly exists. Target 80%+.
- p-value: The probability that the observed result (or more extreme) would occur by chance if there were no true effect. p<0.05 is the standard significance threshold.
- Confidence interval (CI): The range of values that likely contains the true effect size. A CI that does not cross zero indicates a significant result.
- Guardrail metric: A metric that must not regress as a result of the experiment, even if the primary metric improves.
- Novelty effect: A temporary boost in engagement for a new treatment that fades as users acclimate. Experiments should run long enough to distinguish novelty from sustained change.
- Practical significance: Whether the effect size is large enough to justify shipping, independent of statistical significance.
- Segment heterogeneity: When the treatment effect varies significantly across user segments, suggesting the change should be targeted rather than shipped to all users.
Output Format
The analysis is comprehensive — do not summarize. Executives and PMs need the full reasoning.
Structure:
- Experiment summary (1 paragraph): Name, hypothesis, variants, dates, traffic allocation.
- Data quality verdict (7 validity checks, each pass/fail with brief explanation)
- Primary metric results (specific numbers: absolute lift, relative lift, p-value, 95% CI, significance verdict)
- Segment breakdown (filled markdown table per the template above)
- Guardrail metric status (each guardrail: value, direction, significance, verdict)
- Duration and power assessment (adequate / needs more time)
- Qualitative signals (if available)
- Recommendation: SHIP / ITERATE / ABANDON / NEED MORE DATA — bold, prominent — followed by 2-4 sentences of specific rationale with numbers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

