What problem does it solve?
Manually converting Data Quality Specification (DQS) markdown documents into per-table Spark-Expectations YAML rule files is time-consuming, error-prone, and difficult to maintain for large data pipelines with hundreds of quality rules.
Core Features & Use Cases
- Automated DQS Parsing: Extracts field-level, referential integrity, statistical, and reconciliation rules from structured DQS markdown files.
- Per-Table YAML Generation: Groups rules by target table and produces one valid, spark-expectations >=2.6.0 compatible YAML file per table with correct environment-specific configurations.
- Built-in Validation & Learning Capture: Validates generated YAML against SE schema constraints, handles edge cases like SCD2 metadata columns and ambiguous table references, and automatically records user corrections to improve future rule generation.
- Use Case: A data quality engineer working on a patient data pipeline can use this skill to generate all required Spark-Expectations rule configs from a single DQS document in minutes, instead of writing and debugging hundreds of YAML entries manually.
Quick Start
Provide the path to your DQS markdown file to the generate-se-rules skill to automatically produce per-table Spark-Expectations YAML rule files saved to the outputs/dqs directory.