areas/software/data-engineering/skills/quality-checks/SKILL.md
# Skill: Data Quality Checks ## When to load When adding tests to dbt models, implementing data validation, or investigating quality incidents. ## dbt Test Taxonomy ```yaml models: - name: fct_orders columns: - name: order_key tests: [unique, not_null] - name: user_key tests: - not_null - relationships: to: ref('dim_users') field: user_key - name: total_amount tests: - not_null
npx skillsauth add sawrus/agent-guides areas/software/data-engineering/skills/quality-checksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When adding tests to dbt models, implementing data validation, or investigating quality incidents.
models:
- name: fct_orders
columns:
- name: order_key
tests: [unique, not_null]
- name: user_key
tests:
- not_null
- relationships:
to: ref('dim_users')
field: user_key
- name: total_amount
tests:
- not_null
- dbt_utils.expression_is_true:
expression: ">= 0"
- name: order_status
tests:
- accepted_values:
values: ['pending', 'processing', 'completed', 'cancelled']
tests:
- dbt_utils.recency:
datepart: hour
field: loaded_at
interval: 4
-- Alert when daily row count deviates > 3σ from 30-day rolling average
WITH stats AS (
SELECT
load_date, row_count,
AVG(row_count) OVER (ORDER BY load_date ROWS BETWEEN 29 PRECEDING AND 1 PRECEDING) AS rolling_avg,
STDDEV(row_count) OVER (ORDER BY load_date ROWS BETWEEN 29 PRECEDING AND 1 PRECEDING) AS rolling_std
FROM daily_counts
)
SELECT *, CASE WHEN ABS(row_count - rolling_avg) > 3 * rolling_std THEN 'ANOMALY' ELSE 'OK' END AS status
FROM stats WHERE load_date = CURRENT_DATE - 1;
testing
QA Expert for writing E2E tests, test scenarios, test plans, and ensuring test coverage quality.
development
Expert UI/UX design intelligence for creating distinctive, high-craft, and mobile-first interfaces. Focuses on premium aesthetics, touch-first ergonomics, and Flutter performance.
development
Code Review Expert for static analysis, security auditing, architecture review, and ensuring code quality standards.
development
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.