sql-style-guide

Enforce SQL naming conventions and migration safety checks in CI.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill sql-style-guide-kentoshimizu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-style-guide
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/sql-style-guide
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill sql-style-guide-kentoshimizu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

SQL artifacts often suffer from inconsistent naming, unsafe migrations, and unclear queries, hindering maintenance and code reviews.

Core Features & Use Cases

  • Enforces snake_case naming for tables, columns, and constraints.
  • Validates explicit primary and foreign keys, explicit data types, and deterministic migrations.
  • Guides review workflows to prevent unsafe changes and improve clarity in code reviews and CI.

Quick Start

Run the standard SQL style checks in CI or during a code review to ensure compliance with the style guide before merging.

Frequently Asked Questions about sql-style-guide

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

FAQPage Schema
How do I enforce SQL naming conventions and safety checks in CI?

You can enforce SQL style and safety in CI by running automated checks against schema, migration, and query artifacts before merging. This validation ensures snake_case naming, explicit primary and foreign keys, and deterministic migrations.

What are deterministic migrations and when do I need them for database schema changes?

Deterministic migrations are database schema changes that produce consistent, reproducible results during CI validation. You need them to safely automate migration checks, prevent unsafe alterations, and guarantee reliable code reviews.

How do I prevent unsafe database migrations during code reviews?

Prevent unsafe database migrations during code reviews by applying automated SQL style guidance that validates explicit column types, explicit primary and foreign keys, and deterministic migration requirements before changes are merged.

Does this SQL style guide validate both database queries and schema migrations?

Yes, this SQL style guide validates both database queries and schema migrations. It automates style enforcement across all SQL artifacts in codebases, covering naming conventions, safety checks, and performance guidance.

What is the best way to standardize SQL artifacts across a development team?

The best way to standardize SQL artifacts is to enforce a SQL style guide in CI that mandates snake_case naming for tables, columns, and constraints, alongside explicit data types and keys for all database schema changes.