/data-utils:analyst-data-enrichmentfrom data-utils
Goal-driven enrichment (analysis-first): identify what the user is trying to analyse, diagnose gaps in the current dataset, propose external data sources that could fill them, then plan and implement the enrichment. Use when the dataset alone can't answer the user's question and extra context (reference data, lookups, joinable public datasets) is needed.
Ships in data-utils. 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.
Turn an under-powered dataset into one that can actually answer the user's question, by identifying gaps and fusing in external data.
Restate the user's question in one sentence. Identify the analytical unit (row = customer? transaction? country-year?) and the target (what are we trying to explain, predict, compare, or rank?).
If the goal is vague ("analyse this data"), push back: ask what decision or insight they want. Enrichment without a target is busywork.
Run a quick schema + sample on the dataset:
duckdb -c "DESCRIBE SELECT * FROM '<file>'"
duckdb -c "SELECT * FROM '<file>' LIMIT 5"
Note the columns grouped by role:
Compare the data to the goal and list concrete gaps. Each gap should name a missing variable or missing context, not just "more data". Examples:
For each gap, note: what variable is missing, why it matters for the goal, and what join key would connect it (country code, date, customer ID, postcode, ...).
For each gap, propose 1–3 candidate external sources. Evaluate each on:
| Criterion | What to check |
|---|---|
| Joinability | Does it share a key with the primary dataset? (ISO codes, dates, lat/lon, ids) |
| Coverage | Does it span the time range / geography / population of the primary data? |
| Freshness | How current is it? |
| Licence | Is it redistributable? (ODbL, CC-BY, public domain, commercial...) |
| Access | Bulk download, API, scrape? Cost? Rate limits? |
| Granularity | Does the resolution match? (country-year vs. city-month vs. postcode-day) |
Common reliable sources (use WebSearch / WebFetch to verify current endpoints before implementing):
Present the source shortlist to the user. Let them pick — don't silently fan out to 5 APIs.
Before writing code, write the plan as a short table:
| Target column(s) | Source | Join key | Method |
|---|---|---|---|
population, gdp_usd | World Bank API | iso3 + year | HTTP fetch + join |
avg_temp_c | Open-Meteo archive API | lat,lon + date | HTTP fetch per location + join |
currency_to_usd | Frankfurter API | currency + date | HTTP fetch + join |
Flag: cardinality of API calls (one per row? one per unique key?), caching strategy, expected runtime.
Get user sign-off on the plan before implementing — especially if it involves paid APIs or thousands of requests.
Write the enrichment as a reproducible script under scripts/enrich_<topic>.py (or .sql if it's pure DuckDB + HTTP extension). Conventions:
data/enrichment/cache/ keyed by query params. Re-runs should be free.data/enrichment/<source>.parquet — don't mutate the primary dataset in place.*_enriched table if joins are expensive.data/enrichment/PROVENANCE.md with source URL, fetch date, licence, and a SHA256 of the cached payload.Example structure:
data/
raw/
sales.csv
enrichment/
cache/
worldbank_population_IND_2015-2024.json
openmeteo_40.71_-74.01_2024.json
worldbank_indicators.parquet
weather_daily.parquet
PROVENANCE.md
scripts/
enrich_worldbank.py
enrich_weather.py
After enrichment:
Update the repo's CLAUDE.md (or create a data/enrichment/README.md) with:
python scripts/enrich_weather.py).setup-data-workspace, attach enrichments as new tables in the same .duckdb and update the Data section of CLAUDE.md.What SKILL.md sets; muted values are Claude Code's defaults
47 skills in this plugin
/add-changelogAdd or update a CHANGELOG.md in a data repository, recording dataset versions, schema changes, row-count deltas, enrichments applied, and re-publications. Follows Keep-a-Changelog conventions adapted for datasets. Use when the user wants versioned documentation of how a dataset has evolved over time./add-data-dictionaryCreate a data dictionary for a dataset (CSV, JSON, JSONL, Parquet, Excel) that documents every column/field — name, type, description, units, example values, nulls allowed, source. Use when a dataset has no accompanying documentation and the user wants one generated./add-iso3166Add ISO 3166 country codes (alpha-2, alpha-3, numeric) to a dataset that references countries by name but lacks standardised codes. Use when the user has a CSV/JSON/Parquet/Excel dataset with country names and wants ISO 3166 codes added as new columns/fields./anomaly-analysisScan a dataset for significant anomalies — outliers, distribution shifts, impossible values, and unusual groupings. Use when the user wants a first-pass integrity and anomaly sweep of a CSV/Parquet/Excel file before deeper analysis./api-loaderPrepare or refactor a dataset for upload into a REST API or MCP server — mapping dataset columns to API request fields, handling batching, pagination, rate limits, authentication, idempotency, and error retries. Works from an OpenAPI spec the user provides, a user-pointed MCP tool schema, or documentation for a well-known API (Salesforce, HubSpot, Airtable, Notion, Stripe, Shopify, Pipedrive, etc.). Generates a loader script plus a dry-run preview before executing./complementary-pluginsList and install plugins that complement data-utils: data-visualisation-and-publishing, document-to-markdown and 2 more.Other plugins' skills for the same job
data-utils@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin data-utils