db-load-csv

Import CSV data into PostgreSQL using a staging table and validation.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/GDSDN/kord-aios --skill db-load-csv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-load-csv
Source: https://github.com/GDSDN/kord-aios/tree/main/src/features/builtin-skills/kord-aios/database/db-load-csv
Command: npx skills add https://github.com/GDSDN/kord-aios --skill db-load-csv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of importing CSV data into a PostgreSQL database, ensuring data integrity through validation and a staging table approach.

Core Features & Use Cases

  • Safe Data Import: Uses a staging table to validate data before merging into the target table.
  • Idempotent Merging: Handles new and existing records using an UPSERT pattern.
  • Flexible Modes: Supports autonomous, interactive, and pre-flight planning modes.
  • Use Case: You have a large CSV file of customer records that needs to be imported into your customers table. This Skill will load it safely, checking for duplicates and data type issues before committing.

Quick Start

Use the db-load-csv skill to import the file '/path/to/data.csv' into the 'products' table.

Frequently Asked Questions about db-load-csv

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

FAQPage Schema
How do I safely import a large CSV file into PostgreSQL without breaking data integrity?

To safely import CSV data into PostgreSQL, this Skill uses a staging table to validate records and check constraints before merging. It handles data type conversion and uses an idempotent UPSERT pattern to prevent duplicate entries during bulk loading.

What is the best way to handle duplicate records when loading CSV data into a database?

Handling duplicates when loading CSV data into a database is achieved through idempotent merging. This UPSERT mechanism automatically manages new and existing records, ensuring your bulk data loading updates current entries rather than creating conflicts.

Can I automate PostgreSQL CSV imports for my data pipelines?

Yes, you can automate PostgreSQL CSV imports for data pipelines using autonomous mode. This feature allows flexible integration into automated workflows, alongside interactive and pre-flight planning modes for validating data type conversions and constraints before execution.

Why should I use a staging table for ETL data loading into PostgreSQL?

Using a staging table for ETL data loading into PostgreSQL validates data before committing it to the target table. This method isolates data type conversion and constraint checking, ensuring only clean data is merged, which prevents corrupting your primary database tables.

Does this PostgreSQL CSV import approach support interactive data validation?

Yes, this PostgreSQL CSV import approach supports interactive data validation. It provides interactive and pre-flight planning modes, allowing you to review data type conversions and constraint checks before executing the idempotent merge into your target table.