Postgresql syntax

From saifoelloh/golang-best-practices-skill · View interactive version

Postgresql syntax is an AI agent skill from the GitHub repository saifoelloh/golang-best-practices-skill. PostgreSQL SQL syntax review for Go/GORM projects. Use when writing or reviewing raw SQL used via db.Raw(), db.Exec(), or migrations. Covers placeholder style, reserved keyword quoting, RETURNING, ILIKE, JSONB operators, and type casting. Don't use for MySQL or SQLite.

How to use this skill

Skill file

PostgreSQL Syntax

Expert-level review of raw PostgreSQL SQL syntax in GORM/Go projects. Ensures correct Postgres-specific usage, idiomatic SQL, and avoids common runtime errors.

When to Apply

Use this skill when:

Rule Categories

| Priority | Count | Focus |

|---|---|---|

| Critical | 1 | Placeholder style mismatch |

| High | 4 | Identifier quoting, RETURNING, ILIKE, type casting |

| Medium | 4 | CTE readability, JSONB operators, INTERVAL, select redundancy |

Rules Covered (9 total)

Critical Issues (1)

High-Impact Patterns (4)

Medium Improvements (4)

Trigger Phrases

Cross-Reference with golang-best-practices-skill

Two rules in this skill directly extend rules from the companion database-repository skill in golang-best-practices-skill:

| This skill | golang-best-practices-skill | Relationship |

|---|---|---|

| high-identifier-quoting | high-gorm-identifier-quoting | Expanded — more Postgres examples, full reserved word list |

| medium-select-redundancy | medium-gorm-select-redundancy | Mirror — same rule, cross-referenced |

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.