/ai-analyst-plus:explorefrom ai-analyst-plus
Quick, interactive data exploration for previewing tables, checking distributions, and spotting patterns. Use when you have a known dataset and want to poke around before formal analysis.
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.
Quick, interactive data exploration without the full pipeline. Lets users poke around the active dataset — preview tables, check distributions, spot patterns, and form hypotheses before committing to a formal analysis.
/explore or "let me explore the data" or "what's in this dataset?"/explore — explore the active dataset
/explore {table} — focus on a specific table
/explore {table} {column} — deep-dive into a specific column
Try to load formal context first:
.knowledge/active.yaml exists.knowledge/datasets/{active}/schema.md for table/column reference.knowledge/datasets/{active}/quirks.md for known gotchasIf .knowledge/ files don't exist (common for new users), fall back:
data/examples/*.csv (shared example datasets)data/practice/*.csv (if a local practice dataset is present)tests/fixtures/*.csv (test data)If no data found anywhere:
/connect-data to add one, or point me to your data files."Mode A: Dataset overview (no table specified) — READ-AND-STEER
Goal: Give the user just enough orientation to steer, then stop and ask what they want to explore. Do NOT autopilot into observations, findings, or starting questions. The tool's job is to read the situation and hand the steering wheel back to the user.
Deliver (keep it tight — this is a one-screen opener, not an analysis):
users → orders → order_items → products).DO NOT at this stage:
working/explore_notes_*.md — there is nothing to note yet.All of that comes after the user gives a real analytical question. Once they steer (e.g., "look at cancellations by device"), proceed with queries, charts, and notes — but narrate the invisible layers first (see Mode A → Follow-up below).
Mode A → Follow-up: User Steers With an Analytical Question — NARRATE THE MACHINERY
When the user answers the Mode A opener with a specific analytical question (e.g., "top 5 product categories by support ticket volume", "how does conversion vary by device"), DO NOT jump straight to SQL. The user is inside /explore to see the AI Analyst stack at work. Surface the invisible layers as four labeled, visible blocks — in this order, before presenting any numbers:
🧭 Question Read: State plainly what kind of ask this is and how explore will handle it: a factual lookup, a ranked aggregation, a comparison, or a diagnostic question that deserves a framed analysis instead of a quick exploration query. One or two sentences. Example: "This is a ranked aggregation over a known grain, answerable with one query plus a quality check."
🎯 Framed Query — Translate the plain-English ask into a precise, executable spec before running it. 3-6 bullets covering: the grain (what's being counted), the joins required, the aggregation, how ambiguity is resolved (ties, duplicates, null keys, one-to-many fan-out), the ordering and limit. This is the "sharpening" step — the user can correct it before execution. Example: "Grain: one row per support ticket. Join: support_tickets → orders → order_items → products. Count: distinct ticket_id per products.category. Ambiguity: an order can span multiple categories; a ticket is counted once per distinct category it touches (so percentages can sum >100%). Order by ticket count desc, limit 5."
✅ Data Quality Check — Run the checks the framed query depends on before the main aggregation, and report PASS / WARN / FAIL per check with actual numbers. Cover at minimum: (a) join-key coverage (what % of the left-side rows have a matching key?), (b) null rates on the columns used in GROUP BY / WHERE, (c) cardinality sanity (does any category look suspiciously large or small?). If a WARN would materially skew results (e.g., "60% of tickets have no order_id, so we're answering the question for the 40% that do"), surface it here — not in a footnote after the table.
📊 Answer — Only after the three blocks above, run the query and present the result table with a one-line source citation. Include any methodology caveats that the Data Quality Check surfaced.
Keep each block tight: 2-5 lines. The goal is visible machinery, not a wall of text. The reader should be able to point at each block and say "that's the question read," "that's the framing layer," "that's the quality check."
Rationale: Bare /explore is often used as a teaching surface for the AI Analyst architecture. Running queries silently hides the parts of the system that are most valuable to see. Narrating these three layers on every follow-up question inside /explore makes the copilot model legible.
Mode B: Table exploration (table specified)
Goal: Help the user understand one table's structure, quality, and analytical potential.
Deliver:
Mode C: Column deep-dive (table + column specified)
Goal: Understand the distribution, quality, and business meaning of one column.
Deliver:
swd_style())After presenting results, ALWAYS offer 2-3 specific, actionable next steps.
Good examples (use actual names from the data):
Avoid generic suggestions like "Want to analyze more?" — make them specific to findings.
Only after the user has steered with a real question and you've run actual exploration queries, write a summary file to working/explore_notes_{YYYYMMDD}.md. Do NOT write this file on the initial read-and-steer prompt (Mode A opener) — there is nothing to note when the user hasn't asked anything yet.
Include:
Why this matters: Later steps (the question-framing skill, hypothesis work, further exploration) can read these notes to avoid redundant work and build on your findings.
Format:
## Tables Examined
- {table_name} (explored {date})
## Key Observations
- {observation 1}
- {observation 2}
## Quality Flags
- ⚠️ {issue description}
- ✅ {positive finding}
## Suggested Next Steps
1. {suggestion 1}
2. {suggestion 2}
Read-and-steer on open-ended /explore — Bare /explore is an invitation, not an instruction. Orient the user (dataset name, source, coverage, table list, entity map) and then STOP and ask what they want to explore. Never autopilot into observations, summary queries, quality flags, or proposed investigations on the opener. Only run analytical queries after the user provides a specific question. /explore {table} and /explore {table} {column} already carry intent — go ahead with Mode B / Mode C there.
Narrate the stack on every follow-up inside /explore: When the user steers with an analytical question after the Mode A opener, you MUST output the four labeled blocks (🧭 Question Read → 🎯 Framed Query → ✅ Data Quality Check → 📊 Answer) before presenting results. Do not run the aggregation and then retrofit the narration. These layers normally run silently across the system; inside /explore they are surfaced on purpose, because /explore is the teaching surface for the AI Analyst architecture. Skipping them defeats the point of using the command.
Keep it fast — No more than 3-4 queries per exploration step. Users want speed, not exhaustive profiling.
Always apply swd_style() if generating any chart. Call it BEFORE creating the chart.
Never modify data during exploration. Read-only operations only.
Always cite table and column names in output. Users need to know what you're referencing.
Mention data source explicitly - Tell the user where data came from:
Use actual data - Never provide hypothetical/generic exploration. If data doesn't exist, say so clearly and stop.
Empty table (0 rows): Report row count = 0, suggest checking data load process, do NOT attempt distribution analysis
Table not found: Use fuzzy matching to suggest closest match:
Column has 100% nulls: Flag as BLOCKER, suggest checking data pipeline, do NOT attempt distribution analysis
Very wide table (>50 columns): Group columns by semantic category (IDs, metrics, dimensions, dates), show summary counts per category instead of listing all 50+
Date column stored as VARCHAR/text: Flag in quality section, remind user to cast as ::DATE or CAST(... AS DATE) in SQL queries
Mixed data sources: If some tables are in DuckDB and others are CSVs, mention this explicitly so user understands why queries might behave differently
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./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