Skill Detail

Normalize dbt SQL and Jinja templates into consistent review-ready style with sqlfmt

Use sqlfmt to reformat dbt-oriented SQL and Jinja-heavy query files into a stable style before code review, CI checks, or agent-generated handoff.

Code Quality & ReviewMulti-Framework
Code Quality & Review Multi-Framework Security Reviewed
โญ 530 GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill normalize-dbt-sql-and-jinja-templates-into-consistent-review-ready-style-with-sqlfmt Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
sqlfmt CLI
Install & setup
Install the Python CLI from the upstream sqlfmt project (the repository notes distribution on PyPI as shandy-sqlfmt, with uv recommended), then run sqlfmt against the target SQL files or project paths.
Author
Tristan Conbeer and contributors
Publisher
Oss
Last updated
Apr 26, 2026
Quick brief

Use this skill when an agent needs to clean up messy dbt SQL or Jinja-templated query files before review, commit, or downstream linting. sqlfmt is a focused formatter: it rewrites supported SQL files into one consistent style, handles Jinja-aware source text, and avoids turning the task into a broader linting or warehouse-management workflow.

How it works

What this skill actually does

Invoke it when the job is specifically make these SQL files readable and consistent rather than run dbt itself, manage models, or operate a data platform. That scope boundary keeps this entry skill-shaped: the agent performs a narrow formatting pass over existing SQL assets and returns reviewable diffs.

This is especially useful after agent-generated edits, before pull requests, or when teams want style normalization without code-review debates. The upstream project explicitly positions sqlfmt as a fast SQL formatter for dbt SQL files that works with Jinja and integrates into CLI, CI, and editor workflows.