- Home
- Skills
- Data & Databases
- Make Data Imports Safe To Rerun
Works with the AI tools you already use
Make Data Imports Safe To Rerun
Repair fragile CSV, JSON, API, and database import scripts so they can be rerun safely.
$8.99
Make Data Imports Safe To Rerun
Example session with this skill installed
My python script imports products from products.csv into Postgres, but it keeps timing out and creating duplicate entries when I restart it. Fix the idempotency.
- Read your context and instructions
- Compiled the make data imports
- Generated the data export
Import Detected: CSV to Postgres (Python/SQLAlchemy)
Safety Changes Applied
- Implemented upsert logic using 'product_sku' as a unique business key.
- Added batch processing (100 rows) with transaction commits.
- Created a '.import_checkpoint' file to track the last processed row index.
make-data-imports-safe-to-rerun.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Data imports often fail halfway, create duplicates on retry, or lack proper validation. Developers waste time manually cleaning up database corruption or writing custom recovery logic for every new ETL script.
What it does
- Analyzes import scripts to identify duplicate risks and partial-failure vulnerabilities.
- Implements idempotent logic like upserts, unique constraints, and record fingerprinting.
- Adds dry-run modes and validation layers to catch errors before data hits the database.
- Builds checkpointing systems to allow interrupted migrations to resume exactly where they stopped.
- Configures quarantine mechanisms for rejected rows so invalid data doesn't block the entire import.
Frameworks & tools
Works with CSV, JSON, SQL, and API-based data flows. Compatible with any environment where code can be edited or shell commands executed to verify database state.
Why this beats prompting it yourself
Standard LLM prompts often overlook edge cases like transaction boundaries, race conditions, or memory exhaustion in large batches. This skill enforces a strict integrity-first hierarchy, ensuring recovery and deduplication are baked into the architecture rather than added as an afterthought.
Use cases
- Fixing a legacy CSV import script that duplicates users every time it runs.
- Adding a resume feature to a large-scale database migration that keeps timing out.
- Implementing a dry-run flag for a production API sync to verify transformations.
- Building a robust ETL pipeline that isolates malformed records in a quarantine table.
Known limitations
Cannot guarantee idempotency if no stable record identity or business key exists. Requires explicit approval before executing against production systems.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 1 month ago
- Passed all security checks, Safe to install