dq-rules

A tool for creating and checking data-quality rules, which are tests attached to a saved check for a database table. It also lets you inspect rules and read the results from each run.

In plain words
What is it for?
Use it to validate, create, inspect, and review results for custom data-quality monitors on an existing data-quality job.
Why use it?
It helps catch incorrect rule definitions before they are created and shows whether the checks pass or fail.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/collibra/chip/dq-rules
Any agent
npx skills add collibra/chip --skill dq-rules
Clone the repo
git clone --depth 1 https://github.com/collibra/chip

Made for: Claude Code, Codex.

Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,245 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.01245
Opus 5 $0.00019 $0.00622
Sonnet 5 $0.00008 $0.00249
Haiku 4.5 $0.00004 $0.00125

Measured 2d ago against content hash 0e44f3e64c4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dq-rules 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.

pkg/skills/files/collibra/dq-rules/SKILL.md · 73 lines

How it starts

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

Data quality rules

A data quality rule (a "monitor") is a check attached to an existing DQ job (a dataset — a saved data-quality check on one database table). This skill covers authoring a custom rule (validate → create), inspecting it, and reading its per-run results. It does not cover creating the job itself, editing or deleting rules, or triggering job runs — a new rule is evaluated on the job's next (scheduled) run.

Rule tools: validate_data_quality_rule, create_data_quality_rule, get_data_quality_rule, get_data_quality_rule_results.

Hard rules

  1. Validate before you create. Always call validate_data_quality_rule on the rule SQL before create_data_quality_rule. It checks the SQL against the source and returns valid: true/false plus a message, so a malformed rule (e.g. a bad SIMPLE_SQL/SQLG predicate) is caught up front. validate_data_quality_rule takes the raw SQL — the rule does not need to exist yet. If valid is false, fix the SQL and re-validate; do not create the rule.
    • create_data_quality_rule has a confirm checkpoint. Call it first with confirm omitted/false: it returns a preview (the composed rule and its SQL) and creates nothing. Show that preview to the user, then call again with confirm: true to actually create. The tool enforces this — it will not write on a confirm=false call.
  2. validate_data_quality_rule needs discovery IDs. It requires edgeSiteId, connectionId and schemaName. Get them from prepare_create_data_quality_job for the target job — do not guess them. (create_data_quality_rule, get_data_quality_rule and get_data_quality_rule_results take only names/ids and need no discovery step.)
  3. monitorType is FREEFORM_SQL or SIMPLE_SQL. FREEFORM_SQL is a full SQL query; SIMPLE_SQL is a single-column predicate. Nothing else is valid.
  4. Always give the rule a meaningful name. monitorName is required and is how the rule is found and reported on later. Ask the user for a name; if they don't supply one, propose a clear, descriptive name (e.g. orders_amount_not_null) and confirm it before creating — do not invent an opaque name. Names allow only letters, digits, - and _.
  5. For SIMPLE_SQL, ask which column the check targets and pass it as columnName. For FREEFORM_SQL the column(s) live inside the SQL, so columnName is not needed.
  6. Rules require a PUSHDOWN job. If create_data_quality_rule returns an error mentioning the dataset is not PUSHDOWN (HTTP 422), rule creation is not allowed on that job — tell the user rather than retrying.
  7. Read the status field in every response. Branch on success, validation_error, or error. For validate_data_quality_rule, status: success means validation ran — the verdict is the separate valid field.
  8. Creating a rule does not run it. A new rule is only evaluated on the job's next run (runs happen via the job's schedule — this skill does not trigger them). Once a run has happened, use get_data_quality_rule_results to see how the rule did.

Read the full file on GitHub · 73 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 · 73 lines · 38 tokens per session scan A 0e44f3e64c4e

Subscribe to this mod's changes

dq-rules is a skill published in the GitHub repository collibra/chip (36 stars, last pushed 5d ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,245 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens