RS

    Repair Soft Delete Data Leaks

    by Mariusz Wrzeszczynski

    1

    Repair apps where deleted records reappear in searches, exports, relations, counts, jobs, or APIs.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Deleted customers are still appearing in the monthly CSV export and the admin search bar. Fix the leaks in the Customer model.

    Your agent does

    Modified:

    • app/models/customer.rb: Added default_scope for active records.
    • app/services/export_service.rb: Explicitly filtered deleted_at.
    • app/indices/customer_index.rb: Updated ThinkingSphinx delta. Verified: Export and Search now exclude soft-deleted records.

    What you get

    Filter deleted records from API responses and list viewsRepair unsafe joins that expose soft-deleted relationsUpdate search indexes and caches after record deletionAdd safe permanent-purge and restore workflows

    About this skill

    Repair apps where deleted records reappear in searches, exports, relations, counts, jobs, or APIs.

    This skill traces soft-delete flags through reads, joins, uniqueness rules, caches, and background work. It centralizes active-record filtering, protects restore and purge flows, repairs stale references, and adds deletion-boundary tests.

    ✔ Stop deleted data resurfacing ✔ Fix unsafe joins and aggregates ✔ Protect restore and purge actions

    Ideal for SaaS, CRM, stores, and admin systems.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    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 today

    Listedtoday

    Creator

    Mariusz Wrzeszczynski
    Mariusz Wrzeszczynski

    109 skills on Agensi

    Frequently Asked Questions

    Browse More Skills