# Scraped Dataset QA Gate

> A pass, warn or fail gate for scraped data before you deliver it. Measures fill rates, duplicates, mixed types and markup residue in JSON, JSON Lines or CSV, and compares a run with the last good one to catch silent scraper breakage. One dependency-free script, 15 tests.

Scraped Dataset QA Gate is a paid AI agent skill on Agensi by Tive Fi, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Tive Fi](https://www.agensi.io/creators/tive-fi)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/scraped-dataset-qa-gate
- Tags: database, testing, automation, web-scraping, data-quality, python, json, csv

## About this skill

### The problem

Scrapers rarely crash when a site changes. They keep running and return fewer records, empty fields or the wrong type, and the job still reports success. You find out when a client does.

### What it does

Your agent measures a dataset, compares it with the last good run, and returns PASS, WARN or FAIL with the numbers behind each finding.

It ships one Python script that reads local files only. No network calls, no subprocesses, no environment variables, no packages to install. It reads a JSON array, JSON Lines or CSV, and flattens nested objects to dotted field names.

### What gets checked

**On one run (Q001-Q008)**

- record count against a minimum you set
- duplicates by a key you choose, such as url or sku
- fill rate of key and required fields
- optional fields that are mostly empty
- fields that mix types, such as 12.5 in some records and "$12.50" in others
- HTML tags, entities and stray whitespace left in text
- placeholder strings such as N/A, null or a dash, which are counted as empty

**Against a baseline (B001-B005)**

- record count fell
- a field disappeared
- a new field appeared
- a field's fill rate fell
- a field changed type

Eight thresholds are adjustable through a small JSON file.

### How it works

1. The agent establishes the contract with you: the key, the required fields and the baseline.
2. It runs the gate and reads the findings.
3. For every failure it pulls example records and decides whether the source changed, the scraper broke, or the requirement was wrong.
4. It reports the verdict, the evidence and the fix, and says whether this run should become the new baseline.

The script exits with code 1 on FAIL, so it also works as a step in a scheduled job that stops delivery when the data is bad.

### Who it is for

Anyone who delivers scraped data to someone else: freelance scraper developers, Apify Actor authors, data teams with scheduled crawls.

### Where it stops

It measures shape, not truth: a price that is present, numeric and wrong still passes. It loads the whole file into memory, so sample very large datasets first. CSV values are all text, so type checks say little for CSV. It does not fetch pages or repair selectors.

## Requires

- Python 3.9 or later

## Known limitations

Measures the shape of the data, not whether values are true. Loads the whole file into memory. CSV values are all text, so type checks say little for CSV. Does not fetch pages or repair selectors. Requires Python 3.9 or later.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Scraped Dataset QA Gate skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent 'silent failures' in web scraping pipelines?

It measures what a silent failure looks like in the output: fewer records than the last good run, fields whose fill rate fell, mixed types, duplicates and placeholder values. It reports the symptom and the evidence; your agent then looks at example records to find the cause.

### Which AI agents or platforms is this QA gate compatible with?

The skill is a standalone Python tool that can be integrated into any AI agent workflow or CI/CD pipeline capable of executing Python 3.9+ scripts and handling JSON or CSV file inputs.

### How do I use Scraped Dataset QA Gate?

Connect your AI agent to Agensi through MCP, then ask it to use Scraped Dataset QA Gate on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

### Can I customize the validation thresholds for different types of scraping projects?

Yes, you can configure custom fill-rate thresholds for required fields and define unique keys (like URLs or SKUs) to ensure the validation logic matches your specific dataset requirements.

### Are there any specific file size limitations I should be aware of?

The script loads the whole file into memory, so the practical limit is the memory of the machine it runs on. No size limit has been benchmarked. For very large datasets, run it on a sample first.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
