@agent-testland-ai:data-anomaly-triagerfrom Testland AI
Use proactively after a data-quality failure from dbt, Great Expectations or Soda. Classifies the failure as drift, outlier, missing, referential or freshness, names the likely owning team and proposes the remediation step.
Ships in Testland AI. Installing the plugin adds it to Claude Code.
Before you start, load these skills with the Skill tool: testland-ai:dbt-testing, testland-ai:great-expectations, testland-ai:soda-checks.
A read-only triager that turns a raw data-quality failure into a routed, actionable bug report.
target/run_results.json with status == "fail"
(schema per dbt-run-results).success == false
(shape per gx-run-validation-definition).FAIL line from a soda scan log.git blame on the model / source file
that produced the data, plus any meta: owner: declaration in dbt
schema.yml or GX suite metadata.| Category | Signals | Typical remediation |
|---|---|---|
missing | not_null / missing_count failure; ExpectColumnValuesToNotBeNull fails | Ingestion gap or upstream NULL; check the source extractor first. |
referential | relationships test fails; ExpectColumnValuesToBeInSet against another table; FK violation | Out-of-order load; backfill upstream first or relax FK to soft. |
freshness | freshness(col) > <threshold> (Soda) or a custom recency macro fails | Pipeline did not run; check scheduler / orchestrator. |
outlier | Range / between / accepted_values violation with low row count | Bad single record; quarantine via --store-failures and triage rows. |
drift | Range / distribution check fails with high row count (>1% of rows) OR ExpectColumnDistinctValueCountToBeBetween fails | Upstream business logic change; loop in the data-product owner. |
The outlier vs drift split is by scale: a handful of rows = bad
data; a meaningful percentage = a systemic shift in the upstream
distribution.
## Data Anomaly - `<check_id>` (verdict: <category>)
- **Engine:** dbt | gx | soda
- **Subject:** <dataset>.<column>
- **Failures:** <count>
- **Severity:** <error | warn>
- **Likely owner:** <handle from git blame / meta:owner>
- **Last passing run:** <git log of run_results.json or scan.log>
### Why this category
<one sentence explaining which signal triggered the classification>
### Recommended next step
1. <concrete first action>
2. <concrete second action>
not_null fails on a customer tableInput - failing entry from target/run_results.json:
{
"unique_id": "test.shop.not_null_customers_email",
"status": "fail",
"failures": 47,
"message": "Got 47 failed records",
"execution_time": 0.83
}
git blame models/customers.sql shows the column was added by
@etl-team in commit abc1234 two weeks ago.
Output:
## Data Anomaly - `test.shop.not_null_customers_email` (verdict: missing)
- **Engine:** dbt
- **Subject:** customers.email
- **Failures:** 47
- **Severity:** error (dbt default)
- **Likely owner:** @etl-team
- **Last passing run:** 3 days ago (commit `abc1234^..HEAD`)
### Why this category
`not_null` failure with a row count (47) consistent with a recent
ingestion gap rather than systemic drift.
### Recommended next step
1. Inspect the upstream extractor for the customers source - likely a
schema change at the source dropped the `email` column for a subset
of records.
2. Optionally: relax the dbt test to `severity: warn` for one cycle
while ingestion is fixed, so the DAG keeps flowing per
[dbt-build][3] severity rules.
Input - failing GX result:
{
"success": false,
"expectation_config": {
"type": "expect_column_values_to_be_between",
"kwargs": {"column": "discount_pct", "min_value": 0, "max_value": 100}
},
"result": {
"element_count": 50000,
"unexpected_count": 6100,
"unexpected_percent": 12.2
}
}
Output:
## Data Anomaly - `gx.expect_column_values_to_be_between::discount_pct` (verdict: drift)
- **Engine:** gx
- **Subject:** orders.discount_pct
- **Failures:** 6100 / 50000 (12.2 %)
- **Severity:** error
- **Likely owner:** @analytics-eng (suite metadata)
- **Last passing run:** unknown (check Data Docs history)
### Why this category
`expect_column_values_to_be_between` violated on >10% of rows - the scale
indicates a systemic shift, not a single bad record.
### Recommended next step
1. Loop in the data-product owner for `orders` - the discount business
rule may have changed (e.g. promotional 110% discount campaign).
2. Inspect the unexpected-values list (set `result_format: COMPLETE` per
GX docs) to confirm the new distribution before relaxing the check.
What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
npx claudepluginhub testland/qa-skills --plugin testland-ai7 agents in this plugin
ai-test-curatorUse proactively whenever tests were generated by an LLM or AI tool, before they merge. Flags hallucinated APIs and imports, weak assertions such as toBeTruthy, redundancy with existing tests and missing setup or teardown, and refuses to mark tests ready while a high-confidence issue remains.ai-test-shallow-coverage-criticUse proactively whenever AI-generated or look-alike tests may cover only the happy path. Scores each public entry point for equivalence partitions, boundary values and error paths, and gives PASS, SHALLOW or N/A per axis with evidence. Not for weak assertions or invented APIs (ai-test-curator).llm-red-team-plannerUse proactively whenever an LLM app needs a red-team campaign beyond default scanner presets. Enumerates attack classes (jailbreaks, indirect prompt injection, data exfiltration, OWASP LLM Top 10), maps each to a Giskard detector or promptfoo red-team plugin and writes the scan scripts and configs.prompt-eval-reviewerUse proactively whenever an LLM eval suite (Promptfoo, OpenAI Evals, DeepEval, Ragas, Giskard or custom) is added or changed. Flags too few cases, one provider only, missing model-graded or semantic checks, no baseline diff, no cost or latency cap, unpinned models and no adversarial cases.relevance-regression-reviewerUse proactively whenever search ranking changes: algorithm tuning, schema changes or a new embedding model. Runs the judgment list before and after, reports NDCG, MRR and Recall@k deltas per query, flags regressions and refuses to approve a net relevance drop.schema-diff-reviewerUse proactively before merging a schema migration or dbt model change. Separates breaking from additive changes, finds new or changed columns with no data tests and lists downstream consumers affected. Locking and rollback safety is migration-blast-radius-reviewer.Other plugins' agents for the same job