- Home
- Skills
- Testing & Debugging
- Scraper Drift Alarm — Catch Silent Scraper Breakage
Scraper Drift Alarm — Catch Silent Scraper Breakage
Your scraper returned HTTP 200 and garbage. This skill checks every run against a known-good baseline and names the field that broke.
$19
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
| Metric | Baseline | Current | Change | Status |
|---|---|---|---|---|
| Row Count | 1,250 | 840 | -32.8% | FAIL |
| Field Completeness | 99.2% | 81.4% | -17.8% | FAIL |
| Duplicate Rate | 0.4% | 1.1% | +0.7% | PASS |
| Price (Mean) | 45.20 | 0.45 | -99.0% | FAIL |
| Malformed Rows | 0 | 12 | +12 | FAIL |
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
availabilityfield. - Lines 600-608: Extra trailing delimiters detected.
Next steps
- Inspect the raw HTML for the
priceelement on the target site to check for selector changes. - Review the parser logic specifically around line 114 to see why the
availabilityfield is null. - Do not re-baseline until the scraper is fixed and row counts return to ~1,200.
latest_prices.csv
CSV · data export
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
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 8 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
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.