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 nimrodfisher/data-analytics-skills --skill query-validationgit clone --depth 1 https://github.com/nimrodfisher/data-analytics-skillsWrote 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/nimrodfisher/data-analytics-skills/query-validation)<a href="https://agentmods.dev/skills/nimrodfisher/data-analytics-skills/query-validation"><img src="https://agentmods.dev/badge/skills/nimrodfisher/data-analytics-skills/query-validation/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/nimrodfisher/data-analytics-skills/query-validation"><img src="https://agentmods.dev/badge/skills/nimrodfisher/data-analytics-skills/query-validation.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.00034 | $0.00473 |
| Opus 5.5 | $0.00014 | $0.00189 |
| Sonnet 5.5 | $0.00007 | $0.00095 |
| Haiku 4.5 | $0.00003 | $0.00047 |
Grade A, and why
query-validation 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 3mo 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.
What it actually says
When to use
- A SQL query is about to be promoted to a production dashboard or report
- A query is returning surprising or incorrect results
- A query is running slowly and needs performance review
- You want to catch anti-patterns (implicit conversions, SELECT *, unbounded CTEs) before they cause incidents
Process
- Lint the query — run
scripts/sql_lint.py(sqlglot-based) to catch syntax errors, unsupported functions for the target engine, and style violations. Fix hard errors before continuing. - Review anti-patterns — compare the query structure against
references/sql_anti_patterns.md. Flag any present anti-patterns with a severity rating. - Parse the explain plan — if an EXPLAIN or query profile output is available, run
scripts/explain_plan_parser.pyto extract slow steps (full table scans, missing indexes, high row estimates). - Estimate cardinality — run
scripts/cardinality_estimator.pyif schema stats are available to flag joins that might fan-out unexpectedly. - Check engine-specific behaviour — consult
references/engine_specific_guide.mdfor the target engine (Snowflake / BigQuery / Postgres / Redshift) to verify date functions, window behaviour, and clustering assumptions. - Produce review output — fill in
assets/query_review_template.mdwith findings; for any performance issues found, completeassets/optimization_recommendations.md.
Inputs the skill needs
- Required: the SQL query text
- Required: target database engine (Snowflake / BigQuery / Postgres / Redshift / other)
- Optional: relevant table schemas (column names, types, approximate row counts)
- Optional: EXPLAIN / query profile output
- Optional: expected business logic — what should the query calculate?
Output
assets/query_review_template.md(filled) — categorised findings: correctness, performance, styleassets/optimization_recommendations.md(filled, if issues found) — ranked rewrite suggestions with expected impact
What ships with it
7 files 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.
- assets/optimization_recommendations.md 1.3 KB
- assets/query_review_template.md 1.7 KB
- references/engine_specific_guide.md 5.1 KB
- references/sql_anti_patterns.md 3.9 KB
- scripts/cardinality_estimator.py 3.6 KB runs code
- scripts/explain_plan_parser.py 3.7 KB runs code
- scripts/sql_lint.py 3.2 KB runs code
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.
- 3mo ago First seen · 30 lines · 34 tokens per session scan A 700b07e536f3
query-validation is a skill published in the GitHub repository nimrodfisher/data-analytics-skills (572 stars, last pushed 27d ago), licensed MIT. It adds 34 tokens to every session and 473 once invoked, about $0.0001 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-08-30.
query-validation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| query-validationnimrodfisher/data-analytics-skills | Skill | 572 | 27d ago | MIT | A | 34 | Claude Code, Codex |
| bigquery-migration-metadata-extractorgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 188 | Claude Code, Codex |
| bigquery-migration-data-exportergoogle/skills | Skill | 26k | today | Apache-2.0 | A | 142 | Claude Code, Codex |
| alloydb-basicsgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 72 | Claude Code, Codex |
| cloud-databases-onboardinggoogle/skills | Skill | 26k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| obsidian-baseskepano/obsidian-skills | Skill | 55k | 9d ago | MIT | A | 63 | Claude Code |
| spanner-basicsgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 47 | Claude Code, Codex |