SQLFormat

SKILL.md

SQLFormat

SQL query formatter, linter, and devtools toolkit. Check SQL style, validate syntax, format and pretty-print queries, lint for best practices, explain execution plans, convert between dialects, and manage SQL templates — all from the command line.

Commands

Run sqlformat <command> [args] to use. Each command records timestamped entries to its own log file.

Core Operations

Command Description
check <input> Check SQL code for style or correctness issues
validate <input> Validate SQL syntax against rules
generate <input> Generate formatted SQL snippets or boilerplate
format <input> Format and pretty-print a SQL query with proper indentation
lint <input> Lint SQL for style violations and anti-patterns
explain <input> Record query explanation or execution plan notes
convert <input> Convert SQL between dialects (MySQL ↔ PostgreSQL, etc.)
Installs
6
First Seen
Apr 9, 2026