sql-style

Enforce ANSI SQL formatting, naming, and query construction conventions.

Updated Jan 11, 2026
One-click install
npx skills add https://github.com/gykk16/spring-skeleton --skill sql-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-style
Source: https://github.com/gykk16/spring-skeleton/tree/main/.omc/skills/sql-style
Command: npx skills add https://github.com/gykk16/spring-skeleton --skill sql-style

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to writing readable, maintainable, and performant SQL queries, ensuring consistency across projects and teams.

Core Features & Use Cases

  • Formatting Standards: Enforces consistent keyword alignment, comma placement, and indentation.
  • Naming Conventions: Defines clear rules for tables, columns, and constraints.
  • Query Best Practices: Offers guidance on SELECT, JOIN, WHERE clauses, subqueries, and more.
  • Performance Tips: Includes advice on indexing and query optimization.
  • Use Case: A developer new to a project can quickly understand and adhere to the established SQL coding standards, leading to more maintainable and less error-prone database code.

Quick Start

Follow the SQL style guide to format the provided SQL query.

Frequently Asked Questions about sql-style

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

FAQPage Schema
What are the best practices for SQL formatting and naming conventions?

SQL formatting best practices involve enforcing ANSI conventions for consistent keyword alignment, comma placement, indentation, and defining clear naming rules for tables, columns, and constraints to improve readability.

How do I write consistent SELECT, JOIN, and WHERE clauses in SQL?

To write consistent SELECT, JOIN, and WHERE clauses, follow established SQL style guides that enforce standard query construction rules, ensuring your database code remains readable and maintainable across projects.

Does this SQL style guide cover query optimization and indexing?

Yes, this SQL style guide covers query optimization and indexing. It includes specific performance tips and guidance on subquery optimization to ensure your formatted SQL queries are also performant.

Can I use these SQL coding standards for INSERT, UPDATE, and DELETE statements?

Yes, you can use these SQL coding standards for INSERT, UPDATE, and DELETE statements. The style guide provides specific best practices for formatting and constructing these data modification queries.

Why do I need an ANSI SQL style guide for my development team?

An ANSI SQL style guide ensures consistency across your development team. By enforcing standardized formatting, naming, and query construction, new developers can quickly understand established coding standards and reduce error-prone database code.

What is the best way to format SQL queries for maintainability?

The best way to format SQL queries for maintainability is to apply ANSI conventions for keyword alignment and indentation, define clear table and column naming rules, and follow structured guidelines for constraint definitions.