Skip to content
Development
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.

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

Context preview

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

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.

SKILL.md

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

Validate SQL

Validate SQLite SQL and report diagnostics (errors, warnings) using the syntaqlite CLI.

Usage

# Validate a file
syntaqlite validate query.sql

# Validate from stdin
echo "SELECT * FORM t" | syntaqlite validate

# Validate an inline expression
syntaqlite validate -e "SELECT 1 + "

# Validate against a schema
syntaqlite validate --schema schema.sql query.sql

# Validate multiple files via glob
syntaqlite validate "**/*.sql"

# Validate with multiple schema files
syntaqlite validate --schema "migrations/*.sql" --schema extra.sql query.sql

Options

  • `-e, --expression <SQL>` — Validate an inline SQL expression instead of files
  • `--schema <FILE>` — Schema DDL file to load before validation (repeatable, supports globs)
  • `--experimental-lang <LANG>` — Extract embedded SQL from host language files (`python`, `typescript`)

Notes

  • Without `--schema`, validation checks syntax only. With `--schema`, it also checks table/column references.
  • Exit code is 0 if valid, non-zero if errors are found.
  • For continuous validation while editing, the LSP server provides real-time diagnostics automatically.
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