Skip to main content

sql-best-practices

Use this skill when writing SQL queries — selects, joins, aggregations, window functions, or schema modifications. Apply whenever SQL is needed to ensure correctness, safety, and performance.

ソース情報

リポジトリ
aiming-lab/MetaClaw
ソースの最終更新活動
2026年3月10日 18:04
検出された SKILL.md の言語
英語
スター
3,456
フォーク
450

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
sql-best-practices
description
Use this skill when writing SQL queries — selects, joins, aggregations, window functions, or schema modifications. Apply whenever SQL is needed to ensure correctness, safety, and performance.
category
data_analysis
# SQL Best Practices **Query quality:** - Use `SELECT col1, col2` — never `SELECT *` in production code. - Use CTEs (`WITH`) for readability instead of deeply nested subqueries. - Filter early: apply `WHERE` before `JOIN` when possible to reduce data scanned. - Use `EXPLAIN` / `EXPLAIN ANALYZE` to inspect query plans for slow queries. **Safety:** - Always use parameterized queries from application code — never string interpolation. - Wrap destructive operations (`DELETE`, `UPDATE`, `DROP`) in a transaction. - Test on a staging/dev environment before running on production. **Naming:** `snake_case` for tables/columns, descriptive names, consistent pluralization.
GitHubで見る