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-validate-datagit 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-validate-data)<a href="https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-validate-data"><img src="https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-validate-data/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-validate-data"><img src="https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-validate-data.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.00423 | $0.06767 |
| Opus 5.5 | $0.00169 | $0.02707 |
| Sonnet 5.5 | $0.00085 | $0.01353 |
| Haiku 4.5 | $0.00042 | $0.00677 |
Grade A, and why
dataops_validate_data 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 — 359 lines — stays where its author put it; the contents beside it link to each section on GitHub.
数据校验 (Data Validation)
核心心智模型
两条路径,自动选:
①主路径:试算链路(workspace 里有交付物时)
workspace 里的交付物 (insert_*.sql + create_*.sql)
│ 自动定位:dml_path > sql_file_path > workspace 里最新的 insert_*.sql
▼
建临时表(按 create_*.sql) → adhoctemp.tmp_*
试算 INSERT(写入量截断到采样量级)
全部质量校验项(多条 SQL 并发)
├─ null_rate 空值覆盖率
├─ single_value_ratio 单一值覆盖率
├─ outlier_ratio 异常值占比(仅比率类字段)
├─ row_count 数据行数(表级,全量 COUNT)
├─ pk_duplicate_rate 主键重复率(表级,全表算,必须为 0)
└─ negative_count 计数型字段负值占比(必须为 0)
流程型校验
├─ common_sense 常识违规(抽样 20 行 + 模型判定)
└─ source_reconciliation 抽样 3 行回源比对
DROP 临时表(无论成败)
▼
自修正闭环(有 error 级违规时)
改 SQL → 备份 → 写回 → **重新走整个上面** → 复检
(复检必须完整;部分完成 ≠ 收敛)
▼
落盘 .runtime/data_quality_<digest>.json
▼
Markdown 报告 + 明确的「交付结论」
②兜底路径:直连真实目标表(workspace 里没有交付物、只给了表名时)
target_table(db.table)
│ 字段走 semantic 元数据
▼
只读查真实表 → 同一套校验项 → Markdown 报告 + 「数据结论」
**不建表、不插入、不改真实数据、不做自修正**
什么时候用
- 用户输入「执行数据校验」 —— 这是最主要的触发场景。交付完成后用户主动 要求校验,此时调用本工具。
- 用户直接甩了一条 INSERT:「这条 SQL 写出来的数据看着对吗?」
- 用户给了一段建表 DDL:「按这个表结构体检一下。」
- 用户只给了一个表名:「
biads.xxx这张表现在数据对吗?」—— 走兜底路径。 - 交付前自查:想让 agent 主动对交付物跑一次数据体检。
不该用的场景:要「建表 + 试算 + 校验 + 清理」这一整套但用户没要求校验
(那是 dataops-quality-check skill 的 trial_compute_table)—— 那个工具只
试算+校验,不做自修正闭环,也不落盘。
典型调用
# 最常见:交付后用户输入「执行数据校验」—— 不传任何参数,
# 工具自己去 workspace 里找交付物
dataops_validate_data()
# 显式指定交付物(推荐 —— 不依赖 workspace 扫描)
dataops_validate_data(dml_path="<workspace>/insert_ads_user_profile_ds.sql")
# 只有表名 —— 走兜底路径(直连真实目标表,只读)
dataops_validate_data(target_table="biads.ads_user_profile_ds")
# 指定目标表(只用于报告展示,不影响试算路径)
dataops_validate_data(
dml_path="<workspace>/insert_ads_user_profile_ds.sql",
target_table="biads.ads_user_profile_ds",
)
参数:
| 参数 | 说明 |
|---|---|
dml_path |
工作区里 INSERT SQL 的路径。留空时自动在 workspace 里找 insert_*.sql(同名时根目录那份优先 —— sql/ 里的只是 organize_workspace 复制出来的镜像,不是交付物本体)。 |
sql_file_path |
同上的另一个入口。 |
sql |
直接给 SQL 文本。仅当既没有路径也找不到交付物时才有意义 —— 此时无法写回,自修正会被跳过(报告里会注明「自修正未执行」)。 |
target_table |
目标表 db.table。两种用法:① 试算路径里只是用于报告展示(留空时从交付物猜);② workspace 里没有交付物时,填了它就直连真实目标表做只读校验(字段走 semantic 元数据)。 |
partition_filter |
分区过滤条件(形如 pt_d = '20261020')。只对直连真实目标表的兜底路径生效 —— 试算链路查的是临时表,它的分区过滤由校验器从交付物 INSERT 的 PARTITION (...) 里自动推导(见下方约束 8)。留空时直连模式查「一周之前」那一天。 |
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 · 359 lines · 423 tokens per session scan A d432c00b5fcc
dataops_validate_data is a skill published in the GitHub repository datagallery-ai/dataagent (748 stars, last pushed 3d ago), licensed Apache-2.0. It adds 423 tokens to every session and 6,767 once invoked, about $0.0017 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_validate_data compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dataops_validate_datadatagallery-ai/dataagent | Skill | 748 | 3d ago | Apache-2.0 | A | 423 | 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 | 27d ago | MIT | A | 73 | Claude Code |
| documentdb-collection-adminKnuckles-Team/documentdb-mcp | Skill | 2 | 4d ago | MIT | A | 78 | Claude Code, Codex |