postgresql-code-review

Automate PostgreSQL code review for SQL scripts, functions, and migrations.

316|57|Updated Jun 14, 2025
One-click install
npx skills add https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas --skill postgresql-code-review-syahiidkamil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-code-review
Source: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/main/.claude/skills/postgresql-code-review
Command: npx skills add https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas --skill postgresql-code-review-syahiidkamil

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usage, custom types, schema design, function optimization, and PostgreSQL-exclusive security features like Row Level Security (RLS).

Core Features & Use Cases

  • JSONB Best Practices: Validate containment queries, indexing strategies, and data modeling choices for JSONB data.
  • Array and Schema Review: Assess array usage, partitioning, indexing, and robust schema designs with constraints and types.
  • Security & Extensions: Evaluate Row Level Security policies, extensions usage, and safe function practices.

Quick Start

Run the PostgreSQL code-review workflow against your project to surface concrete improvements across code, schema, and security configurations.

Frequently Asked Questions about postgresql-code-review

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

FAQPage Schema
How do I review PostgreSQL schemas for best practices and security?

Reviewing PostgreSQL schemas involves validating data types, indexing strategies, and constraints alongside security features like Row Level Security policies. This ensures robust schema design and secure access control across your database structures.

What are the best practices for optimizing PostgreSQL JSONB queries?

Optimizing PostgreSQL JSONB queries requires validating containment query patterns, applying appropriate indexing strategies, and assessing data modeling choices. Reviewing these aspects ensures efficient JSONB operations and avoids performance bottlenecks.

How do I validate Row Level Security policies in PostgreSQL?

Validating Row Level Security policies in PostgreSQL involves evaluating access control configurations and ensuring safe function practices. Reviewing RLS policies enforces secure data access and prevents unauthorized exposure across database schemas.

Can I automate PostgreSQL migration reviews for anti-patterns?

Yes, automating PostgreSQL migration reviews detects anti-patterns across SQL scripts, JSONB operations, and custom types. This enforces best practices by providing actionable remediation guidance for schema changes and performance improvements.

Does PostgreSQL code review cover array usage and extensions?

PostgreSQL code review assesses array usage by validating indexing and partitioning strategies, and evaluates extensions for safe implementation. This ensures arrays and extensions follow PostgreSQL-specific quality standards and avoid anti-patterns.