ワンクリックで
sql-format
Format and optimize SQL queries. Use when user pastes SQL, says "format this SQL", "optimize this query", or "beautify SQL".
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Format and optimize SQL queries. Use when user pastes SQL, says "format this SQL", "optimize this query", or "beautify SQL".
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Translate Markdown files between Chinese and English. Use when user says "translate this document", "翻译这个文档", "中译英", "英译中".
Generate unit tests for selected code. Use when user says "add tests", "write unit tests", "generate test cases", or highlights code needing test coverage.
Generate release notes from git commits. Use when user says "generate release notes", "write changelog for this release", "summarize what's in vX.X".
Analyze code and suggest refactoring improvements. Use when user says "refactor this", "improve this code", "clean up", or "any suggestions for this code".
Generate project README from codebase analysis. Use when user says "write a README", "create README for this project", or initializing a new repo.
Generate pull request description from git diff. Use when user says "generate PR description", "write PR summary", or before opening a pull request.
| name | sql-format |
| description | Format and optimize SQL queries. Use when user pastes SQL, says "format this SQL", "optimize this query", or "beautify SQL". |
Format SQL queries for readability and suggest optimizations.
SELECT
t1.column1,
t1.column2,
COUNT(t2.id) AS count_alias
FROM schema.table_name AS t1
LEFT JOIN other_table AS t2
ON t1.id = t2.foreign_id
AND t2.status = 'active'
WHERE t1.created_at >= '2025-01-01'
AND t1.deleted = FALSE
GROUP BY t1.column1, t1.column2
HAVING COUNT(t2.id) > 5
ORDER BY count_alias DESC
LIMIT 20;
After formatting, suggest optimizations if you notice:
SELECT * → list specific columnsOR conditions that could use UNIONLIMIT on large result sets