sql-explainer

sql-explainer is a skill for Claude Code, Codex from mergisi/awesome-openclaw-agents. It costs 20 tokens per session (296 once invoked), scanned A, original, MIT.

A tool that turns a SQL query—the instruction used to read or change data in a database—into a plain-English explanation.

In plain words
What is it for?
Use it to explain queries that select, filter, join, group, summarize, update, or delete database records.
Why use it?
It makes unfamiliar queries easier to understand and highlights practical risks or issues to watch for.

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/mergisi/awesome-openclaw-agents/sql-explainer
Any agent
npx skills add mergisi/awesome-openclaw-agents --skill sql-explainer
Clone the repo
git clone --depth 1 https://github.com/mergisi/awesome-openclaw-agents

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/mergisi/awesome-openclaw-agents/sql-explainer.svg)](https://agentmods.dev/skills/mergisi/awesome-openclaw-agents/sql-explainer)
Your own site
<a href="https://agentmods.dev/skills/mergisi/awesome-openclaw-agents/sql-explainer"><img src="https://agentmods.dev/badge/skills/mergisi/awesome-openclaw-agents/sql-explainer.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 296 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.00020 $0.00296
Opus 5 $0.00010 $0.00148
Sonnet 5 $0.00004 $0.00059
Haiku 4.5 $0.00002 $0.00030

Measured 4d ago against content hash 2c9775ae17cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

skills/gemma/sql-explainer/SKILL.md · 28 lines

What it actually says

SQL Explainer

Turn any SQL query into a clear, plain English breakdown. No database knowledge required.

Examples

  • "SELECT * FROM users WHERE created_at > NOW() - INTERVAL 7 DAY"
  • "Explain: SELECT p.name, COUNT(o.id) FROM products p LEFT JOIN orders o ON p.id = o.product_id GROUP BY p.id"
  • "What does this do: DELETE FROM sessions WHERE expires_at < NOW()"
  • "EXPLAIN SELECT u.email, SUM(o.total) FROM users u JOIN orders o ON u.id = o.user_id GROUP BY u.id HAVING SUM(o.total) > 1000"

Instructions

You MUST use the run_js tool with the following exact parameters:

  • data: A JSON string with the following fields:
    • query: String - the SQL query (truncate to first 120 characters if longer)
    • summary: String - one sentence plain English summary of what the query does
    • step1: String - first thing the query does (short phrase)
    • step2: String - second thing the query does (short phrase)
    • step3: String - third thing the query does, or empty string if not applicable
    • tip: String - one useful tip or potential issue to watch out for with this query
Files

What ships with it

2 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.

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. 4d ago First seen · 28 lines · 20 tokens per session scan A 2c9775ae17cf

Subscribe to this mod's changes

sql-explainer is a skill published in the GitHub repository mergisi/awesome-openclaw-agents (3,946 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 296 once invoked, about $0.0001 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

alphafold-database

Access AlphaFold's 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), for drug discovery and structural biology.

FreedomIntelligence/OpenClaw-Medical-Skills · 55 tokens

bindingdb-database

Query BindingDB for measured drug-target binding affinities (Ki, Kd, IC50, EC50). Search by target (UniProt ID), compound (SMILES/name), or pathogen. Essential for drug discovery, lead optimization, polypharmacology analysis, and structure-activity relationship (SAR) studies.

FreedomIntelligence/OpenClaw-Medical-Skills · 68 tokens

wacrawl

Read-only local archive and full-text search of WhatsApp Desktop messages via the wacrawl CLI. Use for searching chat history, exporting conversations, and creating encrypted backups. macOS only (reads local WhatsApp Desktop SQLite databases).

moltis-org/moltis · 50 tokens

pre-landing-review

Pre-landing PR review. Analyzes diff against the base branch for SQL safety, LLM trust boundary violations, conditional side effects, and other structural issues. Use when explicitly asked for the specialized pre-landing workflow. Product /review requests are handled by BitFun's unified Review mechanism instead.…

GCWing/BitFun · 74 tokens

redteam-sqli-detail-pack

Domain routing and boundary guidance for authorized SQL injection testing, including union-based, blind, error-based, stacked query, and second-order SQL injection variants. Use when a task belongs to the SQL injection domain and needs scope, evidence, pivot, or exit criteria.

Netw0rkNoob/VulnClaw · 59 tokens

sparkbtcbot-proxy-deploy

Deploy a serverless Spark Bitcoin L2 proxy on Vercel with spending limits, auth, and Redis logging. Use when user wants to set up a new proxy, configure env vars, deploy to Vercel, or manage the proxy infrastructure.

berabuddies/Semia · 59 tokens