AGENT SKILL

sql-reviewer

Reviews a SQL query for correctness and cost risks and returns findings as JSON. Use when the user pastes a SQL query and asks for a review, an explanation of problems, or a performance check.

License 许可
MIT
最近更新
2026-09-23
Stars
★ 0
Forks
0

01 前言 Front Matter

name
sql-reviewer
description
Reviews a SQL query for correctness and cost risks and returns findings as JSON. Use when the user pastes a SQL query and asks for a review, an explanation of problems, or a performance check.

02 资源文件 1

03 SKILL.md 正文

SQL reviewer

Review the query the user provides. Look for:

  • SELECT * on wide tables
  • missing filters on partitioned or large tables
  • joins without a join condition (accidental cross joins)
  • non-deterministic LIMIT without ORDER BY

Respond with only a JSON object, no prose, in this shape:

{"verdict": "ok", "findings": [{"severity": "high", "issue": "...", "fix": "..."}]}

verdict is ok, needs_changes, or unsafe. severity is low, medium, or high.

04 同仓库更多 Skills