/ai-analyst-plus:stress-testfrom ai-analyst-plus
Pressure-tests analysis plans for hidden methodological flaws: wrong baselines, survivorship bias, missing segments, uncontrolled confounds, absent kill criteria. Produces a 7-point diagnostic with A-F grade.
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.
Type: Standalone — reviews any analysis plan for methodological flaws
Takes an analysis plan, investigation design, or analytical approach and pressure-tests it for hidden flaws — wrong baselines, survivorship bias, missing segments, uncontrolled confounds, and absent kill criteria. Acts as a "senior data scientist code review" for your analytical thinking.
This skill is standalone — it works on any analysis plan, whether produced by /analysis-design, written by the user, or pulled from an existing document.
| Input | Required | Source | Description |
|---|---|---|---|
{{PLAN}} | Yes | User or file path | The analysis plan to review. Can be a file path, pasted text, or a description of the approach |
{{CONTEXT}} | No | User | Business context — what decision this analysis will inform |
{{AUDIENCE}} | No | User | Who will consume the results (affects what counts as "fatal" vs. "nice to have") |
{{DATA_DESCRIPTION}} | No | User | Description of available data, if not obvious from the plan |
CRITICAL FIRST STEP: Check data availability BEFORE methodology review.
Before reviewing methodology quality, immediately verify that required data exists:
.knowledge/datasets/{active}/schema.md)Why this matters: A methodologically perfect plan that requires non-existent data is useless. Data availability is a BLOCKER that makes all other issues irrelevant. Check it FIRST, not last.
Common data blockers to check for:
After confirming data availability, review the plan against each checkpoint. For each one, assign a verdict: PASS, WARNING, or FAIL.
Check: Is there a specific, testable hypothesis? Or is this a fishing expedition?
| Verdict | Criteria |
|---|---|
| PASS | Hypothesis is falsifiable with a clear claim about cause and effect |
| WARNING | Hypothesis exists but is vague ("engagement is down") or has multiple interpretations |
| FAIL | No hypothesis — plan is "explore the data and see what we find" |
Fix if FAIL: "State what you expect to find AND what would prove you wrong."
Check: Is the comparison group / baseline appropriate?
| Verdict | Criteria |
|---|---|
| PASS | Baseline accounts for seasonality, concurrent changes, and selection effects |
| WARNING | Baseline is reasonable but has known gaps (e.g., no YoY comparison available) |
| FAIL | Baseline is naive (e.g., "compare to last week" without checking for holidays, campaigns, or deployments) |
Common traps to check:
Fix if FAIL: "Identify 2-3 alternative baselines and explain why each is valid or invalid."
Check: Does the analysis only look at entities that "survived" to be measured?
| Verdict | Criteria |
|---|---|
| PASS | Analysis includes churned/dropped users, failed transactions, abandoned sessions |
| WARNING | Survivorship risk is acknowledged but not controlled for |
| FAIL | Analysis only includes "active" or "completed" entities without acknowledging what's excluded |
Common traps:
Fix if FAIL: "Explicitly define the denominator. Who is EXCLUDED from this analysis and why?"
Check: Will the analysis check for segment-level differences that could reverse the overall finding?
| Verdict | Criteria |
|---|---|
| PASS | Plan includes segment breakdowns on 3+ dimensions with explicit Simpson's paradox check |
| WARNING | Plan checks 1-2 segments but doesn't systematically test all categorical dimensions |
| FAIL | Plan only reports overall/aggregate numbers |
Key segments to always check:
Fix if FAIL: "Add segment breakdowns for every categorical dimension with >2 values. Flag any reversal."
Check: Does the plan identify and control for concurrent changes?
| Verdict | Criteria |
|---|---|
| PASS | Plan lists all known concurrent changes and has a control strategy for each |
| WARNING | Plan acknowledges confounds exist but doesn't have a strategy to isolate them |
| FAIL | Plan doesn't mention confounds or assumes the hypothesized cause is the only thing that changed |
Questions to surface confounds:
Fix if FAIL: "List every change that happened in the same time window. For each, explain how you'll separate its effect."
Check: Does the plan define what would make you REJECT the hypothesis?
| Verdict | Criteria |
|---|---|
| PASS | Explicit thresholds for acceptance AND rejection, plus practical significance criteria |
| WARNING | Has acceptance criteria but no rejection criteria (can only "confirm," never "disprove") |
| FAIL | No criteria — "we'll see what the data shows" |
What good criteria look like:
Fix if FAIL: "Define the minimum effect size that matters AND what finding would disprove your hypothesis."
Check: Will the analysis output actually answer the stakeholder's question? AND can the analysis be executed with available data?
| Verdict | Criteria |
|---|---|
| PASS | Output format matches stakeholder need AND all required data exists |
| WARNING | Output will be useful but may need translation for the audience, OR data exists but may have quality/completeness issues |
| FAIL | Output is descriptive ("here's what happened") when stakeholder needs prescriptive ("here's what to do"), OR BLOCKER: required data does not exist (e.g., plan requires "product category" but dataset has no category field) |
Common misalignment:
Fix if FAIL (data blocker): "HALT — this analysis cannot be executed. The dataset does not contain [required field]. Either locate the field in another table, request a data extension, or pivot to a different dimension that exists (e.g., analyze by customer segment instead of product category)."
Fix if FAIL (alignment): "Restate the stakeholder's actual question and work backwards to what the output must contain."
Start with a 1-sentence executive summary at the top (before the separator line) stating the grade and any blockers.
STRESS TEST RESULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1-sentence summary: e.g., "GRADE D (2 FAILs, 2 WARNINGs) — significant redesign needed before execution" or "GRADE F — BLOCKER: required data does not exist"]
OVERALL GRADE: [A/B/C/D/F]
| # | Check | Verdict | Issue |
|---|-------|---------|-------|
| 1 | Hypothesis Clarity | PASS/WARNING/FAIL | ... |
| 2 | Baseline Validity | PASS/WARNING/FAIL | ... |
| 3 | Survivorship Bias | PASS/WARNING/FAIL | ... |
| 4 | Segment Coverage | PASS/WARNING/FAIL | ... |
| 5 | Confound Identification | PASS/WARNING/FAIL | ... |
| 6 | Kill Criteria | PASS/WARNING/FAIL | ... |
| 7 | Output Alignment | PASS/WARNING/FAIL | ... |
CRITICAL ISSUES (must fix before executing):
- ... [If data blocker: "BLOCKER: Cannot execute — required data does not exist. [Field name] not found in dataset."]
WARNINGS (address if time allows):
- ...
RECOMMENDED FIXES:
1. ... [Include estimated time impact for top 3 fixes: "~30 min", "~2 hours", etc.]
2. ...
3. ...
| Grade | Criteria |
|---|---|
| A | 0 FAILs, 0-1 WARNINGs — execute with confidence |
| B | 0 FAILs, 2-3 WARNINGs — execute but address warnings |
| C | 1 FAIL, any WARNINGs — fix the failure before executing |
| D | 2 FAILs — significant redesign needed |
| F | 3+ FAILs — start over with the Analysis Design Brief |
Saves to: working/stress_test_{{DATE}}.md
/stress-test "I'm going to compare this month's conversion rate to last month's, broken by device, to see if the new checkout flow helped."
/stress-test working/investigation_plan_2026-03-28.md
/stress-test working/analysis_brief.md context="Board meeting Friday, need to decide whether to invest $500K in onboarding redesign" audience="CEO and CFO"
/analysis-design — use it on ANY plan/analysis-design → /stress-test → fix → re-test/stress-test reviews an existing plan retroactivelyWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ai-analyst-lab/ai-analyst-plugin --plugin ai-analyst-plus47 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./archaeologyRetrieve proven SQL patterns, table cheatsheets, and join patterns from .knowledge/query-archaeology/ so past work gets reused. Fire as a pre-flight step before writing ANY SQL. Also trigger on "do we have a known query for X", "how do we usually join these tables", "have we computed this metric before". If the store is empty or missing, exit silently. Also owns the writer convention: after a validated analysis, curate the final SQL here./businessBrowse and search the organization's business context in .knowledge/organizations/: glossary terms, product catalog, metric definitions, OKRs, team structure. Trigger on "/business", "show me our glossary", "what metrics are defined?", "what products do we have?", "show me our OKRs", "who's on which team?", "look up [business term]", "what's the meaning of [term]?". Use this instead of reading the files directly./causalCausal inference toolkit for when experiments are not possible: estimate treatment effects from observational data with assumption checks and mandatory caveats. Invoke as /causal. Trigger on "causal", "caused", "impact of", "effect of", "attribution", "counterfactual", "difference-in-differences", "DiD", "propensity matching", "pre-post". If randomization IS possible, route to /experiment design instead.Other plugins' skills for the same job