mysql-database-reviewer

mysql-database-reviewer is an agent for Claude Code from joneqian/claude-skills-suite. It costs 42 tokens per session (6,670 once invoked), scanned A, original, MIT.

A specialist for reviewing MySQL databases, which store structured application data in tables. It focuses on queries, schema design, security, connections, and concurrent access.

In plain words
What is it for?
Use it when writing SQL, designing tables, creating migrations, investigating slow queries, improving indexes, configuring connections, or checking database permissions and locking.
Why use it?
It helps find slow database operations, unsafe access patterns, inefficient table structures, and problems caused by multiple users changing data at once.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it when writing SQL, designing tables, creating migrations, investigating slow queries, improving indexes, configuring connections, or checking database permissions and locking.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/joneqian/claude-skills-suite/mysql-database-reviewer
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/joneqian/claude-skills-suite

Made for: Claude Code.

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 mysql-database-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/joneqian/claude-skills-suite/mysql-database-reviewer/github.svg)](https://agentmods.dev/agents/joneqian/claude-skills-suite/mysql-database-reviewer)
Your own site
<a href="https://agentmods.dev/agents/joneqian/claude-skills-suite/mysql-database-reviewer"><img src="https://agentmods.dev/badge/agents/joneqian/claude-skills-suite/mysql-database-reviewer/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 mysql-database-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/joneqian/claude-skills-suite/mysql-database-reviewer"><img src="https://agentmods.dev/badge/agents/joneqian/claude-skills-suite/mysql-database-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,670 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.00042 $0.06670
Opus 5 $0.00021 $0.03335
Sonnet 5 $0.00008 $0.01334
Haiku 4.5 $0.00004 $0.00667

Measured 10d ago against content hash a5c2e2af4bd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mysql-database-reviewer 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 10d 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.

agents/mysql-database-reviewer.md · 851 lines

How it starts

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

MySQL Database Reviewer

You are an expert MySQL database specialist focused on query optimization, schema design, security, and performance. Your mission is to ensure database code follows best practices, prevents performance issues, and maintains data integrity.

Core Responsibilities

  1. Query Performance - Optimize queries, add proper indexes, prevent table scans
  2. Schema Design - Design efficient schemas with proper data types and constraints
  3. Security - Implement access control, least privilege, data protection
  4. Connection Management - Configure pooling, timeouts, limits
  5. Concurrency - Prevent deadlocks, optimize locking strategies
  6. Monitoring - Set up query analysis and performance tracking

Tools at Your Disposal

Database Analysis Commands

# Connect to database
mysql -h $HOST -u $USER -p$PASSWORD $DATABASE

# Enable slow query log (runtime)
mysql -e "SET GLOBAL slow_query_log = 'ON'; SET GLOBAL long_query_time = 1;"

# Check slow queries from performance_schema
mysql -e "SELECT DIGEST_TEXT, COUNT_STAR, AVG_TIMER_WAIT/1000000000 as avg_ms FROM performance_schema.events_statements_summary_by_digest ORDER BY AVG_TIMER_WAIT DESC LIMIT 10;"

# Check table sizes
mysql -e "SELECT table_name, ROUND((data_length + index_length) / 1024 / 1024, 2) AS size_mb FROM information_schema.tables WHERE table_schema = DATABASE() ORDER BY (data_length + index_length) DESC LIMIT 20;"

# Check index usage (MySQL 8.0+ sys schema)
mysql -e "SELECT * FROM sys.schema_unused_indexes WHERE object_schema = DATABASE();"
mysql -e "SELECT * FROM sys.schema_redundant_indexes WHERE table_schema = DATABASE();"

# Find tables without primary key
mysql -e "SELECT t.table_schema, t.table_name FROM information_schema.tables t LEFT JOIN information_schema.key_column_usage k ON t.table_schema = k.table_schema AND t.table_name = k.table_name AND k.constraint_name = 'PRIMARY' WHERE t.table_schema = DATABASE() AND k.constraint_name IS NULL AND t.table_type = 'BASE TABLE';"

# Check for table bloat (fragmentation)
mysql -e "SELECT table_name, data_free, (data_free/(data_length+index_length+data_free))*100 as frag_pct FROM information_schema.tables WHERE table_schema = DATABASE() AND data_free > 0 ORDER BY data_free DESC;"

# Check current connections
mysql -e "SELECT user, host, db, command, time, state FROM information_schema.processlist WHERE command != 'Sleep' ORDER BY time DESC;"

# Check InnoDB lock waits
mysql -e "SELECT * FROM sys.innodb_lock_waits\\G"

Read the full file on GitHub · 851 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. 10d ago First seen · 851 lines · 42 tokens per session scan A a5c2e2af4bd4

Subscribe to this mod's changes

mysql-database-reviewer is an agent published in the GitHub repository joneqian/claude-skills-suite (32 stars, last pushed 7mo ago), licensed MIT. It adds 42 tokens to every session and 6,670 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-08-31.

Related

Other agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

core-data-auditor

Use this agent when the user mentions Core Data review, schema migration, production crashes, or data safety checking. Automatically scans Core Data code for the 5 most critical safety violations - schema migration risks, thread-confinement errors, N+1 query patterns, production data loss risks, and performance issues…

CharlesWiltgen/Axiom · 261 tokens

lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with "design a dashboard", "analyze our funnel".

jeremylongshore/tons-of-skills-marketplace · 53 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

django-migrations-specialist

Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…

AratKruglik/claude-sdlc · 85 tokens

database-architect

Use this agent for database design and change work: schema design, indexing strategy, query optimization, migration safety, and engine selection. Trigger on "design a schema for", "this query is slow", "is this migration safe", "add an index", "Postgres or Mongo for this", or N+1 complaints. Returns schema/DDL with…

aayushostwal/nexus · 96 tokens