원클릭으로
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