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 runxhq/runx --skill sql-analysisgit clone --depth 1 https://github.com/runxhq/runxWrote 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/runxhq/runx/sql-analysis)<a href="https://agentmods.dev/skills/runxhq/runx/sql-analysis"><img src="https://agentmods.dev/badge/skills/runxhq/runx/sql-analysis/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/runxhq/runx/sql-analysis"><img src="https://agentmods.dev/badge/skills/runxhq/runx/sql-analysis.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.00043 | $0.01326 |
| Opus 5.5 | $0.00017 | $0.00530 |
| Sonnet 5.5 | $0.00009 | $0.00265 |
| Haiku 4.5 | $0.00004 | $0.00133 |
Grade A, and why
sql-analysis 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 20d 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 — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQL Analysis
Use SQL Analysis for recurring questions over a configured database: which campaigns produced qualified trials, how support resolution changed, or where activation stalls. It chooses a relevant declared query, checks its parameters, runs that read through the selected SQL connector and answers from the returned rows. The result carries the exact native provider operation, not a model's claim that it queried a database.
The operator owns the database and its useful reads. The optional sql
connector uses installed SQLAlchemy dialects and DBAPI drivers; the skill and
CLI have no fixed database-engine list. Configure another source instance to
change engine, credentials, query definitions or permissions. The connector's
README explains dependency installation and source configuration.
This is not an arbitrary SQL console. Query definitions are operator-owned SQL with named bound parameters and complete JSON Schema parameter contracts. The agent sees descriptions, input contracts and result semantics; it cannot inject a URL, replace SQL, install a driver or broaden permissions. If no declared read answers the question, the skill explains what is missing. An operator can add an appropriate read at the source and run again. Use a separate authorized database session for exploratory SQL, writes or schema changes.
How a run works
The default analyst method takes question, the exact logical source,
and an optional max_rows ceiling, then:
- Reads the selected source's query catalog without opening a database.
- Chooses the smallest relevant query and supplies values from the question or caller context. Missing dates, definitions or filters are reasons to stop.
- Checks the complete parameter contract using native
data.validate. The connector independently validates before executing. - Executes only that query, within both caller and source row limits.
- Interprets actual rows and retains the native operation evidence, source, query, parameter values, observation time and truncation state.
What ships with it
23 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.
- eval_queries.json 2.2 KB
- evals/evals.json 2.0 KB
- evals/files/qualified-trials-catalog.json 1009 B
- fixtures/composed-plan/run.yaml 974 B
- fixtures/composed-plan/SKILL.md 160 B
- mark.svg 395 B
- packets/plan.v1.schema.json 1.5 KB
- references/catalog.md 132 B
- references/mark-license.md 3.1 KB
- run.yaml 7.2 KB
- sql-analysis.mjs 2.5 KB runs code
- tests/accepts-a-configured-external-dialect.yaml 1.3 KB
- tests/composed-plan.yaml 584 B
- tests/default-reads-selected-query.yaml 2.8 KB
- tests/default-requires-source-binding.yaml 194 B
- tests/default-stops-invalid-parameters.yaml 1.4 KB
- tests/default-stops-unsupported-question.yaml 1.4 KB
- tests/does-not-invent-required-context.yaml 1.3 KB
- tests/plans-a-declared-parameterized-read.yaml 1.4 KB
- tests/refuses-invalid-bound-values.yaml 1.3 KB
- tests/refuses-undeclared-parameters.yaml 1.3 KB
- tests/refuses-unsafe-integer.yaml 797 B
- tests/rejects-a-query-absent-from-the-source.yaml 1.3 KB
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.
- 20d ago Changed · -2 lines 4e1e2ba2064c
- 1mo ago Changed 01ad494fc292
- 1mo ago First seen · 121 lines · 43 tokens per session scan A adca4f40cab2
sql-analysis is a skill published in the GitHub repository runxhq/runx (106 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 1,326 once invoked, about $0.0002 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-10-18.
sql-analysis compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sql-analysisrunxhq/runx | Skill | 106 | yesterday | Apache-2.0 | A | 43 | Claude Code, Codex |
| dd-risk-scoringAbilityai/trinity | Skill | 827 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| dd-synthesisAbilityai/trinity | Skill | 827 | today | Apache-2.0 | A | 33 | Claude Code, Codex |
| dd-report-formatAbilityai/trinity | Skill | 827 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| dd-sourcingAbilityai/trinity | Skill | 827 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| dd-verificationAbilityai/trinity | Skill | 827 | today | Apache-2.0 | A | 35 | Claude Code, Codex |
| skill-dbmarcoguillermaz/Tierward | Skill | 4 | 2d ago | MIT | A | 0 | Claude Code |