postgres-style-guide

Enforce PostgreSQL SQL style guidelines for consistent, readable code.

4|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/linehaul-ai/linehaulai-claude-marketplace --skill postgres-style-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-style-guide
Source: https://github.com/linehaul-ai/linehaulai-claude-marketplace/tree/main/.claude-plugin/supabase/skills/postgres-style-guide
Command: npx skills add https://github.com/linehaul-ai/linehaulai-claude-marketplace --skill postgres-style-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a PostgreSQL SQL style guide for consistent, readable code, naming, and schema conventions.

Core Features & Use Cases

  • Naming conventions, schema prefixes, comments, data types, etc.
  • Table definitions and example patterns
  • Enforcing style across teams

Quick Start

Apply the style guide to standardize all new SQL scripts.

Frequently Asked Questions about postgres-style-guide

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

FAQPage Schema
How do I enforce consistent PostgreSQL naming conventions across my team?

PostgreSQL style guides enforce lowercase reserved words, snake_case identifiers, and schema qualification standards. Apply these conventions to all SQL scripts, DDL statements, and table definitions to ensure consistent, readable code across your team and projects.

What are PostgreSQL SQL style best practices for table and schema design?

Best practices include explicit joins, schema-qualified references, ISO 8601 date formats, audit columns, proper constraints, and meaningful comments. These standards improve code maintainability, clarity, and quality in PostgreSQL projects.

Can I standardize SQL code style during code reviews?

Yes. Apply PostgreSQL style guidelines during code reviews to enforce naming conventions, join patterns, constraint definitions, and documentation requirements. This ensures all SQL queries and DDL statements meet team standards before deployment.

What naming conventions should I use for PostgreSQL identifiers and tables?

Use snake_case for table names, column names, and other identifiers; lowercase all reserved SQL keywords; qualify references with schema names; include audit columns; and add descriptive comments. These conventions make SQL code more readable and maintainable.

Why use explicit joins and schema qualification in PostgreSQL queries?

Explicit joins clarify relationships between tables and improve query readability. Schema qualification prevents ambiguity and naming conflicts, making code more portable and easier to maintain across PostgreSQL environments and team collaborations.