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
8183 skills
Install
$ npx -y skills add LalitMaganti/syntaqlite --skill format --agent claude-code

How 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.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.
Ships withsyntaqlite

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

Get the whole plugin
Stats
818
Stars
16
Forks
Active
Maintenance
Rust
Language
Apache-2.0
License
22h ago
Last commit
7mo ago
Created

Repo: LalitMaganti/syntaqlite

Other skills on syntaqlite.