data-import-parsers
Installation
SKILL.md
Data Import & Validation (Streaming + Error CSV + Metrics + Idempotency)
When to use this skill
Use when working on:
- ETL / import pipelines (CSV/XLSX/JSON) into a DB
- Parsers that currently load whole files into memory
- Data validation/coercion, error isolation, auditability, and reproducibility
- Any import job that must be safe to re-run (idempotent)
Non-negotiables (contract)
- Process input files sequentially (no “load everything then insert”) to control memory.
- Validate and coerce types explicitly (define allowed coercions; reject ambiguous cases).
- Irreparable records must be skipped and logged to an error CSV containing:
- all original columns exactly as seen in input
- extra columns:
timestamp,file,line,error
- Emit metrics at minimum:
rows_ok,rows_skipped,parse_errors. - DB writes must be idempotent: re-running the import must not duplicate or corrupt data.