/ai-analyst-plus:analysis-designfrom ai-analyst-plus
Turns vague hunches or stakeholder requests into rigorous analysis plans through a staged pipeline: hypothesis sharpening, confound scan, V1, feedback, V2 redesign.
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.
Trigger: /analysis-design, "design an analysis for...", "I think X caused Y", "help me investigate..."
Type: Orchestrator — runs a multi-agent pipeline
Takes a vague analytical hunch, stakeholder request, or business question and produces a rigorous, stakeholder-ready analysis plan through a multi-stage pipeline. Chains three specialized agents: Hypothesis Sharpener → Confound Scanner → (optional) Feedback Synthesizer.
This skill orchestrates the full lifecycle: hunch → testable hypothesis → threat assessment → investigation plan → V1 execution → feedback synthesis → V2 redesign.
| Input | Required | Source | Description |
|---|---|---|---|
{{HUNCH}} | Yes | User | The vague hypothesis, business question, or analytical request |
{{DATA_PATH}} | No | User or auto-detect | Path to relevant dataset(s). If not provided, uses active dataset from .knowledge/active.yaml |
{{AUDIENCE}} | No | User | Who will consume the analysis (e.g., "VP of Product", "exec team", "cross-functional leads") |
{{V1_FINDINGS}} | No | User or working/ | Path to V1 analysis output — triggers V2 redesign flow |
{{FEEDBACK}} | No | User | Stakeholder feedback (comments, meeting transcript, Slack thread) — triggers Feedback Synthesizer |
{{URGENCY}} | No | User | Timeline constraint (e.g., "need by EOD", "board meeting Friday"). Affects investigation depth. |
BEFORE doing ANYTHING else, output the architecture preview. This is the very first thing you do when this skill is invoked. Do not read agent files, do not start Stage 1, do not process inputs — show the preview first.
If {{V1_FINDINGS}} or {{FEEDBACK}} is provided (V2 redesign scenario):
ANALYSIS DESIGN PIPELINE — V2 REDESIGN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
V1 analysis + feedback detected.
Skipping Stages 1-3 (Hypothesis Sharpener, Confound Scanner, Investigation Plan).
Jumping directly to Stage 4: Feedback Synthesizer.
This stage will:
- Extract and categorize each piece of feedback
- Assess what V1 got right, wrong, and missed
- Design V2 investigation plan addressing all stakeholder concerns
- Map each feedback item to specific V2 analysis steps
Starting Stage 4...
Otherwise (fresh analysis scenario):
ANALYSIS DESIGN PIPELINE
━━━━━━━━━━━━━━━━━━━━━━━━
I'll investigate this in 3 stages:
1. Hypothesis Sharpener — turn your hunch into a testable claim
2. Confound Scanner — find everything that could make this wrong
3. Investigation Plan — prioritize what to check first
Starting Stage 1...
If {{URGENCY}} is detected, add:
⏰ URGENCY DETECTED: {{URGENCY}}
Applying timeline compression:
- Prioritizing core investigation steps
- Flagging optional deep-dives that may be skipped
- Setting explicit scope boundaries
/analysis-design "{{HUNCH}}"
│
├─ FIRST: Output Architecture Preview (see above)
│
├─ Does the user have V1 + feedback?
│ YES → Skip to Stage 4 (Feedback Synthesizer)
│ NO → Start from Stage 1
│
▼
┌─────────────────────────────────────┐
│ STAGE 1: Hypothesis Sharpener │
│ Agent: hypothesis-sharpener │
│ │
│ Input: {{HUNCH}} │
│ Output: Testable hypothesis, │
│ Analysis Design Brief, │
│ natural experiments found, │
│ key segments identified │
└──────────────┬──────────────────────┘
│
├─ ⏸ CHECKPOINT: Present Stage 1 summary.
│ Output: "⏸ STAGE 1 COMPLETE
│ Review the hypothesis above.
│ Reply 'continue' to proceed to Stage 2,
│ or provide corrections."
│ STOP HERE. WAIT for user response.
│ Do NOT proceed to Stage 2 automatically.
│
▼
┌─────────────────────────────────────┐
│ STAGE 2: Confound Scanner │
│ Agent: confound-scanner │
│ │
│ Input: Sharpened hypothesis + │
│ data context │
│ Output: Threats to validity, │
│ concurrent changes, │
│ data quality flags, │
│ selection biases │
└──────────────┬──────────────────────┘
│
├─ ⏸ CHECKPOINT: Present Stage 2 summary.
│ Output: "⏸ STAGE 2 COMPLETE
│ Review the confounds above.
│ Reply 'continue' to proceed to Stage 3,
│ or provide corrections."
│ STOP HERE. WAIT for user response.
│ Do NOT proceed to Stage 3 automatically.
│
▼
┌─────────────────────────────────────┐
│ STAGE 3: Investigation Plan │
│ (Skill generates directly) │
│ │
│ Combines Stage 1 + Stage 2 into │
│ a prioritized investigation plan │
│ with criteria (no time estimates) │
└──────────────┬──────────────────────┘
│
├─ USER CHECKPOINT: "Review the plan?"
│ APPROVE → Execute V1
│ MODIFY → Re-run with adjustments
│
▼
┌─────────────────────────────────────┐
│ STAGE 3b: V1 Execution │
│ (Skill runs the analysis per the │
│ analyst-core method, with direct │
│ Python/SQL as appropriate) │
│ │
│ Output: V1 findings summary │
│ saved to working/ │
└──────────────┬──────────────────────┘
│
├─ Present V1 to user
│ "Share with stakeholders and
│ come back with feedback"
│
│ ... stakeholder feedback arrives ...
│
▼
┌─────────────────────────────────────┐
│ STAGE 4: Feedback Synthesizer │
│ Agent: feedback-synthesizer │
│ │
│ Input: V1 findings + {{FEEDBACK}} │
│ Output: Categorized feedback, │
│ V1 right/wrong assessment, │
│ V2 investigation plan, │
│ stakeholder answer map │
└──────────────┬──────────────────────┘
│
▼
V2 Analysis Plan
(stakeholder-ready)
After the Hypothesis Sharpener and Confound Scanner run, the skill synthesizes their outputs into a prioritized investigation plan. The plan MUST include:
Analysis Design Brief (populated from Stage 1 + Stage 2):
QUESTION: [from Hypothesis Sharpener Step 1 — the specific investigation question]
DECISION: [from user context — what action depends on the answer]
HYPOTHESIS: [from Hypothesis Sharpener]
COMPARISON: [from Hypothesis Sharpener — natural experiments, baselines]
SEGMENTS: [from Hypothesis Sharpener — key cuts identified]
CONFOUNDS: [from Confound Scanner — all threats listed]
CRITERIA: [from Hypothesis Sharpener — accept/reject thresholds]
Prioritized Steps — ordered by information value (what eliminates the most uncertainty fastest). Use a 3-column table (no time estimates; the ONE place a time estimate is allowed in this flow is the feedback-synthesizer agent's V2 plan, which has an ESTIMATED EFFORT block):
| # | Step | Why First |
|---|---|---|
| 1 | [what to check — concise] | [what it eliminates] |
Confound Control Strategy — how each confound from Stage 2 will be addressed:
| Confound | Control Method | Data Needed |
|---|---|---|
| ... | ... | ... |
Kill Criteria — what would make you STOP the investigation early:
If {{URGENCY}} is set:
| Stage | Output Path | Content |
|---|---|---|
| Stage 1 | working/hypothesis_{{DATE}}.md | Sharpened hypothesis + Analysis Design Brief |
| Stage 2 | working/confound_scan_{{DATE}}.md | Threats to validity |
| Stage 3 | working/investigation_plan_{{DATE}}.md | Prioritized plan |
| Stage 3b | working/v1_findings_{{DATE}}.md | V1 analysis results |
| Stage 4 | working/v2_plan_{{DATE}}.md | V2 redesign with stakeholder answer map |
The final output of each pipeline run is a stakeholder-friendly analysis plan document — a structured Google Doc (or markdown) that you'd share with your pod (PM, tech lead, data scientist). The document should be written in natural prose, not framework skeleton format.
Document structure:
For V2 plans, also include:
Generate the document via the Google Doc Export skill (requires the Google Drive connector), with its formatting conventions (navy blue headings, bold callout labels, proper table spacing). If the connector is not available, output as clean markdown.
| Checkpoint | Type | When | Skippable? |
|---|---|---|---|
| Plan Review | B (draft review) | After Stage 3 generates plan | Yes — "just do it" skips |
| V1 Presentation | C (branch decision) | After Stage 3b | No — user must decide to gather feedback or proceed |
/stress-test — can be invoked independently on ANY analysis plan (not just ones produced by this skill)/analysis-design "I think our repeat purchase rate dropped because we removed the post-purchase recommendations widget last month"
→ Runs Stages 1-3, outputs investigation plan
/analysis-design "Why did conversion drop last week?" data=data/cartloop_transactions.csv audience="VP Product"
→ Runs Stages 1-3b, executes V1 analysis on the data
/analysis-design v1=working/v1_findings_2026-03-28.md feedback="VP says loyalty program is a confound. Marketing says the promo inflated baselines. Data Eng says mobile tracking pixel changed mid-month."
→ Runs Stage 4 only, outputs V2 plan
/analysis-design "I think the new onboarding flow is causing enterprise churn" data=data/enterprise_accounts.csv audience="VP Customer Success" urgency="board meeting Friday"
→ Runs all stages with urgency compression
What 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./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./close-the-loopEnd every analysis that makes a recommendation with an actionable follow-up plan. Use ONLY AFTER a specific recommendation ("we should...", "I recommend..."); add the checklist automatically even if not asked. DO NOT use for pre-recommendation exploratory questions like "should we investigate this?" or "what's causing this pattern?"; skip pure exploration with no recommendations.Other plugins' skills for the same job