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 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.
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.
- 13d ago First seen · 221 lines · 0 tokens per session scan A 4be0e1ffeb64
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.
Other commands, from other repositories
pg-indexes
Review unused indexes that are safe to drop (pgbot).
step5-review-gate
Pipeline Step 5 — Independent review gate and drift detection. Run in a fresh agent session (read-only audit).
pn-audit-data
Design or review database schema — normalization, indexing strategy, migration plan, and data model decisions. Surgical command for database design. Use standalone or as part of pn-backend-audit.
code-review
../../.cratis/ai/prompts/code-review.prompt.md.
inventory
Codebase inventory skill — scans the repo for a named pattern (inline SQL, fetch calls, feature flags, debug leftovers, deprecated APIs, etc.) and emits a structured Markdown inventory cross-referenced with framework metadata (routes, handlers). Language-agnostic and pack-driven — the engine matches whatever a YAML…
dbt-carveout-relocate-review
Human adjudication gate for relocated carve-out dbt models.