agentleFS
atsushi-greenatsushi-green/ds-ai-coding-skills/.claude/skills/review-sql/SKILL.md

review-sql

Skill86 starsChanged 51 days agoMITView on GitHub

SQLクエリの正確性と安全性をレビューする

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Skill: Review SQL

sql-analysis のチェックリストを使って、提示されたSQLクエリをレビューする。

レビュー対象のクエリが渡されていない場合は、ユーザーにレビューしたいSQLクエリを貼り付けるよう依頼する。

チェック項目

  • SELECT * の使用(明示的なカラム指定にすべきか)
  • 大規模テーブルへの日付フィルタの欠如
  • JOINカーディナリティの問題(1:1, 1:N, M:N)
  • JOIN前後の行数検証
  • 破壊的な文(DROP, TRUNCATE, DELETE, UPDATE)
  • 指標定義の曖昧さ
  • NULLの扱い
  • 重複のリスク
  • 暗黙的なクロスジョイン

具体的な行参照と修正案を添えて、日本語でフィードバックする。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.