AGENT SKILL
sqruff
Use this skill when the user wants to lint, fix, or format SQL files with sqruff, the fast Rust-based SQLFluff-compatible linter.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- sqruff
- description
- Use this skill when the user wants to lint, fix, or format SQL files with sqruff, the fast Rust-based SQLFluff-compatible linter.
03 SKILL.md 正文
sqruff Plugin
sqruff is a fast SQL linter and formatter in Rust, compatible with SQLFluff rules and
.sqlfluff config. Supports 20+ dialects (ansi, postgres, mysql, bigquery, snowflake,
duckdb, clickhouse, ...).
Commands
Linting
sqruff sql lint [path]— Lint a file or directorysqruff sql fix [path]— Auto-fix violationssqruff rules list— List lint rulessqruff dialects list— List supported dialectssqruff _ _— Passthrough (sqruff parse,sqruff lsp)
Usage Examples
- "Lint all SQL in models/ against the postgres dialect"
- "Auto-fix SQL style issues in this repo"
- "Show me the parse tree of this query"
- "List available lint rules"
Installation
cargo install sqruff
# or: brew install sqruff
# or: pipx install sqruff
Examples
# Lint with dialect
sqruff lint models/ --dialect postgres
# Machine-readable output
sqruff lint models/ --format json
# Fix with safety limits
sqruff fix models/ --dialect snowflake
# Inspect parse tree
sqruff parse query.sql --dialect duckdb
Key Features
- SQLFluff rule compatibility, reads
.sqruffor.sqlfluffconfig --format human|github-annotation|jsonfor CI integrationsqruff lsp— built-in language server for editor integration- Orders of magnitude faster than Python SQLFluff
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57