sql

sql is a skill for Claude Code from olehsvyrydov/AI-development-team. It costs 94 tokens per session (5,241 once invoked), scanned A, original, MIT.

A database operations guide for designing and running databases reliably. It covers data structure, indexes, query speed, migrations, replication, backups, recovery, and connections.

In plain words
What is it for?
Use it to design schemas, tune queries, plan safe migrations, configure replication and failover, partition data, restore backups, and handle connection or locking issues.
Why use it?
It helps reduce outages, data loss, locking problems, and slow queries when changing or operating a database. It focuses on the database system rather than application business rules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the ai-dev-team plugin — 43 skills, 50 commands shipped together

Good fit Use it to design schemas, tune queries, plan safe migrations, configure replication and failover, partition data, restore backups, and handle connection or locking issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/olehsvyrydov/ai-development-team/sql
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 olehsvyrydov/AI-development-team --skill sql
Clone the repo
git clone --depth 1 https://github.com/olehsvyrydov/AI-development-team

Made for: Claude Code.

Or install ai-dev-team, the plugin that ships this one along with the rest of its 43 skills, 50 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/olehsvyrydov/ai-development-team/sql"><img src="https://agentmods.dev/badge/skills/olehsvyrydov/ai-development-team/sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,241 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.00094 $0.05241
Opus 5.5 $0.00038 $0.02096
Sonnet 5.5 $0.00019 $0.01048
Haiku 4.5 $0.00009 $0.00524

Measured today against content hash 2ed8bf8ee173, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sql 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 today.

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.

claude/skills/development/languages/sql/SKILL.md · 426 lines

How it starts

The opening of the file, as written. The whole thing — 426 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SQL (language skill)

A knowledge skill, not an agent: it loads from context whenever SQL is being written or reviewed. Role agents (/be, /dba, /rev, /arch) route into it; it carries the language, the dialect references carry the engines.

Trigger

Load this skill when:

  • Editing or creating a .sql file
  • Writing or reviewing a schema migration
  • A raw SQL string is embedded in application code, in any host language — sqlx/ rusqlite in Rust, JdbcTemplate or @Query(nativeQuery = true) on the JVM, sql tagged templates in JS/TS, DB-API strings in Python
  • Designing an index, reading an EXPLAIN plan, or tuning a query shape
  • Writing stored procedures, triggers, or views

Do NOT load for:

  • ORM entity mapping where no SQL string is written — that is /be
  • Analytics / warehouse / dbt modeling — that is /data

Context

SQL is code that happens to run in someone else's engine. It is reviewed like code, planned like code, and versioned like code — the fact that it executes inside a database server changes none of that. This skill enforces three outcomes: no injection surface anywhere a value meets a statement, no silent schema drift between what the migrations say and what the database is, and no query shape merged without plan evidence.

Documentation Lookup (MANDATORY)

Features are version-gated. A statement that parses on your laptop can fail — or silently behave differently — on the deployed server. Verify the target server's actual version before using a feature, with a live check, not the project README.

Feature (examples) Requires
uuidv7(), B-tree skip scan PostgreSQL 18+
Additional ALGORITHM=INSTANT ALTER variants MySQL 8.0.29+
BOOLEAN type, DDL IF [NOT] EXISTS Oracle 23ai+
Enforced CHECK constraints MySQL 8.0.16+ (parsed-and-ignored before that)
STRICT tables SQLite 3.37+
RETURNING SQLite 3.35+

Version-check one-liners:

Dialect Check
Postgres SELECT version();
MySQL SELECT @@version;
Oracle SELECT banner_full FROM v$version;
SQLite SELECT sqlite_version();

Read the full file on GitHub · 426 lines

Files

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.

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. today First seen · 426 lines · 94 tokens per session scan A 2ed8bf8ee173

Subscribe to this mod's changes

sql is a skill published in the GitHub repository olehsvyrydov/AI-development-team (17 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 5,241 once invoked, about $0.0004 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-19.