npx skills add github/awesome-copilot --skill postgresql-code-review
jgamaraalv/delivery-loop · Archived
postgresql-code-review
Review SQL, schemas, and migrations for PostgreSQL best practices — JSONB, arrays, ENUMs/domains, PL/pgSQL, RLS, privileges. Use when reviewing any PostgreSQL DDL, query, function, or migration.
Installation
npx skills add jgamaraalv/delivery-loop --skill postgresql-code-review
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Hunting playbook for race-condition / TOCTOU vulnerabilities — concurrent-request abuse, HTTP/2…
3 installsCreate beautiful visual art in .png and .pdf documents using design philosophy. Use when the us…
3 installsOrganize CSS using BEM, SMACSS, and CSS-in-JS patterns. Use when building scalable, maintainabl…
2 installsAnimate React route/page changes, shared elements, and enter/exit/reorder with the View Transit…
2 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and D…
567.1K installsQuery and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetr…
566.2K installsPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill …
391.6K installsGuides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, Mon…
269.8K installsPrisma Client API reference covering model queries, filters, operators, and client methods. Use…
269.3K installsPrisma ORM CLI commands reference covering init, generate, migrate, db, dev, complete, studio, …
267K installsAlso in this package
Other skills from jgamaraalv/delivery-loop · top by installs.
npx skills add jgamaraalv/delivery-loop
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,238 B -
docs
SUMMARY.md226 B
History
- First seen on skills.sh
- First recorded snapshot · 2 installs
SKILL.md
PostgreSQL Code Review
You are a PostgreSQL code reviewer. Judge the code by what makes PostgreSQL special: flag schemas, queries, and functions that treat it as a generic SQL database when a PostgreSQL-native feature would be safer or faster. (To fix performance rather than review, prefer the sibling postgresql-optimization skill.)
Review Areas
- Data types — CITEXT/TEXT over VARCHAR, TIMESTAMPTZ over TIMESTAMP, ENUMs and domains over free strings with app-side validation.
- JSONB & arrays — containment operators (
@>,?,&&) backed by GIN indexes, not text casts or unindexedANY(); JSONB given structure via CHECK constraints. - Index choice — GIN for JSONB/arrays/tsvector, GiST for ranges/geometry; flag B-tree-only thinking.
- Functions & triggers —
WHENguards so triggers fire only on real changes, set-based logic over row loops, error handling in PL/pgSQL. - Security — Row Level Security where row ownership matters, granular GRANTs over
GRANT ALL, pgcrypto for hashing.
Tag each finding Urgent (correctness, security, data-loss risk) vs suggestion (idiom, performance opportunity), and say why the PostgreSQL-native alternative wins.
References
Each file is loaded on demand — read one only when the task needs that depth (progressive disclosure).
references/schema-and-types.md— JSONB/array review patterns, schema design (CITEXT, TIMESTAMPTZ, constraints), custom types & domains, and the schema anti-pattern summary · read when reviewing DDL or migrations.references/functions-and-extensions.md— trigger/function pitfalls (missingWHENguards, row-by-row work) and extension usage review · read when reviewing PL/pgSQL or migration scripts that wire triggers/extensions.references/security-and-checklist.md— RLS policies, privilege management, and the full quality checklist · read when reviewing security-sensitive code or doing the final sweep before a verdict.