postgresql-code-review

Review PostgreSQL code for JSONB, indexing, schema design, and RLS patterns.

1|1|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/M-Abdullah07/Pharmacy-Billing-App --skill postgresql-code-review-m-abdullah07
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-code-review
Source: https://github.com/M-Abdullah07/Pharmacy-Billing-App/tree/main/.agent/skills/postgresql-code-review
Command: npx skills add https://github.com/M-Abdullah07/Pharmacy-Billing-App --skill postgresql-code-review-m-abdullah07

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL-specific code review guidance focusing on best practices, anti-patterns, and PostgreSQL-exclusive features.

Core Features & Use Cases

  • JSONB Best Practices: guidance on indexing, containment operators, and validation constraints.
  • Schema Design & Types: use of enums, domains, JSONB structure, and performance considerations.
  • Security & Extensions: review of RLS, privileges, and typical extensions for performance and reliability.
  • Use Case: For a large project needing optimized data models and secure access controls.

Quick Start

Provide a PostgreSQL project or code snippet for review, and I will assess JSONB usage, indexing, schema design, and security patterns.

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 schema design for best practices and anti-patterns?

PostgreSQL schema design review evaluates enums, domains, constraints, and data type choices to identify anti-patterns. It ensures optimized data models by analyzing structural performance considerations and providing concrete improvement suggestions for your project.

What is the best way to optimize JSONB operations and indexing in PostgreSQL?

Optimizing JSONB operations involves applying containment operators, validation constraints, and targeted indexing strategies. PostgreSQL code review assesses these elements to improve query performance and ensure proper JSONB structure within your database design.

How do I implement Row Level Security and privileges in PostgreSQL?

Implementing Row Level Security (RLS) in PostgreSQL involves configuring policies and privileges to enforce secure access controls. A security pattern review validates your RLS setup to ensure reliable data protection across large project environments.

Can I use PostgreSQL extensions to improve database performance and reliability?

PostgreSQL extensions can be utilized to enhance performance and reliability. A code review identifies typical extensions suited for your specific data model, validating their integration to satisfy your project's performance requirements.

What are common PostgreSQL anti-patterns when using arrays and functions?

Common PostgreSQL anti-patterns include improper array usage and inefficient function definitions. A dedicated code review detects these issues by analyzing your implementation against PostgreSQL-exclusive features, suggesting concrete improvements for better performance.

Does this PostgreSQL code review support large projects needing optimized data models?

This PostgreSQL code review supports large projects requiring optimized data models and secure access controls. It analyzes indexing strategies, constraints, and schema design to deliver concrete improvement suggestions for complex database architectures.