/data-utils:sql-loadfrom data-utils
Load a flat dataset (CSV / Parquet / JSON / Excel) into a SQL database. Either uses an existing configured database connection or walks the user through configuring a new one (PostgreSQL, MySQL, SQLite, MSSQL, DuckDB). Creates the table if absent, validates schema, handles primary keys and indexes, and loads with chunked inserts for large files.
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.
Load a flat-file dataset into a SQL database.
psycopg2 or psycopg[binary].PyMySQL or mysql-connector-python.pyodbc.$CLAUDE_USER_DATA/Data-Utils/config.json for saved database profiles. List them, let the user pick.op-vault, or prompt at connection time). Never hard-code passwords in files. Save the non-secret parts of the profile to $CLAUDE_USER_DATA/Data-Utils/config.json if the user wants to reuse it.fail (default), append, replace, upsert (requires primary key).int64 → BIGINT / INTEGER.float64 → DOUBLE PRECISION / REAL.object (string) → TEXT / VARCHAR(n) — size from max length observed, padded.datetime64[ns] → TIMESTAMP.bool → BOOLEAN / BIT.
Ask user to confirm for columns where inference is uncertain.CREATE TABLE IF NOT EXISTS ... (or CREATE OR REPLACE if requested). Respect primary key / not-null / index requests.to_sql(..., method='multi') or backend-native bulk loaders (COPY for Postgres, LOAD DATA INFILE for MySQL) for large files.SELECT COUNT(*) matches source; sample a few rows and compare.$CLAUDE_USER_DATA/Data-Utils/config.json:
{
"sql_profiles": {
"local-postgres": {
"backend": "postgresql",
"host": "localhost",
"port": 5432,
"database": "analytics",
"user": "daniel",
"password_ref": {"type": "env", "name": "PGPASSWORD"}
},
"local-sqlite": {
"backend": "sqlite",
"path": "~/Documents/data/warehouse.db"
}
}
}
password_ref options:
{"type": "env", "name": "PGPASSWORD"} — read from env var at connect time.{"type": "op", "reference": "op://Private/postgres/password"} — fetch via 1Password CLI.{"type": "prompt"} — prompt the user each run.Never write plaintext passwords into this file.
pip install pandas sqlalchemy
# per backend
pip install psycopg[binary] # postgres
pip install pymysql # mysql
pip install pyodbc # mssql
pip install duckdb # duckdb
COPY FROM, LOAD DATA) rather than INSERT. Stream from Parquet directly where possible.pii-flag), warn before loading into a shared database.What SKILL.md sets; muted values are Claude Code's defaults
data-utils@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin data-utils47 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.Other plugins' skills for the same job