quality-checks

quality-checks is a skill for Claude Code, Codex from sawrus/agent-guides. It costs 0 tokens per session (350 once invoked), scanned A, original, MIT.

A set of practices for checking the quality of data in dbt, a tool that builds data models from warehouse tables. It covers tests for missing, duplicate, invalid, outdated, or unexpectedly changing data.

In plain words
What is it for?
Use it to add tests to dbt models, validate data values and relationships, detect unusual changes in row counts, and investigate data-quality incidents.
Why use it?
It helps catch incorrect or incomplete data before it reaches reports, applications, or machine-learning systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sawrus/agent-guides/quality-checks
Any agent
npx skills add sawrus/agent-guides --skill quality-checks
Clone the repo
git clone --depth 1 https://github.com/sawrus/agent-guides

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-checks

README.md
[![agentmods](https://agentmods.dev/badge/skills/sawrus/agent-guides/quality-checks.svg)](https://agentmods.dev/skills/sawrus/agent-guides/quality-checks)
Your own site
<a href="https://agentmods.dev/skills/sawrus/agent-guides/quality-checks"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/quality-checks.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 350 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00350
Opus 5 $0.00000 $0.00175
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured 6d ago against content hash e090fb20f7be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

quality-checks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

areas/software/data-engineering/skills/quality-checks/SKILL.md · 51 lines

What it actually says

Skill: Data Quality Checks

When to load

When adding tests to dbt models, implementing data validation, or investigating quality incidents.

dbt Test Taxonomy

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

Volume Anomaly Detection

-- 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;
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 51 lines · 0 tokens per session scan A e090fb20f7be

Subscribe to this mod's changes

quality-checks is a skill published in the GitHub repository sawrus/agent-guides (17 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 350 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.