/format
Format SQL files using the syntaqlite formatter. Use when the user wants to format, reformat, or pretty-print SQL code.
$ npx -y skills add LalitMaganti/syntaqlite --skill format --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/format
Context preview
The summary Claude sees to decide when to auto-load this skill.
Format SQL files using the syntaqlite formatter. Use when the user wants to format, reformat, or pretty-print SQL code.
SKILL.md
format.SKILL.mdname: format description: Format SQL files using the syntaqlite formatter. Use when the user wants to format, reformat, or pretty-print SQL code.
Format SQL
Format SQLite SQL using the syntaqlite CLI formatter.
Usage
# Format a file (print to stdout) syntaqlite fmt query.sql # Format in-place syntaqlite fmt -i query.sql # Format from stdin echo "SELECT a,b FROM t WHERE x=1" | syntaqlite fmt # Format multiple files via glob syntaqlite fmt -i "**/*.sql" # Format with options syntaqlite fmt -w 120 -k upper query.sql
Options
- `-e, --expression <SQL>` — format an inline SQL expression instead of files
- `-w, --line-width <N>` — max line width (default: 80)
- `-t, --indent-width <N>` — spaces per indentation level (default: 2)
- `-k, --keyword-case <upper|lower>` — keyword casing (default: upper)
- `-i, --in-place` — overwrite files in place
- `--check` — check if files are formatted (exit 1 if not)
- `--semicolons <true|false>` — append semicolons (default: true)
Notes
- When the user asks to format a specific file, use `-i` to write in place.
- When formatting multiple files, use a glob pattern with `-i`.
- Use `--check` in CI to verify formatting without modifying files.
A parser, formatter, validator, and language server for SQLite SQL, built on SQLite's own grammar and tokenizer. If SQLite accepts it, syntaqlite parses it. If SQLite rejects it, so does syntaqlite. Note: syntaqlite is at 0.x.
Repo: LalitMaganti/syntaqlite
Other skills on syntaqlite.
- /parse
Parse SQL and inspect the AST using syntaqlite. Use when the user wants to see the parse tree, debug SQL syntax, or understand how a query is structured.
Open skill - /validate
Validate SQL and report diagnostics using syntaqlite. Use when the user wants to check SQL for errors, lint SQL files, or verify correctness against a schema.
Open skill

