sdlc-agent-09-data-quality

Generates data quality rules, expectations, and reports from Databricks pipeline artifacts.

1|2|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/TRRaveendra/AI-Agents-Databricks --skill sdlc-agent-09-data-quality-trraveendra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sdlc-agent-09-data-quality
Source: https://github.com/TRRaveendra/AI-Agents-Databricks/tree/main/ai-agent-skills/databricks-sdlc-agent-skills/09-data-quality-agent
Command: npx skills add https://github.com/TRRaveendra/AI-Agents-Databricks --skill sdlc-agent-09-data-quality-trraveendra

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires databricks-sdk, mlflow, and includes references (resource) components.

What problem does it solve? Data pipelines built by multi-agent SDLC workflows need automated data quality validation, but deriving null checks, duplicate detection, referential integrity, and freshness rules manually from data models and mapping documents is slow and error-prone. This Skill acts as Agent 9 of 15 in the Databricks Multi-Agent SDLC Platform, producing validated DQ rules and reports as structured artifacts. ## Core Features & Use Cases - DQ Rule Derivation: Generates null/duplicate checks, business-rule validation, referential integrity, completeness, and freshness expectations from upstream data model and mapping artifacts. - Framework-Aware Output: Emits Lakeflow/DLT-style expectations (@dlt.expect_*) or DQX/Great-Expectations-style rules files matching the workspace standard. - Contract-Validated Handoff: Returns JSON conforming to a strict output contract (dq_rules.json, dq_report.md), writes artifacts to Unity Catalog Volumes, and logs runs to state.agent_runs for audit. - Use Case: After the PySpark Development Agent and SQL Agent produce transformation code, this agent reads those artifacts from /Volumes/{catalog}/state/artifacts/{ticket}/, calls the Databricks Foundation Model API to generate DQ rules, executes them against a sample table via SQL warehouse, and hands a scored DQ report to the Code Review Agent. ## Quick Start Ask the agent to derive data quality rules and a DQ report from the PySpark code, SQL, and data model artifacts for the current ticket and write them to the ticket's artifact volume.

Frequently Asked Questions about sdlc-agent-09-data-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate data quality rules from a Databricks data model?

This agent derives null, duplicate, business-rule, referential integrity, completeness, and freshness expectations from the data model and mapping document artifacts. It calls the Databricks Foundation Model API to generate the rules and emits them as DLT expectations or a DQX/Great-Expectations-style rules file.

Can I call Genie Code from a Databricks job or orchestrator?

No, Genie Code is UI-only with no public API for headless invocation. Use the Foundation Model API (Model Serving pay-per-token endpoints like databricks-claude-sonnet-4-5) or a Mosaic AI Agent endpoint for code and SQL generation instead.

What data quality frameworks does this agent support?

It emits Lakeflow/DLT-style expectations using @dlt.expect_* decorators or a DQX/Great-Expectations-style rules file, matching whichever DQ framework the workspace has standardized on.

What happens when the agent output fails contract validation?

The orchestrator rejects the output and the agent gets one repair retry with the validation error appended to context. If the retry also fails, the run is routed to state.needs_human for the approval-gate agents to review.

When should the Genie Agents Conversation API be used instead of the Foundation Model API?

The Genie Agents Conversation API answers natural-language data questions and is used as a tool in agents 3, 4, 8, and 15 for ad-hoc profiling. It does not write production code, so this data quality agent relies solely on the Foundation Model API.