dataops_validate_data

dataops_validate_data is a skill for Claude Code, Codex from datagallery-ai/dataagent. It costs 423 tokens per session (6,767 once invoked), scanned A, original, Apache-2.0.

A data-validation tool for checking a delivered SQL result or an existing warehouse table. It can run checks for missing values, repeated keys, row counts, negative counts, unusual ratios, common-sense problems, and selected source comparisons.

In plain words
What is it for?
Use it when a user asks to execute data validation, inspect a table's quality, or judge whether a supplied table definition or INSERT statement produced sensible data.
Why use it?
It provides evidence about whether data looks correct instead of relying on the SQL alone. When checking a generated result, it can use a temporary table so the real table is not changed.

Skill for Claude CodeCodex

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

Good fit Use it when a user asks to execute data validation, inspect a table's quality, or judge whether a supplied table definition or INSERT statement produced sensible data.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-validate-data/github.svg)](https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-validate-data)
Your own site
<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.

agentmods 80×15 button for dataops_validate_data

Your own site · 80×15
<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>
Per session 423 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,767 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.00423 $0.06767
Opus 5.5 $0.00169 $0.02707
Sonnet 5.5 $0.00085 $0.01353
Haiku 4.5 $0.00042 $0.00677

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

Security

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.

dataagent/plugins/de-agent/skills/dataops-validate-data/SKILL.md · 359 lines

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)。留空时直连模式查「一周之前」那一天。

Read the full file on GitHub · 359 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 · 359 lines · 423 tokens per session scan A d432c00b5fcc

Subscribe to this mod's changes

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.

Related

dataops_validate_data compared with skills from other repositories

dataops_validate_data next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dataops_validate_datadatagallery-ai/dataagentSkill7483d agoApache-2.0A423Claude 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-pluginSkill1327d agoMITA73Claude Code
documentdb-collection-adminKnuckles-Team/documentdb-mcpSkill24d agoMITA78Claude Code, Codex