sql-lint

Lint and auto-fix SQL code style across multiple database dialects.

33|5|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/y1feng200156/ham-study --skill sql-lint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-lint
Source: https://github.com/y1feng200156/ham-study/tree/main/.agent/skills/sql-lint
Command: npx skills add https://github.com/y1feng200156/ham-study --skill sql-lint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sqlfluff, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the enforcement of consistent SQL code style and syntax checking across various database dialects, improving code quality and maintainability.

Core Features & Use Cases

  • SQL Style Checking: Utilizes SQLFluff to identify and report style violations.
  • Multi-Dialect Support: Works with PostgreSQL, MySQL, SQLite, BigQuery, Snowflake, and more.
  • Auto-Fixing: Can automatically correct common style issues.
  • Use Case: Ensure all SQL queries written by your team adhere to predefined formatting standards, preventing merge conflicts and improving readability.

Quick Start

Use the sql-lint skill to check the style of the file 'schema.sql' using the postgres dialect.

Frequently Asked Questions about sql-lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check SQL code style and syntax across multiple database dialects?

To check SQL code style and syntax, you can use SQLFluff to lint SQL statements across PostgreSQL, MySQL, SQLite, BigQuery, Snowflake, and TSQL dialects. This identifies style violations and improves code maintainability.

Can I automatically fix SQL formatting issues and style violations?

Yes, you can automatically fix SQL formatting issues and style violations using the auto-fixing capability. It automatically corrects common style problems to ensure your SQL queries adhere to predefined formatting standards.

Does SQLFluff support linting for Snowflake, BigQuery, and TSQL?

Yes, SQLFluff supports linting for Snowflake, BigQuery, and TSQL, alongside PostgreSQL, MySQL, and SQLite. This multi-dialect support allows you to enforce consistent SQL code style across diverse database environments.

What do I need to run SQL linting with SQLFluff?

To run SQL linting with SQLFluff, you need Python 3.8 or higher and the sqlfluff pip package installed. These prerequisites are required to execute the syntax checking and style enforcement operations.

What is the best way to enforce team SQL formatting standards and prevent merge conflicts?

The best way to enforce team SQL formatting standards and prevent merge conflicts is to automate SQL style checking. Applying consistent linting rules ensures all team queries adhere to predefined formatting standards, improving readability.