sql-explainer

sql-explainer is a skill for Claude Code, Codex from zhuyansen/agent-skills-hub. It costs 23 tokens per session (175 once invoked), scanned A, original, MIT.

A plain-language explainer for SQL queries, including joins that can multiply rows. SQL is the language commonly used to read and change data in databases.

In plain words
What is it for?
Use it to explain a query and inspect whether its joins may return more rows than expected.
Why use it?
It makes complex queries easier to understand and flags a common source of duplicate or inflated results.

Skill for Claude CodeCodex

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

Good fit Use it to explain a query and inspect whether its joins may return more rows than expected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuyansen/agent-skills-hub/sql-explainer
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 zhuyansen/agent-skills-hub --skill sql-explainer
Clone the repo
git clone --depth 1 https://github.com/zhuyansen/agent-skills-hub

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 sql-explainer

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/sql-explainer/github.svg)](https://agentmods.dev/skills/zhuyansen/agent-skills-hub/sql-explainer)
Your own site
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/sql-explainer"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/sql-explainer/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 sql-explainer

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/sql-explainer"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/sql-explainer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 175 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.00023 $0.00175
Opus 5.5 $0.00009 $0.00070
Sonnet 5.5 $0.00005 $0.00035
Haiku 4.5 $0.00002 $0.00017

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

Security

Grade A, and why

sql-explainer 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 5d 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.

ops/skillmgr-runs/in/input/library/sql-explainer/SKILL.md · 21 lines

What it actually says

Sql Explainer

Explain what a SQL query does in plain language and point out joins that may multiply rows.

When to use

Use this skill when the user asks for it by name or describes this task. Do not use it for unrelated work.

Steps

  1. Read the input the user points to. If none is given, ask for the file or text.
  2. Do the task described above, step by step, and keep the user's own wording where it matters.
  3. Show the result, then a short list of what you changed or found, so the user can check it.

Notes

  • Keep changes small and reversible.
  • Say plainly when the input is incomplete instead of guessing.
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. 5d ago First seen · 21 lines · 23 tokens per session scan A 45865c514c3f

Subscribe to this mod's changes

sql-explainer is a skill published in the GitHub repository zhuyansen/agent-skills-hub (452 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 175 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-10-11.

Related

Other skills, from other repositories

clawhub-convex

Apply ClawHub-specific Convex conventions and route to the right managed Convex skill. Use for any change under convex/, Convex commands or deployment targeting, query performance, migrations, retention, runtime validation, or skill stat reads and writes in the ClawHub repository.

openclaw/clawhub · 62 tokens

convex-migration-helper

Plans Convex schema and data migrations with widen-migrate-narrow and @convex-dev/migrations. Use for breaking schema changes, backfills, table reshaping, or zero-downtime rollouts.

openclaw/clawhub · 48 tokens

convex

Convex is the backend agents get right on the first try: an all-TypeScript reactive platform where the database, server functions, scheduling, file storage, auth, and realtime sync are one type-safe system, every function is a transaction, and tsc catches most mistakes before deploy. Ideal BOTH for a quick prototype…

openclaw/clawhub · 202 tokens

create-and-cleanup-migration

Use for end-to-end ClawHub Convex production migrations, backfills, destructive cleanups, and one-off maintenance functions that must be created, validated, shipped, run, verified, then removed after completion.

openclaw/clawhub · 50 tokens

convex-backup

Set up Convex backups and run a restore DRILL that proves recovery — snapshot, restore into a throwaway preview, assert the data came back — plus a schedule matched to your RPO and a gated recovery runbook.

openclaw/clawhub · 50 tokens

convex-expert

Convex backend specialist. Use this agent for any code inside a convex/ directory — function definitions, schemas, indexes, queries, mutations, actions, HTTP endpoints, cron jobs, file storage, auth wiring, and component installation. Knows the object-form function syntax, validator patterns, resource limits, and…

openclaw/clawhub · 78 tokens