/taxonomy-creation:load-to-postgresfrom taxonomy-creation
Use when you need to load a generated taxonomy into Postgres — create table, load data, support upsert/replace/append modes, log the operation.
Ships in taxonomy-creation. 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 generated CSV/JSON taxonomy into a Postgres database. Generate DDL, choose load mode, execute with logging.
PG* env vars (PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASE).public; override if needed.data/<name>/<name>.csv.replace (TRUNCATE + load), upsert (INSERT … ON CONFLICT DO UPDATE), append (INSERT only).code → VARCHAR(32) or VARCHAR(64), PRIMARY KEY.label / name → VARCHAR(255).INTEGER or BIGINT.metadata / JSON fields → JSONB.parent_code → VARCHAR(32) with FOREIGN KEY constraint (DEFERRABLE INITIALLY DEFERRED if hierarchical).TIMESTAMPTZ DEFAULT now().created_at TIMESTAMPTZ DEFAULT now() and updated_at TIMESTAMPTZ DEFAULT now() if not present.\copy via psql (fast, streaming).replace: TRUNCATE TABLE <table> CASCADE; \copy <table> FROM '<csv_path>' WITH (FORMAT csv, HEADER, DELIMITER ',');upsert: INSERT INTO <table> (columns) SELECT * FROM (columns from CSV) ON CONFLICT (code) DO UPDATE SET (columns) = EXCLUDED.(columns);append: \copy <table> FROM '<csv_path>' WITH (FORMAT csv, HEADER, DELIMITER ','); (assumes table exists).parent_code column exists and has FK constraints, either (a) load with SET CONSTRAINTS ALL DEFERRED and re-enable after, or (b) use topological ordering (load roots first).state/loads/<timestamp>-<schema>.<table>.log:
state/loads/<timestamp>-<schema>.<table>.log.PG* env vars or .pgpass for auth; never write passwords to logs.replace mode).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/export-formatsUse when you need to export a generated taxonomy to a non-database format — CSV, TSV, JSON, NDJSON, SQL seed file, or YAML./generate-from-specUse when you need a custom taxonomy generated from a spec — product categories, evaluation types, content classifications, domain-specific enumerations./generate-standardUse when you need a canonical reference taxonomy — ISO 3166 countries, ISO 4217 currencies, ISO 639 languages, US states, Canadian provinces, IANA timezones, HTTP status codes, MIME types. Offline-first, cached./hierarchical-taxonomiesUse when you need a parent/child taxonomy — categories and subcategories, tree structures, nested enumerations, organizational hierarchies./load-to-mysqlUse when you need to load a taxonomy into MySQL or MariaDB — create table with charset/collation, load data, support upsert/replace/append modes./load-to-sqliteUse when you need to load a taxonomy into SQLite — create table, import data, support upsert/replace/append modes, type columns appropriately.taxonomy-creation@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin taxonomy-creation