More screenshots

    Works with the AI Agents you already use

    Find Sync Bugs That Can Delete Your Data

    by AGI Tools

    1

    Sync job deleting your data? Find sync code that deletes records because a fetch came back empty, failed or incomplete, and check two exports before deletions apply. File and line for every finding. Reads files only.

    $14.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Find Sync Bugs That Can Delete Your Data

    Find Sync Bugs That Can Delete Your Data

    Example session with this skill installed

    Our nightly contact sync deleted half the CRM last week. Check crm-contacts-sync/ and tell me why.

    • Read your context and instructions
    • Compiled the find sync bugs

    Sync deletion guard report

    Mode: code
    Target: crm-contacts-sync
    Result: 3 high, 1 medium, 2 low, 1 info

    Read-only: nothing was run, changed or sent anywhere. Findings come from reading the code (static analysis). They are risks to confirm, not observed runtime behaviour, and a clean report does not prove that the sync cannot lose data.

    Facts: filesRead 1, deletionSitesByAbsence 1, fullReplaceSites 0, tombstoneDeletes 0

    High risk (3)

    • D1 Records missing from the fetch are deleted (in sync). Deletion by absence: a record is removed because it is not in the latest fetch. Guards seen in the code: none. Not seen: empty-fetch guard, pagination completeness check, deletion cap, confirmation over several runs. Hard delete (not recoverable).
      Where: sync_contacts.py:33, sync_contacts.py:34
      Fix: Skip all deletions when the fetch returned zero records; delete only after the last page is confirmed (no next cursor, count equals the reported total); stop and ask for review when one run would delete more than a set share (for example 20%); delete only records missing in two consecutive successful runs, or after a grace period; prefer a soft delete (deleted_at) that can be undone.
    • E1 Errors are turned into an empty result. An exception handler returns an empty list, empty object or None, or swallows the error. A sync that reads this result cannot tell 'the source failed' from 'the source has nothing', and may delete or close every stored record.
      Where: sync_contacts.py:14
      Fix: Let the error propagate (or return a failure marker) and skip deletions for that run.
    • E2 A failed HTTP status returns an empty result. A non-success status code is answered with an empty result instead of an error.
      Where: sync_contacts.py:16
      Fix: Raise on non-success statuses; never return [] for a failed call.

    Medium risk (1)

    • E3 A missing field defaults to an empty list. .get('items', []) or data || [] turns an unexpected or error response into 'no records'. It is safe only when the call was checked for success first.
      Where: sync_contacts.py:18
      Fix: Check the status (raise_for_status / response.ok) and that the field exists before using the list.

    Low risk (2)

    • R1 Deletes in sync_contacts.py are not inside a transaction. Without a transaction, a run that fails half way leaves some deletes applied and others not.
      Where: sync_contacts.py
      Fix: Wrap the fetch-compare-delete step in one transaction and roll back on any error.
    • T1 HTTP calls without a timeout. A call without a timeout can hang a run; when the run is then stopped, partial results may be saved as if complete.
      Where: sync_contacts.py:13
      Fix: Pass timeout= and treat a timeout as a failed fetch.

    Notes (1)

    • R2 No dry-run option found in sync_contacts.py. A dry run that reports what would be deleted lets an operator check a suspicious run first.
      Where: sync_contacts.py
      Fix: Add a dry-run flag that writes the planned deletions instead of applying them.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A sync that removes "everything that is not in the latest fetch" is only as safe as that fetch. When the fetch fails quietly (an exception turned into an empty list, an error status answered with no rows, the last pages never fetched, one source down), nothing was deleted at the source, but the sync deletes it anyway. This skill runs a real program over your sync code and over two exports, and reports each problem with the file, the line and the reason.

    Code audit (Python, JavaScript and TypeScript):

    • Deletes driven by absence: records removed because they are missing from the latest fetch, full-replace writes, and explicit deletion markers.
    • Failures that look like "no data": exceptions and failed HTTP statuses turned into empty results, empty defaults, requests without a timeout.
    • Guards, per delete: which of these were found near it and which were not: empty-fetch check, pagination completeness, deletion cap, confirmation over several runs, soft delete.
    • Safety nets: transactions and dry-run switches.

    Snapshot audit (JSON, JSON Lines or CSV): compares the previous and the current export before deletions are applied and answers apply or hold. It holds on an empty or incomplete export, a drop above your limit, a vanished source, a stale export, a cut-off at a page boundary, or a renamed key field. The exit code lets a pipeline act on the answer.

    What you get: a Markdown report and a JSON file, each finding with file, line, rule and a concrete fix.

    What it is not: the findings are static analysis of your files or a comparison of two exports. They are not observed runtime behaviour, and a clean report does not prove that a sync cannot lose data. The skill reads files only: it does not connect to your database, your APIs or the network, and it never changes your files.

    • Static analysis and file comparison only: nothing is observed at runtime. Every finding cites the line so you can judge it.
    • Python is parsed; JavaScript and TypeScript are matched by structure, so unusual formatting can be missed. Symbolic links and files over 2 MB are skipped and listed.
    • SQL files, stored procedures and ETL tool configurations are not read. Snapshots up to 200 MB each, held in memory.
    • The snapshot verdict compares two exports you provide; it cannot know whether an export itself is correct.
    • Verified on Linux with Python 3.9, 3.10, 3.11, 3.12 and 3.13; Windows and macOS not verified yet.
    • A clean report is not a guarantee against data loss.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 6 days ago

    Software
    Python 3.9+

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    **/*.py
    **/*.js
    **/*.ts
    **/*.json
    **/*.jsonl
    **/*.csv

    Runs a local Python program over the folder and export files you name and writes two report files next to them. No network connection, no environment variables, no services.

    Listed6 days ago
    Updated4 days ago

    What's inside

    Frequently Asked Questions

    No. It reads the code folder and the export files you pass, writes two report files, and makes no network connection. Your files are never modified.

    No. It means none of the listed patterns was found in the files it read. The findings are static analysis or a comparison of two exports, not observed runtime behaviour. Keep your backups and test restores.

    Python (parsed), JavaScript and TypeScript (pattern-based), including common ORM forms such as Django, SQLAlchemy, Sequelize, Prisma and Mongo calls. Exports as JSON, JSON Lines or CSV.

    Export the records before and after the fetch, run the snapshot audit on the two files, and let your job read the exit code: apply or hold. The skill itself does not run or pause your sync.

    Deletes built from wrappers or variables can hide a problem or cause a false alarm. Every finding cites the file and line and names the guard it looked for, so you can judge it quickly.

    New in Data & Databases

    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.