- Home
- Skills
- Agents & Orchestration
- Soft Delete Contract Repair
Works with the AI tools you already use
Soft Delete Contract Repair
Repair soft-delete lifecycle drift in a repository using Cursor.
$6.99
Soft Delete Contract Repair
Example session with this skill installed
My Prisma repo has inconsistent soft-delete filters. Users see deleted items in search results, and restoring a project leaves its tasks hidden. Fix the repository contract and visibility logic.
- Read your context and instructions
- Compiled the soft delete contract
1. Repair decision
Decision: SOFT-DELETE LIFECYCLE DRIFT FOUND — SAFE LOCAL PATCH AVAILABLE.
I found 4 visibility leaks in project repositories and inconsistent task restoration logic. I have prepared a patch with centralized predicates and a restore preflight plan.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Soft-delete logic often drifts across models, query scopes, and external services. This leads to deleted-record leaks in APIs, broken uniqueness constraints, orphaned child records, and stale data in search indexes or caches.
What it does
- Analyzes repository files to identify visibility leaks where soft-deleted records are accidentally exposed.
- Repairs restore logic by adding preflight collision checks and dependency restoration plans.
- Fixes search and cache projection drift by implementing versioned, idempotent event handling.
- Secures external object storage by adding visibility gates to download paths.
- Standardizes purge workflows using a state machine that separates intent, cleanup, and finalization.
Frameworks & tools
Works with any repository containing models, ORM schemas (Prisma, Django, TypeORM, etc.), API routes, and background workers.
Why this beats prompting it yourself
General prompting often misses the deep edge cases of soft deletion like identifier reuse and parent-child visibility inheritance. This skill traces the entire lifecycle across database, API, and infra layers to ensure a consistent contract rather than just applying a simple query filter.
Use cases
- Fixing API endpoints that still return deleted records via direct-ID lookups.
- Preventing uniqueness collisions when recreating a record with a deleted slug or email.
- Synchronizing search indexes and Redis caches when records are deleted or restored.
- Building safe purge jobs that respect legal holds and verify storage cleanup before database commits.
Known limitations
Does not access production databases or real customer data. It cannot define your legal retention policies or verify deletion completeness in backups and logs.
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