dataops-probe

dataops-probe is a skill for Claude Code, Codex from datagallery-ai/dataagent. It costs 216 tokens per session (1,661 once invoked), scanned A, original, Apache-2.0.

A sample-row inspection tool for a known data-warehouse table. It returns a small selection of real rows so you can check column names, example values, partitions, and whether the table contains data.

In plain words
What is it for?
Use it before creating or changing warehouse SQL when you need to confirm fields, filter values, partition details, or whether a table has usable rows.
Why use it?
It avoids guessing about field names, data types, allowed values, or empty fields before writing SQL. It is intended for quick inspection rather than calculating business metrics.

Skill for Claude CodeCodex

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

Good fit Use it before creating or changing warehouse SQL when you need to confirm fields, filter values, partition details, or whether a table has usable rows.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-probe/github.svg)](https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-probe)
Your own site
<a href="https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-probe"><img src="https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-probe/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-probe

Your own site · 80×15
<a href="https://agentmods.dev/skills/datagallery-ai/dataagent/dataops-probe"><img src="https://agentmods.dev/badge/skills/datagallery-ai/dataagent/dataops-probe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,661 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.00216 $0.01661
Opus 5.5 $0.00086 $0.00664
Sonnet 5.5 $0.00043 $0.00332
Haiku 4.5 $0.00022 $0.00166

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

Security

Grade A, and why

dataops-probe 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-probe/SKILL.md · 104 lines

How it starts

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

DataOps Probe (Sample-Row Tooling)

When to Run

  • 你刚拿到一批候选表,需要在写 DDL/DML 之前确认列名拼写、值域、是否分区表、是否空表。
  • 比 schema search/get_table_desc 更进一步:返回真实样本行,不是元数据。
  • 单次探查开销小(默认 LIMIT 5、timeout 60s),但不要在同一个 agent loop 里反复探同一张表(数据没变)。

Core Constraints (Must Follow)

  1. columns 是必填参数,不允许省略。DataOps 平台禁止 SELECT *, 所以工具签名里 columns 是 required 参数(schema 的 required 列表包含 columns)。少传会被 schema 校验直接拦下;传空列表 [] 会返回 invalid_columns。 调用前必须先通过 metadata_recall/get_table_schema 拿到表的真实列名, 再把要探查的列显式列出来。列名只能是单段标识符,不能写 db.tbl.col 这种带库表前缀的形式(会被反引号包成 `db.tbl.col` 而解析失败), 也不能传 *。
  2. partition_filter 只能是 pt_d = 'YYYYMMDD' 一种形态。小时/分钟分区 (pt_h / pt_i)、dt / p_date 等其它列名一律不认 —— 哪怕表是 _hm / _im 后缀的小时表也只用 pt_d 探查(探查目的是确认「列名拼写 / 值域 / 是否有数据」,落到某个具体时刻没有意义)。
  3. 绝对不要写 $date / $hour / $minute 占位符。DataOps 后端不会替换 这些占位符(它们是 DDL/DML 调度时的模板替换机制,probe 是临时 SELECT 探索, 不走同一套机制),工具层也会白名单拒绝。写了会返回 invalid_partition_filter。
  4. 不要拼日期。工具不做日期计算;你必须把"今天"显式写成 8 位字符串。
  5. 不要盲目重试。看到非 completed 结果时直接读 reason/errorLog 给用户 解释,或换一张相邻表。

partition_filter 规则

工具层只接受下面这一种整串形式(空格变体允许,但列名固定):

形态 例 适用
仅天 pt_d = '20261012' 所有表(含 _hm / _im 后缀的小时/分钟表)

日期数字必须语义合法(date(...) 二次校验):月份 1-12、日期 1-31。 字符串合法但语义非法(pt_d = '20261301')会被工具拒掉。

缺省时工具自动生成(避免 LLM 漏传导致 DataOps 平台 "partition condition not found"):日期 = 系统当前日期 - 7 天(默认探查"前一周",数据已稳定落盘; 今天 20261012 → 默认查 20261005),形态恒为 pt_d = 'YYYYMMDD',不按表名 后缀区分。成功返回里会带 auto_partition_filter 字段告诉你实际用了什么。

需要覆盖默认值时显式传 partition_filter:

  • 用户明确要"今天"或"前 N 天" → 自己计算 yyyymmdd 后传入。

典型调用

# 天表
dataops_probe_table(
    table="dws.user_action_dm",
    columns=["user_id", "action_type"],
    partition_filter="pt_d = '20261012'",
    sample_size=5,
)

# 小时表 / 分钟表 —— 同样只用 pt_d,不要传 pt_h / pt_i
dataops_probe_table(
    table="dws.user_action_im",
    columns=["user_id", "action_type"],
    partition_filter="pt_d = '20261012'",
)

Read the full file on GitHub · 104 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 104 lines · 216 tokens per session scan A b402d82be825

Subscribe to this mod's changes

dataops-probe is a skill published in the GitHub repository datagallery-ai/dataagent (748 stars, last pushed 3d ago), licensed Apache-2.0. It adds 216 tokens to every session and 1,661 once invoked, about $0.0009 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-probe compared with skills from other repositories

dataops-probe next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dataops-probedatagallery-ai/dataagentSkill7483d agoApache-2.0A216Claude 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