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.
npx skills add datagallery-ai/dataagent --skill dataops-quality-checkgit clone --depth 1 https://github.com/datagallery-ai/dataagentWrote 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.
[](https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-quality-check)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
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.
- 2d ago First seen · 695 lines · 381 tokens per session scan A 1dbc3437f8a7
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.
dataops-quality-check compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dataops-quality-checkdatagallery-ai/dataagent | Skill | 748 | 3d ago | Apache-2.0 | A | 381 | Claude Code, Codex |
| fetch-dataagentscope-ai/QwenPaw-Data | Skill | 208 | 5d ago | Apache-2.0 | A | 286 | Claude Code, Codex |
| cm-skillsagentscope-ai/QwenPaw-Data | Skill | 208 | 5d ago | Apache-2.0 | A | 73 | Claude Code, Codex |
| query-odpsagentscope-ai/QwenPaw-Data | Skill | 208 | 5d ago | Apache-2.0 | A | 111 | Claude Code, Codex |
| sql-analysisrunxhq/runx | Skill | 106 | yesterday | Apache-2.0 | A | 43 | Claude Code, Codex |
| setup-data-workspacedanielrosehill/Claude-Data-Analyst-plugin | Skill | 13 | 26d ago | MIT | A | 73 | Claude Code |
| documentdb-collection-adminKnuckles-Team/documentdb-mcp | Skill | 2 | 4d ago | MIT | A | 78 | Claude Code, Codex |