dataops-quality-check

dataops-quality-check is a skill for Claude Code, Codex from datagallery-ai/dataagent. It costs 381 tokens per session (12,867 once invoked), scanned A, original, Apache-2.0.

A data-quality checking workflow for warehouse results. It can check missing values, repeated keys, invalid counts, unusual ratios, row counts, common-sense issues, and selected source data comparisons.

In plain words
What is it for?
Use it to test a newly generated table or INSERT result, or to validate an existing temporary or warehouse table when the user explicitly requests a data check.
Why use it?
It helps find incorrect or suspicious data after SQL has produced a result. It keeps these more expensive checks separate from the faster process of checking SQL syntax.

Skill for Claude CodeCodex

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

Good fit Use it to test a newly generated table or INSERT result, or to validate an existing temporary or warehouse table when the user explicitly requests a data check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datagallery-ai/dataagent/dataops-quality-check
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.

Any agent
npx skills add datagallery-ai/dataagent --skill dataops-quality-check
Clone the repo
git clone --depth 1 https://github.com/datagallery-ai/dataagent

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 dataops-quality-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-quality-check/github.svg)](https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-quality-check)
Your own site
<a href="https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-quality-check"><img src="https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-quality-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dataops-quality-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-quality-check"><img src="https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-quality-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 381 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00381 $0.12867
Opus 5.5 $0.00152 $0.05147
Sonnet 5.5 $0.00076 $0.02573
Haiku 4.5 $0.00038 $0.01287

Measured 2d ago against content hash 1dbc3437f8a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dataops-quality-check 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 2d 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.

dataagent/plugins/de-agent/skills/dataops-quality-check/SKILL.md · 695 lines

How it starts

The opening of the file, as written. The whole thing — 695 lines — stays where its author put it; the contents beside it link to each section on GitHub.

数据正确性校验 (Data Quality Check)

核心心智模型

一条链路,一个触发点,一套校验器:

  ①用户显式触发                        ②主动调用
    dataops_validate_data                 trial_compute_table
        └─ trial_compute_table                  └─ 重建临时表(按 create_*.sql)
               └─ 重建临时表                            │
                      └─ 试算到临时表                     └─ 试算 → 校验 → DROP
                              └─ run_quality_check() ← 同一个函数 ─────┘

校验器注册表 _BUILTIN_CHECKERS(可扩展):null_rate(空值覆盖率)、 single_value_ratio(单一值覆盖率)、outlier_ratio(异常值占比,仅比率类字段)。

静态校验链路(check_and_repair_sql → dataops_validate_sql_with_log_analysis) 不执行数据正确性校验 —— 那条链路要保持"快",好让 agent 快速迭代修 SQL; 昂贵的采样统计统一放到用户显式触发后执行一次。

校验不再自动跑,改成用户显式触发 —— 交付后自动试算会把每一轮交付拖住 几分钟(试算要连 DataOps 跑一遍)。现在由 agent 在交付说明的最后一句提示 「输入『执行数据校验』执行数据校验」,用户输入后 agent 调用 dataops_validate_data 工具走同一条试算 + 校验 + 自修正链路。

临时表生命周期(两条链路各自独立):

语法校验链路 质量校验链路
分区日期 一年之后(today+365) 一周之前(today-7)
临时表名 tmp_<user>_<日期>_<表> 同上,但日期不同 → 不是同一张表
建表 DDL 步骤建 质量校验前按 create_*.sql 再建一次
删表 DML 成功时删(DDL 的表留给同轮 DML 用) 不管成功与否都删

所以质量校验链路必须自己重建临时表 —— 语法校验链路那张表既被删了,日期也不同, 根本不是同一张表。

试算与校验共用临时表命名(改写/分区日期)和执行路由(生产/联调), 所以试算结果和校验结果不可能漂移。

试算写入量会被截断(这正是试算的意义)

质量校验只对产出数据做 LIMIT sample_size 的采样统计(默认 10000 行)。 写入超过 10000 行的那部分数据永远不会被校验看到,所以试算的 INSERT 会加上 LIMIT N(N = quality_check.sample_size),省掉全量写入的耗时。

校验结论不变:临时表里前 N 行与全量写入的前 N 行完全是同一批行, 校验读到的样本一模一样,变的只有试算耗时。

举例,交付物 insert_ads_user_profile_ds.sql 是:

INSERT OVERWRITE TABLE ads_user_profile_ds PARTITION (pt_d = '${date}')
SELECT
  udid_sha256,
  bicoredata.SHA256(udid) AS udid_sha256,
  CASE WHEN pay_cnt > 0 THEN CAST(pay_cnt AS DOUBLE) / total_cnt ELSE 0 END AS pay_ratio
FROM dws.src_user_profile_dm
WHERE pt_d = '${date}'

试算时实际提交给 DataOps 的是(表名换成临时表、分区日期换成分区校验日期, 末尾多了 LIMIT 10000):

INSERT OVERWRITE TABLE adhoctemp.tmp_neizha_20261022_ads_user_profile_ds
PARTITION (pt_d = '20261022')
SELECT
  udid_sha256,
  bicoredata.SHA256(udid) AS udid_sha256,
  CASE WHEN pay_cnt > 0 THEN CAST(pay_cnt AS DOUBLE) / total_cnt ELSE 0 END AS pay_ratio
FROM dws.src_user_profile_dm
WHERE pt_d = '20261022'
LIMIT 10000

Read the full file on GitHub · 695 lines

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. 2d ago First seen · 695 lines · 381 tokens per session scan A 1dbc3437f8a7

Subscribe to this mod's changes

dataops-quality-check is a skill published in the GitHub repository datagallery-ai/dataagent (748 stars, last pushed 3d ago), licensed Apache-2.0. It adds 381 tokens to every session and 12,867 once invoked, about $0.0015 per session on Opus 5.5. 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-11-28.

Related

dataops-quality-check compared with skills from other repositories

dataops-quality-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dataops-quality-checkdatagallery-ai/dataagentSkill7483d agoApache-2.0A381Claude Code, Codex
fetch-dataagentscope-ai/QwenPaw-DataSkill2085d agoApache-2.0A286Claude Code, Codex
cm-skillsagentscope-ai/QwenPaw-DataSkill2085d agoApache-2.0A73Claude Code, Codex
query-odpsagentscope-ai/QwenPaw-DataSkill2085d agoApache-2.0A111Claude Code, Codex
sql-analysisrunxhq/runxSkill106yesterdayApache-2.0A43Claude Code, Codex
setup-data-workspacedanielrosehill/Claude-Data-Analyst-pluginSkill1326d agoMITA73Claude Code
documentdb-collection-adminKnuckles-Team/documentdb-mcpSkill24d agoMITA78Claude Code, Codex