# SQLFluff SQL Linter and Auto-Formatter

> Lint and auto-format SQL code across 30+ dialects using SQLFluff. Enforces consistent style, catches syntax issues, and supports Jinja/dbt templating for ELT workflows.

- Skill: `agentskillexchange/sqlfluff-sql-linter-and-auto-formatter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/sqlfluff-sql-linter-and-auto-formatter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/sqlfluff-sql-linter-and-auto-formatter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/sqlfluff-sql-linter-and-auto-formatter

---


# SQLFluff SQL Linter and Auto-Formatter

Lint and auto-format SQL code across 30+ dialects using SQLFluff. Enforces consistent style, catches syntax issues, and supports Jinja/dbt templating for ELT workflows.

## Installation

Use the upstream install or setup path that matches your environment:
- $ pip install sqlfluff
- $ pip install sqlfluff[rs]

Requirements and caveats from upstream:
- [![PyPi Python Versions](https://img.shields.io/pypi/pyversions/sqlfluff.svg?style=flat-square)](https://pypi.org/project/sqlfluff/)
- [![Docker Pulls](https://img.shields.io/docker/pulls/sqlfluff/sqlfluff?logo=docker&style=flat-square)](https://hub.docker.com/r/sqlfluff/sqlfluff)
- [Python format strings](https://docs.python.org/3/library/string.html#format-string-syntax)

Basic usage or getting-started notes:
- [Getting Started](#getting-started)
- To get started, install the package and run sqlfluff lint or sqlfluff fix.
- shell

- Source: https://github.com/sqlfluff/sqlfluff
- Extracted from upstream docs: https://raw.githubusercontent.com/sqlfluff/sqlfluff/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/sqlfluff-sql-linter-auto-formatter/)

