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

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

Good fit Use it to explain queries that select, filter, join, group, summarize, update, or delete database records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mergisi/awesome-openclaw-agents/sql-explainer
About the project

awesome-openclaw-agents is a curated collection of ready-to-use SOUL.md configurations that define AI agents for tasks across areas such as development, marketing, finance, support, and automation. It is for OpenClaw users who want predefined agent roles and workflows to adapt or deploy. The catalogue entries are agent-related skills drawn from this collection.

mergisi/awesome-openclaw-agents · 4,017 stars · on GitHub · crewclaw.com

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 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/github.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/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/mergisi/awesome-openclaw-agents/sql-explainer"><img src="https://agentmods.dev/badge/skills/mergisi/awesome-openclaw-agents/sql-explainer.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00020 $0.00296
Opus 5.5 $0.00008 $0.00118
Sonnet 5.5 $0.00004 $0.00059
Haiku 4.5 $0.00002 $0.00030

Measured 1mo ago against content hash 2c9775ae17cf, 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 1mo 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. 1mo 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 (4,017 stars, last pushed 25d ago), licensed MIT. It adds 20 tokens to every session and 296 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.

Related

Other skills, from other repositories

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

postgres-pro

Use when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, extension usage, VACUUM tuning, performance monitoring.

zacklecon/claude-skills · 41 tokens

sql-pro

Use when optimizing SQL queries, designing database schemas, or tuning database performance. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis.

zacklecon/claude-skills · 37 tokens

sql-schema-designer

Designs normalized relational database schemas with primary/foreign keys, constraints, indexes, and deliberate denormalization, producing engine-aware DDL and an ER model. Use this skill when the user asks to design a database schema, model entities and relationships, normalize tables, fix update/insert/delete…

JayRHa/AgentSkills · 102 tokens

sql-optimizer

Diagnoses and fixes slow SQL queries using EXPLAIN/EXPLAIN ANALYZE plan reading, index design, query rewrites, statistics, and schema-aware tuning across PostgreSQL, MySQL/MariaDB, SQL Server, Oracle, and SQLite. Use this skill when a user says a query is slow, times out, "takes forever", needs an index, asks to…

JayRHa/AgentSkills · 146 tokens

database-optimizer

Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.

zacklecon/claude-skills · 39 tokens