formatting-sql

Official

Standardize SQL formatting.

Authormusher-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenges of inconsistent SQL formatting, which leads to noisy diffs, slower code reviews, and unnecessary merge conflicts by providing tools and strategies for automated and consistent SQL formatting.

Core Features & Use Cases

  • Tool Comparison: Evaluates SQLFluff, pg_formatter, and atlas fmt for SQL and HCL formatting.
  • Configuration Guidance: Provides recommended configurations for SQLFluff and pre-commit hooks.
  • CI Integration: Details how to implement PR-scoped linting using diff-quality.
  • Policy Enforcement: Advocates for formatting as an advisory policy, not a hard block.
  • Debate Resolution: Offers a framework for resolving formatting disagreements.
  • Use Case: When setting up SQL formatters for a new project, configuring linters, or deciding between different formatting tools.

Quick Start

Configure SQLFluff for PostgreSQL with the provided recommended settings in your .sqlfluff file.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: formatting-sql
Download link: https://github.com/musher-dev/bundles/archive/main.zip#formatting-sql

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.