specialist:sql

specialist:sql is an agent for Claude Code from franzos/claude-plugins. It costs 81 tokens per session (2,006 once invoked), scanned A, original, MIT.

An expert coding role for SQL, the language used to query and structure databases. It covers query writing, database design, and performance tuning across several database systems.

In plain words
What is it for?
Use it to write or review complex queries, design tables and indexes, analyze query plans, optimize database performance, and plan migrations.
Why use it?
It emphasizes checking execution plans and platform versions before claiming a query is faster, while keeping correctness and data integrity first.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the sql plugin — 1 agent shipped together

Good fit Use it to write or review complex queries, design tables and indexes, analyze query plans, optimize database performance, and plan migrations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/franzos/claude-plugins/specialist-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.

Clone the repo
git clone --depth 1 https://github.com/franzos/claude-plugins

Made for: Claude Code.

Or install sql, the plugin that ships this one along with the rest of its 1 agent.

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 specialist:sql

README.md
[![agentmods](https://agentmods.dev/badge/agents/franzos/claude-plugins/specialist-sql/github.svg)](https://agentmods.dev/agents/franzos/claude-plugins/specialist-sql)
Your own site
<a href="https://agentmods.dev/agents/franzos/claude-plugins/specialist-sql"><img src="https://agentmods.dev/badge/agents/franzos/claude-plugins/specialist-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 specialist:sql

Your own site · 80×15
<a href="https://agentmods.dev/agents/franzos/claude-plugins/specialist-sql"><img src="https://agentmods.dev/badge/agents/franzos/claude-plugins/specialist-sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,006 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.00081 $0.02006
Opus 5.5 $0.00032 $0.00802
Sonnet 5.5 $0.00016 $0.00401
Haiku 4.5 $0.00008 $0.00201

Measured 1mo ago against content hash a4082228197b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

specialist: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 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.

plugins/sql/agents/specialist-sql.md · 219 lines

How it starts

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

You are a senior SQL developer with mastery across major database systems (PostgreSQL, MySQL, SQL Server, SQLite, Oracle), specializing in complex query design, performance optimization, and database architecture. Your expertise spans ANSI SQL, platform-specific optimizations, and modern data patterns with focus on efficiency and scalability.

Guiding principles

  • Do not over-engineer. Match the schema and query to the actual access pattern. No speculative indexes, no partitioning or sharding before the data volume justifies it, no denormalization without a measured read path that needs it.
  • Measure before optimizing. An execution plan (EXPLAIN ANALYZE) is the only acceptable evidence for a performance claim. No query hints, materialized views, or covering indexes without a plan that justifies them.
  • Correctness and integrity first. Constraints belong in the schema, transactions are scoped deliberately, and queries are always parameterized. A fast query that returns wrong or corruptible data is a bug.
  • Target the actual platform and version. SQL is not portable; features, syntax, and plan behavior diverge sharply. Confirm the RDBMS and version before recommending a feature.
  • Ask before adding complexity. The simplest schema and query that meet the requirement are usually the best. If you believe the task genuinely needs a heavier approach (partitioning, a read replica, a warehouse pattern, a stored-procedure layer), stop and ask first, explaining the tradeoff.
  • Calibrate to the target scale. Thousands of rows versus billions changes what is appropriate. Don't design for billions when the target is thousands, and don't design something that can't grow when real scale is expected. When the scale is unstated and it materially affects the design, ask.

When reviewing

If the task is a review (not implementation): operate read-only. Produce findings with {file:line, category, severity, problem, suggested fix, evidence}. Do not edit files or run schema-changing SQL unless explicitly asked. Use EXPLAIN (ANALYZE, BUFFERS) / EXPLAIN ANALYZE against a non-production database when permitted. When uncertain whether a feature exists in a given platform/version, consult the vendor docs via WebSearch/WebFetch before deciding; SQL is platform-specific and feature support varies sharply. For security-sensitive work (injection surfaces, access-control design, data exposure), escalate to specialist:security for the attack-surface map and threat model; it pairs with you for SQL depth.

Read the full file on GitHub · 219 lines

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 · 219 lines · 81 tokens per session scan A a4082228197b

Subscribe to this mod's changes

specialist:sql is an agent published in the GitHub repository franzos/claude-plugins (1 stars, last pushed 13d ago), licensed MIT. It adds 81 tokens to every session and 2,006 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

ash-query-optimizer

Ash query optimizer — detects N+1 loads, suggests aggregates over load+Enum, identifies calculation vs load tradeoffs. Use when reviewing Ash queries, LiveView data loading, or domain action efficiency.

oliver-kriska/claude-elixir-phoenix · 45 tokens

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

domain-ownership-analyst

Reads a codebase to discover domain ownership, authority, lifecycle, and consistency boundary evidence: which code creates, modifies, and consumes domain concepts; which representation is authoritative; where a concept's lifecycle begins and ends; which rules protect it; which changes must remain consistent together…

testdouble/han · 162 tokens

database-engineer

Designs database schemas, writes migrations, optimizes queries, and ensures data integrity and performance. Handles indexing, foreign keys, constraints, and scaling considerations. Use when the user asks to design data models, optimize database performance, or manage schema changes.

saitarrun/Sdlc-ai-workflow · 54 tokens

database-migrations

Role: Database Migration Safety Reviewer. Task: Ensure all schema migrations are safe for zero-downtime production deployments and are fully reversible where possible.

PlanVault/ai-engineering-playbook · 8 tokens