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.
curl -O https://raw.githubusercontent.com/gaoconggit/SharpPad/main/.claude/commands/review-sql.mdgit clone --depth 1 https://github.com/gaoconggit/SharpPadWrote 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.
[](https://agentmods.dev/commands/gaoconggit/sharppad/review-sql)<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.
<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>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.
| Model | Per session | Once 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 |
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 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.
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
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.
- 1mo ago First seen · 221 lines · 0 tokens per session scan A 4be0e1ffeb64
review-sql is a command published in the GitHub repository gaoconggit/SharpPad (82 stars, last pushed 8mo 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.
review-sql compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| review-sqlgaoconggit/SharpPad | Command | 82 | 8mo ago | MIT | A | 0 | Claude Code |
| pg-indexespgrundev/pgbot | Command | 1.5k | 2d ago | none | A | 12 | Claude Code |
| quality-reviewerTenon-Net/TenonAdmin | Command | 47 | today | Apache-2.0 | A | 13 | Claude Code, Codex |
| dataolehsvyrydov/AI-development-team | Command | 18 | 10d ago | MIT | A | 25 | Claude Code |
| dbaolehsvyrydov/AI-development-team | Command | 18 | 10d ago | MIT | A | 28 | Claude Code |
| step5-review-gatesrnichols/plan-forge | Command | 6 | 25d ago | MIT | A | 23 | GitHub Copilot |
| pn-audit-dataperniemann/pnCore | Command | 0 | today | MIT | A | 42 | Claude Code, Cursor |