importing-data

Import CSV data into SQLite through a five-phase auditable pipeline.

3|1|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/tilmon-engineering/claude-skills --skill importing-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: importing-data
Source: https://github.com/tilmon-engineering/claude-skills/tree/main/plugins/datapeeker/skills/importing-data
Command: npx skills add https://github.com/tilmon-engineering/claude-skills --skill importing-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured, auditable pipeline to import CSV data into a SQLite database, eliminating ad-hoc imports and ensuring consistent, reproducible results from discovery through quality reporting.

Core Features & Use Cases

  • Phase 1: CSV Discovery & Profiling: detect encoding, delimiter, headers, and capture representative samples; generate a detailed profile to inform schema design.
  • Phase 2: Schema Design & Type Inference: infer column data types, map NULL representations, and propose a raw_[table_name] CREATE TABLE with justifications.
  • Phase 3: Basic Standardization: define rules for date normalization, numeric cleaning, whitespace handling, and NULL mappings to ensure clean raw data.
  • Phase 4: Import Execution: create the table, import the CSV with applied standardization, verify row counts and sample data, and run validation checks.
  • Phase 5: Quality Assessment & Reporting: delegate quality checks to sub-agents to identify NULL patterns, duplicates, outliers, and potential foreign-key relationships, compiling a comprehensive quality report.

Quick Start

  1. Start a new analysis session and run Phase 1 to generate 01-csv-profile.md.
  2. Review Phase 1 output, then proceed to Phase 2 to draft the schema, followed by Phase 3 standardization rules.
  3. Execute Phase 4 import and complete Phase 5 quality reporting using the provided templates.

Frequently Asked Questions about importing-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What's the best way to import CSV data into SQLite without data quality issues?

To reliably import CSV data into SQLite, use a structured 5-phase pipeline covering data profiling, schema design, standardization, execution, and quality assessment. This enforces explicit NULL handling and type inference to eliminate ad-hoc imports and ensure reproducible ingestion.

How do I profile a CSV file before importing it into a database?

You profile a CSV file by detecting its encoding, delimiter, and headers, then capturing representative samples. This generates a detailed data profile that informs schema design and type inference for the subsequent database import.

How does schema design and type inference work for CSV imports?

Schema design for CSV imports works by inferring column data types, mapping NULL representations, and proposing a raw table CREATE TABLE statement with justifications. This ensures clean raw data standardization before the actual import execution.

Can I standardize dates and clean numeric values during a CSV import?

Yes, you can standardize dates and clean numeric values during a CSV import by defining explicit standardization rules. These rules handle date normalization, numeric cleaning, whitespace trimming, and NULL mappings to ensure clean raw data enters the database.

How do I assess data quality after importing a CSV file?

You assess data quality after a CSV import by running validation checks on row counts and using sub-agents to identify NULL patterns, duplicates, outliers, and potential foreign-key relationships, compiling these findings into a comprehensive quality report.

Why does my CSV import fail due to mismatched NULL values and encoding?

CSV imports often fail due to mismatched NULL representations and encoding issues because ad-hoc processes lack explicit profiling. A structured pipeline detects encoding and maps NULL values during schema design to prevent these import failures.