hollandkevint/data-product-operator / skills/duckdb-data-profiling
duckdb-data-profiling
VerifiedProfile approved CSV or Parquet files with DuckDB and produce reproducible quality and join checks. Use for local exploratory analysis, schema drift, identifier preservation or source reconciliation. Does not authorize sensitive-data downloads or arbitrary SQL execution.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.8 KB |
| check.sql | other | 1.4 KB |
| example.csv | other | 44 B |
check.sql
View on GitHub-- Synthetic only. Run: duckdb :memory: < check.sql
CREATE TEMP TABLE events AS
SELECT * FROM read_csv('example.csv',
columns = {'patient_key':'VARCHAR', 'amount_raw':'VARCHAR'},
header = true, delim = ',', nullstr = '');
CREATE TEMP TABLE roster AS
SELECT * FROM (VALUES ('001'),('001'),('1')) t(patient_key);
SELECT CASE WHEN (SELECT count(*) FROM events WHERE patient_key = '001') = 1
AND (SELECT count(*) FROM events WHERE patient_key = '1') = 1
THEN 'PASS identifier preserved' ELSE error('Identifier changed') END;
SELECT CASE WHEN (SELECT count(*) FROM events
WHERE amount_raw IS NOT NULL AND try_cast(amount_raw AS DECIMAL(12,2)) IS NULL) = 1
THEN 'PASS invalid cast counted' ELSE error('Invalid cast hidden') END;
SELECT CASE WHEN (SELECT count(*) FROM
(SELECT patient_key FROM roster GROUP BY patient_key HAVING count(*) > 1)) = 1
THEN 'PASS duplicate key detected' ELSE error('Duplicate key missed') END;
SELECT CASE WHEN
(SELECT sum(try_cast(amount_raw AS DECIMAL(12,2))) FROM events) = 10.00 AND
(SELECT sum(try_cast(e.amount_raw AS DECIMAL(12,2)))
FROM events e JOIN roster r USING(patient_key)) = 20.00
THEN 'PASS join inflation exposed' ELSE error('Join inflation check failed') END;
SELECT CASE WHEN (SELECT count(*) FROM events e ANTI JOIN roster r USING(patient_key)) = 1
THEN 'PASS unmatched key detected' ELSE error('Unmatched key missed') END;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |