/ai-analyst-plus:experiment-brieffrom ai-analyst-plus
Auto-generates structured experiment briefs with hypothesis, north star metric, guardrails, and success criteria when users propose tests or A/B experiments.
Ships in ai-analyst-plus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Auto-generate a structured experiment brief when a user expresses intent to test something. This is the "think before you design" safety net — ensuring every experiment starts with a clear hypothesis, north star metric, guardrail metrics, success criteria, and duration estimate before the Experiment Designer agent runs.
Apply this skill when:
This skill auto-fires on experiment intent detection. Do NOT wait to be asked.
The brief must be COMPLETE and ACTIONABLE:
If the user provides baseline values, VALIDATE them by querying the data first. Correct misstatements with actual numbers before using them in the brief.
An experiment brief is a one-page document that captures the essential decisions BEFORE any statistical design work begins. It answers: What are we testing? Why? How will we know if it worked? What must we not break?
EXPERIMENT BRIEF
━━━━━━━━━━━━━━━━
WHAT: What change are we testing?
WHY: What business outcome do we expect?
HYPOTHESIS: We believe [change] will [impact metric] because [reason]
NORTH STAR: The ONE metric we're trying to move
GUARDRAILS: Metrics that must NOT degrade
SUCCESS: What result would make us ship?
DURATION: Rough estimate of how long we'd need to run
The rule: Never jump to power analysis or test design without a brief. A well-designed experiment that tests the wrong thing is worse than no experiment at all.
If the user provides ANY numeric claim about current performance — baseline metric values ("our conversion rate is 3%"), traffic volume ("we get 500 checkouts per day"), current rates ("abandonment is at 65%") — query the data to validate it before proceeding. Do not trust user claims without verification — they are often wrong or outdated.
Before designing the experiment, verify the active dataset can actually measure the proposed metrics. Check:
Example: If the user wants to test a music app feature but the active dataset is e-commerce data, stop and explain the mismatch rather than proceeding with an invalid brief.
If the user provides a vague intent ("I want to test regional playlists"), structure it into a proper hypothesis:
"We believe that [specific change] will [increase/decrease] [specific metric] because [mechanism/reason]."
Rules for a good hypothesis:
If the user's intent is too vague to form a hypothesis, ask:
Select exactly ONE primary metric using the Metric Spec skill (.claude/skills/metric-spec/skill.md):
Anti-pattern to avoid: Listing "Primary Metric: X" plus "Secondary Metrics: Y, Z, W" without forcing prioritization. This creates metric proliferation and invites post-hoc rationalization. If AOV doesn't lift but items-per-order does, was it a win? Force the choice upfront. When the user lists multiple desired outcomes, push back immediately and make them choose.
Apply the Guardrails Awareness skill (.claude/skills/guardrails/skill.md):
Anti-pattern to avoid: Vague guardrails like "We need to ensure checkout doesn't slow down" or "Should not degrade customer satisfaction." These are aspirations, not testable conditions. Every guardrail needs a threshold.
Good guardrail examples:
Pre-register what "success" looks like BEFORE seeing results:
SUCCESS CRITERIA
━━━━━━━━━━━━━━━━
Ship if: [north star improves by ≥X% AND guardrails are clean]
Kill if: [north star shows no effect OR guardrails degrade significantly]
Iterate if: [mixed results — e.g., works for some segments but not others]
This prevents post-hoc rationalization. The team decides what they'll do with each outcome before the data arrives.
Anti-pattern to avoid: Success criteria with "TBD" placeholders like "Minimum Detectable Effect: +5% increase in AOV (TBD based on current baseline)". If it's TBD, it's not pre-registered. Calculate it now.
Provide a rough estimate (not a formal power analysis — that's the Experiment Designer's job):
Anti-pattern to avoid: Estimating "2-4 weeks" without classifying as VIABLE/MARGINAL/NOT_VIABLE. The flag tells stakeholders whether the test is worth running.
If feasibility is MARGINAL or NOT_VIABLE, suggest alternatives:
# Experiment Brief: [Descriptive Name]
## Hypothesis
We believe that **[change]** will **[increase/decrease] [metric]** because **[reason]**.
## North Star Metric
| Metric | Definition | Current Baseline | Target Lift |
|--------|-----------|-----------------|-------------|
| [name] | [numerator / denominator, time window] | [current value] | [≥X% relative] |
## Guardrail Metrics
| Metric | Definition | Current Value | Acceptable Threshold |
|--------|-----------|---------------|---------------------|
| [name] | [definition] | [current] | [must not degrade by >X%] |
## Success Criteria
- **Ship if:** [conditions]
- **Kill if:** [conditions]
- **Iterate if:** [conditions]
## Feasibility Estimate
| Parameter | Estimate |
|-----------|---------|
| Daily traffic | [N users/day] |
| Baseline metric value | [X%] |
| Minimum detectable effect | [Y% relative] |
| Rough duration | [Z weeks] |
| Feasibility | [VIABLE / MARGINAL / NOT_VIABLE] |
## Next Step
→ Pass this brief to the **Experiment Designer agent** for formal power analysis and test design.
After generating the brief, the next step is ALWAYS the experiment-designer plugin agent. Pass the hypothesis, metric definitions, and feasibility estimate as inputs.
metric-spec skill — for fully specifying the north star metric.claude/skills/guardrails/skill.md — for selecting and defining guardrail metricsWhat SKILL.md sets; muted values are Claude Code's defaults
47 skills in this plugin
/always-compareNever 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. Use every time you show a number: rates, counts, revenue, averages, query results, chart labels, summary stats. Trigger on output containing "the rate is", "we saw", "total", "average", "conversion", "revenue", "users", "sessions", "churn", "AOV", "NPS", or any figure pulled from data./analysis-designTurn a vague hunch or stakeholder request into a rigorous analysis plan via a staged pipeline (hypothesis sharpening, confound scan, V1, feedback, V2 redesign). Trigger on "I think X caused Y", "design an analysis for", "what's driving", "V2 after feedback", "stakeholder comments", "redesign the analysis". Vs question-framing (the lightweight framing gate before every analysis): use THIS only for a real hunch, confound scan, or V1 to V2 redesign./analyst-coreOperating rules for every data analysis. Apply for ANY data-analysis intent: "analyze", "investigate", "why did X change", "compare", "report on", "dashboard", "metrics", "funnel", "retention", "revenue", "conversion", "trend", "segment", "forecast", "how are we doing", "dig into", "break down", or any question about data, a metric, a CSV, or a table. Sets the method and routes to the other skills; load before any analytical question.npx claudepluginhub ai-analyst-lab/ai-analyst-plugin --plugin ai-analyst-plusOther plugins' skills for the same job