SharpPad: Command for Claude Code

.claude/commands/review-sql.md

review-sql is a command for Claude Code from gaoconggit/SharpPad. It costs 0 tokens per session (1,487 once invoked), scanned A, original, MIT.

A command that sends SQL files or statements to a review agent for analysis. SQL is the language used to read and change data in databases.

In plain words
What is it for?
Use it to review migrations, schema changes, queries, or groups of SQL files, with optional focus on performance, security, environment, or database type.
Why use it?
It helps catch unsafe database changes, security vulnerabilities, slow queries, and deployment risks before SQL runs, especially in production.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is gaoconggit/SharpPad's own configuration. It tells Claude Code how to work on SharpPad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SharpPad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gaoconggit/SharpPad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gaoconggit/SharpPad/main/.claude/commands/review-sql.md
Clone the repo
git clone --depth 1 https://github.com/gaoconggit/SharpPad

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 review-sql

README.md
[![agentmods](https://agentmods.dev/badge/commands/gaoconggit/sharppad/review-sql/github.svg)](https://agentmods.dev/commands/gaoconggit/sharppad/review-sql)
Your own site
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/review-sql"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/review-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 review-sql

Your own site · 80×15
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/review-sql"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/review-sql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,487 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.00000 $0.01487
Opus 5.5 $0.00000 $0.00595
Sonnet 5.5 $0.00000 $0.00297
Haiku 4.5 $0.00000 $0.00149

Measured 13d ago against content hash 4be0e1ffeb64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-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 13d 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.

.claude/commands/review-sql.md · 221 lines

How it starts

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

/review-sql - SQL Review Command

Launches the professional SQL review agent for comprehensive database script analysis covering safety, performance, and security.

Syntax

/review-sql [file_path | sql_statement | pattern] [options]

Description

Activates the sql-reviewer agent to perform thorough SQL analysis covering:

  • Data safety and risk assessment
  • Performance optimization opportunities
  • Security vulnerability detection
  • Database-specific best practices
  • Execution timing and resource planning

Examples

Basic Usage

Review SQL file
/review-sql migrations/001_create_users_table.sql
Review SQL statement
/review-sql
SELECT * FROM users 
WHERE created_at > '2024-01-01' 
ORDER BY id DESC
Review current file
/review-sql
Review multiple files
/review-sql migrations/*.sql

Advanced Usage

Production deployment review
/review-sql --env=prod --strict schema_changes.sql
Performance-focused review
/review-sql --focus=performance slow_queries.sql
Security audit
/review-sql --focus=security user_operations.sql
Database-specific review
/review-sql --db=sqlserver --env=prod maintenance.sql

Parameters

Database Engine

  • --db=sqlserver - SQL Server specific optimizations and checks
  • --db=mysql - MySQL specific recommendations
  • --db=postgresql - PostgreSQL best practices
  • --db=oracle - Oracle performance and syntax guidance

Environment Context

  • --env=prod - Production deployment safety checks
  • --env=staging - Staging environment validation
  • --env=dev - Development environment review

Focus Areas

  • --focus=security - Emphasize security vulnerability detection
  • --focus=performance - Prioritize query optimization analysis
  • --focus=safety - Focus on data safety and backup requirements

Review Depth

  • --strict - Strictest review mode with all safety checks
  • --quick - Fast review focusing on critical issues only
  • --estimate - Include execution time and resource estimates

Read the full file on GitHub · 221 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. 13d ago First seen · 221 lines · 0 tokens per session scan A 4be0e1ffeb64

Subscribe to this mod's changes

review-sql is a command published in the GitHub repository gaoconggit/SharpPad (83 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,487 tokens. 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-02.