- Home
- Skills
- Data & Databases
- Make Data Imports Safe To Rerun
More screenshots
Works with the AI Agents you already use
Make Data Imports Safe To Rerun
Repair fragile CSV, JSON, API, and database import scripts so they can be rerun safely.
$1
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
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.
Connects securely to your tools. The creator never sees your data.
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.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.
Requires a stable record identity for full deduplication. Cannot run against production without explicit approval. Verification may be limited if local database access is restricted.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 months ago
- Software
- prisma
Node.js
Permissions
Permissions are limited to the active local workspace and are used to inspect user-supplied or local workspace files; create or modify bounded local fixes, tests, documentation, or review artifacts; run repository-supported local tests, checks, builds, or parsing commands. The skill package does not require bundled credentials, unrestricted external network access, or automatic production changes.