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 hoavdc/CodexKit --skill codexkit-sql-query-buildergit clone --depth 1 https://github.com/hoavdc/CodexKitWrote 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/hoavdc/codexkit/codexkit-sql-query-builder)<a href="https://agentmods.dev/skills/hoavdc/codexkit/codexkit-sql-query-builder"><img src="https://agentmods.dev/badge/skills/hoavdc/codexkit/codexkit-sql-query-builder/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/hoavdc/codexkit/codexkit-sql-query-builder"><img src="https://agentmods.dev/badge/skills/hoavdc/codexkit/codexkit-sql-query-builder.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.00061 | $0.01407 |
| Opus 5.5 | $0.00024 | $0.00563 |
| Sonnet 5.5 | $0.00012 | $0.00281 |
| Haiku 4.5 | $0.00006 | $0.00141 |
Grade A, and why
codexkit-sql-query-builder 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 2mo 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 — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SQL Query Builder
When to Use
- When a business question needs to be answered with data
- When building reporting queries or data pipeline transformations
- When optimizing slow queries or refactoring complex SQL
- When translating stakeholder requirements into analytical SQL
Procedure
Step 1 — Clarify the Question
Translate the business question into a precise data question:
- Business: "How are our sales trending?"
- Data: "Monthly revenue by product category for the last 12 months, with month-over-month growth rate"
Document:
- Expected output columns and format
- Filters and date ranges
- Granularity (daily, weekly, monthly)
- Sort order
Step 2 — Identify Tables & Joins
Map the data model:
| Table | Role | Key Columns | Join |
|---|---|---|---|
| orders | Fact | order_id, customer_id, order_date, total | Primary |
| products | Dimension | product_id, category, name | orders.product_id = products.id |
| customers | Dimension | customer_id, region, segment | orders.customer_id = customers.id |
Join type selection:
- INNER when both sides must exist
- LEFT when the left side may have no match (preserve all orders even without customer data)
- Never use RIGHT JOIN — rewrite as LEFT JOIN for clarity
Step 3 — Build CTE Pipeline
Structure complex queries as a pipeline of CTEs:
WITH
-- Step 1: Filter and clean base data
base AS (
SELECT ...
FROM orders
WHERE order_date >= DATE_TRUNC('month', CURRENT_DATE - INTERVAL '12 months')
),
-- Step 2: Aggregate to desired granularity
monthly AS (
SELECT
DATE_TRUNC('month', order_date) AS month,
category,
SUM(total) AS revenue,
COUNT(DISTINCT customer_id) AS unique_customers
FROM base
JOIN products USING (product_id)
GROUP BY 1, 2
),
-- Step 3: Add calculations (window functions)
with_growth AS (
SELECT *,
LAG(revenue) OVER (PARTITION BY category ORDER BY month) AS prev_revenue,
ROUND(100.0 * (revenue - LAG(revenue) OVER (PARTITION BY category ORDER BY month))
/ NULLIF(LAG(revenue) OVER (PARTITION BY category ORDER BY month), 0), 1) AS mom_growth_pct
FROM monthly
)
-- Final output
SELECT month, category, revenue, unique_customers, mom_growth_pct
FROM with_growth
ORDER BY category, month;
What ships with it
5 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.
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.
- 2mo ago First seen · 177 lines · 61 tokens per session scan A f066244347bc
codexkit-sql-query-builder is a skill published in the GitHub repository hoavdc/CodexKit (27 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 1,407 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-09-03.
codexkit-sql-query-builder compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codexkit-sql-query-builderhoavdc/CodexKit | Skill | 27 | 1mo ago | MIT | A | 61 | Codex |
| build-with-tinybasetinyplex/tinybase | Skill | 5.2k | 11d ago | MIT | A | 90 | Claude Code, Codex |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 115 | Claude Code, Codex |
| data_analystsiddsachar/row-bot | Skill | 1.7k | yesterday | Apache-2.0 | A | 26 | Claude Code, Codex |
| neo4j-agent-memory-skillneo4j-contrib/neo4j-skills | Skill | 122 | 6d ago | MIT | A | 242 | Claude Code |
| neo4j-snowflake-graph-analytics-skillneo4j-contrib/neo4j-skills | Skill | 122 | 6d ago | MIT | A | 222 | Claude Code |
| neo4j-aura-agent-skillneo4j-contrib/neo4j-skills | Skill | 122 | 6d ago | MIT | A | 158 | Claude Code |