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
8293 skills

Claude Code

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

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 analyze query.sql

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

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

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

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

# Validate with multiple schema files
syntaqlite analyze --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.
@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.

format

format

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

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…

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

Which coding agents can use validate?
validate 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.