sql-pro

sql-pro is a skill for Claude Code, Codex from luokai0/ai-agent-skills-by-luo-kai. It costs 40 tokens per session (1,547 once invoked), scanned A, original, no licence file.

A guide for improving complex SQL queries and database designs across PostgreSQL, MySQL, SQL Server, and Oracle.

In plain words
What is it for?
Use it to optimize SQL, design database schemas, and investigate database performance problems.
Why use it?
It helps identify slow queries and inefficient database structures that can make applications slower or harder to maintain.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to optimize SQL, design database schemas, and investigate database performance problems.

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

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-pro

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luokai0/ai-agent-skills-by-luo-kai/sql-pro"><img src="https://agentmods.dev/badge/skills/luokai0/ai-agent-skills-by-luo-kai/sql-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,547 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 unknown 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.00040 $0.01547
Opus 5 $0.00020 $0.00773
Sonnet 5 $0.00008 $0.00309
Haiku 4.5 $0.00004 $0.00155

Measured 9d ago against content hash 5579f220df97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sql-pro 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 9d 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.

ai-agent-skills/01-programming-languages (by Luo Kai)/11-query-languages/sql-pro/SKILL.md · 296 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 9d ago First seen · 296 lines · 40 tokens per session scan A 5579f220df97

Subscribe to this mod's changes

sql-pro is a skill published in the GitHub repository luokai0/ai-agent-skills-by-luo-kai (11 stars, last pushed 4mo ago), with no licence file. It adds 40 tokens to every session and 1,547 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

graphjin-eval

Create, extend, run, baseline, and diagnose GraphJin agent evaluations through the graphjin eval CLI.

dosco/graphjin · 27 tokens

graphjin-env

Use when setting up a training or evaluation loop against a GraphJin agent environment — running the container, reading /health, driving episodes hosted or step-by-step or with your own agent over MCP, splitting train from eval, exporting trajectories, and deciding whether two rewards can be compared.

dosco/graphjin · 61 tokens

chdb-datastore

Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas. Provides chDB DataStore — same pandas API, ClickHouse engine underneath. Also handles reading from S3, MySQL, PostgreSQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake…

chdb-io/chdb · 168 tokens

chdb-sql

Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for…

chdb-io/chdb · 214 tokens

sq

Guides use of the sq CLI to query SQL databases and tabular files with SLQ (sq's jq-like query language) or native SQL, manage sources, choose output formats, and run inspect, diff, and table commands. Use when the user mentions sq, SLQ, wrangling CSV/Excel/JSON/DB data, cross-source joins, or command-line data…

neilotoole/sq · 89 tokens

knowledge_graph_skill

Skill for searching and evolving the SQLite-backed Knowledge Graph. Use this when you need structured fact/concept/link search across one or more teams, NPCs, or directory scopes. The Knowledge Graph (KG) is stored in the application's database (not YAML). It is scoped by (teamname, npcname, directorypath). Facts and…

NPC-Worldwide/npcpy · 474 tokens