From 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.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin taxonomy-creationThis skill uses the workspace's default tool permissions.
Load a generated CSV/JSON taxonomy into a Postgres database. Generate DDL, choose load mode, execute with logging.
Prevents silent decimal mismatch bugs in EVM ERC-20 tokens via runtime decimals lookup, chain-aware caching, bridged-token handling, and normalization. For DeFi bots, dashboards using Python/Web3, TypeScript/ethers, Solidity.
Share bugs, ideas, or general feedback.
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).