- Home
- Skills
- Agents & Orchestration
- Soft Delete Contract Repair
More screenshots
Works with the AI Agents you already use
Soft Delete Contract Repair
Repair soft-delete lifecycle drift in a repository using Cursor.
$1
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.
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.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
Requires repository access to models and services. Cannot define legal policy or inspect production databases, backups, or logs.
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
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.