ARAVINDHRAJA123

Data Quality Agent — Testing skill for Claude Code

Testing community

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

[![CI](https://github.com/ARAVINDHRAJA123/data-quality-agent/actions/workflows/ci.yml/badge.svg?branch=main)](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

![Data Quality Agent Architecture](docs/architecture.svg)


What it does

When a dbt test fails you normally get a cryptic error message. This agent:

  1. Fetches the failing rows from BigQuery — sees the actual bad data
  2. Reads the dbt manifest — understands the full lineage graph
  3. Traces upstream — profiles columns in parent models and source tables
  4. Identifies the root cause — finds where the bad data entered the pipeline
  5. 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