Data Quality Agent — Testing skill for Claude Code
Agentic AI that investigates dbt test failures — traces BigQuery lineage to root cause and generates incident reports.
How to install Data Quality Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ARAVINDHRAJA123/data-quality-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Data Quality Agent does
Agentic AI that investigates dbt test failures — traces BigQuery lineage to root cause and generates incident reports. Works with Claude Code, OpenClaw (ChatGPT/Gemini), Cursor, Zed via MCP.
Alternatives in Testing
- Skill Debug — Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior 2.8k ★
- Test And Fix — Run tests and fix any failures 353 ★
- Test System — Run comprehensive system tests for patent creator (analyzers, BigQuery, GPU, embeddings) 91 ★
README
Data Quality Agent
[](https://github.com/ARAVINDHRAJA123/data-quality-agent/actions/workflows/ci.yml)
An agentic AI system that automatically investigates dbt test failures, traces the root cause through BigQuery lineage, and generates a plain-English incident report — cutting investigation time from hours to minutes.
📄 [Sample incident report](docs/sample_report.md)
Architecture

What it does
When a dbt test fails you normally get a cryptic error message. This agent:
- Fetches the failing rows from BigQuery — sees the actual bad data
- Reads the dbt manifest — understands the full lineage graph
- Traces upstream — profiles columns in parent models and source tables
- Identifies the root cause — finds where the bad data entered the pipeline
- Writes an incident report — plain-English root cause, lineage trace, recommended fix, severity
not_null_fct_transactions_merchant failed (23 rows)
│
▼
Agent fetches failing rows → reads fct lineage → traces to int_ → traces to stg_ → checks raw source
│
▼
Root cause: 23 rows in raw.bank_transactions have NULL narration.
Merchant extraction returns NULL when narration is NULL.
Fix: Add COALESCE(narration, '') in stg_bank__transactions.
Severity: HIGH
Three trigger modes
1 — CLI
python agent.py \
--test not_null_fct_transactions_merchant \
--model fct_transactions \
--column merchant \
--verbose
2 — Webhook (Airflow or any HTTP caller)
python server.py # starts on port 5051
curl -X POST http://localhost:5051/investigate \
-H "Content-Type: application/json" \
-d '{"test_name": "not_null_fct_transactions_merchant", "model": "fct_transactions", "column": "merchant"}'
Point your Airflow DAG's `on_failure_callback` at this
Related Skills
Root Cause Fix
Root-cause-first TDD loop for any bug or data fix. Forces a failing reproduction test BEFORE touching producti
Data Quality Check
GENERATOR — produces dbt test definitions and/or Great Expectations suite YAML for a given table schema or dbt
Agentic Doc Templates
Stop coding agents from losing intent or building the wrong product shape. Modular Understanding/spec/TODO doc
Claude Skill Flaky Test Detector
Claude Code skill for detecting flaky test patterns that cause intermittent CI failures
Hatch3r Bug Pipeline
Run a known-cause bug fix through a 3-phase test-first pipeline -- reproduce + root-cause, regression-test + f
Logic Locate
Locate the root cause of a confirmed failure — use when you have a stack trace, failing test, or wrong output
Related Agents
Data Platform Reviewer
Data-platform pre-implementation reviewer. Specialises in dbt model contracts, Spark / Airflow lineage, PII de
Agentic Auditor
PYA specialist spawned by the /pya orchestrator. Audits AI agent and LLM surfaces in an untrusted repository:
Cursor Rescue
Proactively use as an extra agentic lane on Cursor's own quota — bounded coding tasks (a spec file, a rename,