/ai-analyst-plus:datasetsfrom ai-analyst-plus
Lists connected datasets with status, table counts, and last analysis date. Switches the active dataset. Proactively surfaces when user seems unsure of their current data context.
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.
List all connected datasets with their status, table counts, and last analysis date. Also owns the switch procedure: /switch-dataset changes which dataset is active.
Invoke as /datasets when the user wants to see what datasets are available, and as /switch-dataset {name} (or "switch to the other dataset") to change the active dataset.
The system supports two discovery paths:
Path A: Registry-first (preferred)
data_sources.yaml to get the official list of registered sourcesPath B: Brain-first (fallback when registry is empty)
data_sources.yaml is empty or missing, scan .knowledge/datasets/ directorymanifest.yaml to get connection details and metadataUse whichever path yields results. Many installations have datasets in .knowledge/datasets/ but an empty data_sources.yaml registry — this is normal during initial setup or when datasets are added manually.
Read .knowledge/active.yaml to determine which dataset is currently active.
For each discovered dataset (whether from registry or directory scan), read .knowledge/datasets/{name}/manifest.yaml to get:
display_name — human-readable nameconnection.type — connection type (csv, local_duckdb, snowflake, postgres, bigquery)connection.database or other connection-specific fieldslast_profiled: when the dataset was last profiled (null until data-profiling runs)Table counts, date ranges, and row counts come from the dataset's schema.md or last_profile.md when those exist; connect-data's registration writes none of them. If a manifest is missing or those files have not been written yet, show what you can determine from the directory structure and note that the dataset needs profiling.
Connected Datasets:
* your_dataset (active)
Your Dataset Name — {table_count} tables, {date_range}
Connection: {type} ({database})
Analyses: 0
- {other_dataset}
{display_name} — {table_count} tables, {date_range}
Connection: {type} ({details})
Analyses: {count}
Commands:
/switch-dataset {name} — switch active dataset
/connect-data — connect a new dataset
/data — inspect active dataset schema
Mark the active dataset with *. Mark others with -.
/switch-dataset)/switch-dataset {name}, "switch dataset", "change dataset", and "use the other dataset" all resolve here. This is the only switch procedure; other skills that mention /switch-dataset mean this section.
{name} case-insensitively against the discovered dataset ids and display names (Step 1). If no name was given and exactly one non-active dataset exists, propose it; otherwise show the list and ask which one./connect-data for a new source. Write nothing..knowledge/active.yaml so active_dataset: {id} points at the target. Preserve any other keys in the file.If the user's request came bundled with an analysis question ("switch to the Q3 file and rerun the trend"), do the switch first, then continue the analysis against the new active dataset.
data_sources.yaml is empty but .knowledge/datasets/ has content, scan the directory and show what's available — this is a normal state during development or manual dataset setupWhat 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