Skip to content
Development
Skill

/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.

From plugin
syntaqlite
7983 skills
Install
$ npx -y skills add LalitMaganti/syntaqlite --skill parse --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/parse

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

parse.SKILL.md
name: parse
description: 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.

Parse SQL

Parse SQLite SQL and display the abstract syntax tree (AST) using the syntaqlite CLI.

Usage

# Print AST from a file
syntaqlite parse query.sql

# Print AST from stdin
echo "SELECT 1 + 2 FROM t" | syntaqlite parse

# Parse an inline expression
syntaqlite parse -e "SELECT 1"

# Output as JSON
syntaqlite parse -o json query.sql

Options

  • `-e, --expression <SQL>` — parse an inline SQL expression instead of files
  • `-o, --output <FORMAT>` — output format (default: text)

Output modes

  • `text` — Human-readable indented AST tree (default)
  • `json` — Machine-readable JSON AST

Notes

  • Use the default `text` output for quick inspection and `json` for programmatic use.
Ships withsyntaqlite

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.

Get the whole plugin
Stats
797
Stars
17
Forks
Maintained
Maintenance
Rust
Language
Apache-2.0
License
1mo ago
Last commit
6mo ago
Created

Repo: LalitMaganti/syntaqlite