Skip to content
Development
Skill

/format

Format SQL files using the syntaqlite formatter. Use when the user wants to format, reformat, or pretty-print SQL code.

From plugin
syntaqlite
8293 skills

Claude Code

$ npx -y skills add LalitMaganti/syntaqlite --skill format --agent claude-code

SKILL.md

format.SKILL.md
name: 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.
@lalitmaganti
Ships withsyntaqlite

A fast parser, formatter, static analyzer, and language server for SQLite SQL.

Stars on GitHub

Momentum

stars in total
829
Star history of LalitMaganti/syntaqlite on GitHub, a chart by star-history.com

Other skills on syntaqlite.

parse

parse

Parse SQL and inspect the AST using syntaqlite. Use when the user wants to see the parse tree, debug SQL syntax, or understand…

validate

validate

Validate SQL and report diagnostics using syntaqlite. Use when the user wants to check SQL for errors, lint SQL files, or verify…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about format.

Which coding agents can use format?
format installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.