Scraper Drift Alarm — Catch Silent Scraper Breakage

    by LINH RATHHENRY

    1

    Your scraper returned HTTP 200 and garbage. This skill checks every run against a known-good baseline and names the field that broke.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Scraper Drift Alarm — Catch Silent Scraper Breakage

    Example session with this skill installed

    Run a drift check on latest_prices.csv using the amazon_baseline.json snapshot. If it fails, tell me why.

    • Read your context and instructions
    • Compiled the scraper drift alarm
    • Generated the data export

    I have completed the drift analysis for latest_prices.csv. The check resulted in a

    FAIL verdict. The row count dropped significantly, and the price distribution has shifted, suggesting a potential parsing error or site layout change.

    Scraper Drift Report: latest_prices.csv

    MetricBaselineCurrentChangeStatus
    Row Count1,250840-32.8%FAIL
    Field Completeness99.2%81.4%-17.8%FAIL
    Duplicate Rate0.4%1.1%+0.7%PASS
    Price (Mean)45.200.45-99.0%FAIL
    Malformed Rows012+12FAIL

    Most likely broken field: price
    The mean value for the price field shifted from 45.20 to 0.45. This 100x decrease often indicates a currency parsing bug (e.g., parsing dollars as cents) or a change in how the target site displays fractional values.

    Malformed Row Alerts:

    • Lines 114, 205, 412: Missing availability field.
    • Lines 600-608: Extra trailing delimiters detected.

    Next steps

    1. Inspect the raw HTML for the price element on the target site to check for selector changes.
    2. Review the parser logic specifically around line 114 to see why the availability field is null.
    3. Do not re-baseline until the scraper is fixed and row counts return to ~1,200.

    latest_prices.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    About this skill

    Scrapers rarely fail loudly. They fail silently: a site redesign empties one field, a pagination change halves your rows, a parsing tweak turns $249.99 into $2.50 — and every downstream report, dashboard, and agent step trusts the bad data for days. Scraper Drift Alarm gives your agent a verification step for scraping work. It snapshots a known-good output once, then compares every new run against that baseline and produces a one-page Markdown verdict: row count (pagination breaks and partial crawls), per-field completeness (selectors that stopped matching), duplicate rate (pagination loops and retry bugs, with a real FAIL threshold, default >50%), numeric distribution shift (unit and parsing changes), malformed rows (reported with line numbers instead of crashing the check). The report ends with a "Most likely broken field" callout, so debugging starts in the right place. The skill includes exact reaction rules: proceed on PASS, surface on WARN, stop the pipeline on FAIL, and never re-baseline from an unverified run. What's inside: drift_alarm CLI (pure Python standard library, zero dependencies) — init snapshots a baseline, check compares CSV/JSON output and writes the report, exit code 1 on FAIL for cron/CI gating; the agent skill (SKILL.md) with workflow wiring and PASS/WARN/FAIL playbook; demo datasets (healthy vs silently-drifted) with a generated FAIL report; 43 passing pytest tests; configurable thresholds via CLI flags or JSON config. Who it's for: anyone whose agent (or cron job) scrapes prices, listings, leads, or research data on a schedule — and can't afford to find out about breakage from a bad report three days later.

    Requires manual baseline initialization from verified data. Only supports UTF-8 encoded CSV or flat JSON lists. Does not support nested object comparison.

    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 8 days ago

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed9 days ago
    Updated8 days ago

    What's inside

    Creator

    LINH RATHHENRY

    LINH RATHHENRY

    7 skills on Agensi

    Frequently Asked Questions

    Unlike LLMs that can overlook subtle statistical shifts, this skill uses deterministic logic to detect minute changes like a 5% drop in field completeness or a 10% shift in numeric averages that signify a broken selector.

    The skill supports flat JSON lists and CSV files, including automatic detection of delimiters; however, it does not currently support deeply nested JSON structures or non-UTF-8 encodings.

    You will receive the 'drift_alarm' Python CLI tool, documentation on initializing your first baseline snapshot, and integration guides for stopping pipelines when a failure is detected.

    Yes, the tool returns standard exit codes specifically designed to act as a 'gatekeeper' that can automatically halt CI/CD pipelines or cron jobs before bad data reaches your production database.

    Setup is straightforward: you provide one verified 'good' data file to initialize a baseline JSON snapshot, which the tool then uses as the ground-truth for all future comparisons.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.