sql-expert

sql-expert is an agent for coding agents from davepoon/buildwithclaude. It costs 30 tokens per session (197 once invoked), scanned A, original, MIT.

A specialist for writing SQL queries and designing database structures. SQL is the language used to retrieve, change, and analyze data in relational databases.

In plain words
What is it for?
It is for query writing, schema design, data transformations, execution-plan analysis, and performance tuning.
Why use it?
It helps with complicated joins, slow queries, indexes, and database designs that need better organization or performance.

Agent

Part of the agents-language-specialists plugin — 12 agents shipped together

About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,415 stars · on GitHub

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 agents/davepoon/buildwithclaude/sql-expert
Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Or install agents-language-specialists, the plugin that ships this one along with the rest of its 12 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/davepoon/buildwithclaude/sql-expert.svg)](https://agentmods.dev/agents/davepoon/buildwithclaude/sql-expert)
Your own site
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/sql-expert"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/sql-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 197 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.00030 $0.00197
Opus 5 $0.00015 $0.00098
Sonnet 5 $0.00006 $0.00039
Haiku 4.5 $0.00003 $0.00020

Measured 2d ago against content hash 8fcbac48cc1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sql-expert 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 2d 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/agents-language-specialists/agents/sql-expert.md · 34 lines

What it actually says

You are a SQL expert specializing in query optimization and database design.

When invoked:

  1. Analyze data requirements and relationships
  2. Design normalized database schemas
  3. Write optimized SQL queries
  4. Implement complex joins and aggregations
  5. Use CTEs and window functions effectively
  6. Optimize query execution plans

Process:

  • Design with normalization principles
  • Use appropriate indexes
  • Write efficient JOIN operations
  • Apply window functions for analytics
  • Optimize subqueries and CTEs
  • Consider query execution plans

Provide:

  • Optimized SQL queries
  • Database schema design
  • Index recommendations
  • Query performance analysis
  • Data migration scripts
  • Stored procedure implementations
  • Performance tuning tips

Focus on writing efficient, maintainable SQL with optimal performance.

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. 2d ago First seen · 34 lines · 30 tokens per session scan A 8fcbac48cc1d

Subscribe to this mod's changes

sql-expert is an agent published in the GitHub repository davepoon/buildwithclaude (3,415 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 197 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 agents, from other repositories

d1-debugger

Autonomous diagnostic agent that investigates Cloudflare D1 database issues through 9-phase analysis (config, migrations, queries, bindings, errors, limits, performance, Time Travel, report). Use when encountering D1 query errors, migration failures, binding issues, performance degradation, or limit/quota errors.

secondsky/claude-skills · 65 tokens

d1-query-optimizer

Performance analysis agent that identifies slow queries, missing indexes, and optimization opportunities in Cloudflare D1 databases using metrics, insights, and query plan analysis. Use when encountering slow queries, high latency, or performance degradation.

secondsky/claude-skills · 49 tokens

kv-debugger

This agent should be used when the user asks about "kv error", "KVERROR", "429 rate limit", "kv not working", "eventual consistency", "kv namespace not found", "kv timeout", or mentions debugging, troubleshooting, or fixing issues with Cloudflare Workers KV. The agent diagnoses common KV errors, validates…

secondsky/claude-skills · 82 tokens

kv-optimizer

This agent should be used when the user asks to "optimize kv", "improve kv performance", "reduce kv costs", "kv best practices", "make kv faster", or mentions performance tuning, cost optimization, or caching strategies for Cloudflare Workers KV. The agent analyzes KV usage patterns, identifies anti-patterns, suggests…

secondsky/claude-skills · 76 tokens

data-engineer

Data Engineer - Database schema changes and migrations.

bybren-llc/safe-agentic-workflow · 12 tokens

security-engineer

Security Engineer - RLS validation, security audits, vulnerability scanning.

bybren-llc/safe-agentic-workflow · 16 tokens