postgresql-code-review

Review PostgreSQL code for best practices, security, and performance.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill postgresql-code-review-hiiamsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-code-review
Source: https://github.com/hiiamsky/multi-agent-dev-team/tree/main/.github/skills/postgresql-code-review
Command: npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill postgresql-code-review-hiiamsky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL code often lacks consistent best practices, proper constraints, and secure patterns, making reviews slow and error-prone.

Core Features & Use Cases

  • JSONB best practices and containment queries
  • Efficient array usage and indexing strategies
  • PostgreSQL schema design and type usage (ENUMs, domains, constraints)
  • Security-focused reviews including RLS and privilege management
  • Review of extensions, performance tricks, and stored procedures

Quick Start

Provide the PostgreSQL codebase you want reviewed and specify areas (JSONB, arrays, schemas, security) to receive targeted recommendations.

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?

Reviewing PostgreSQL schema design requires validating custom types, ENUM usage, and constraints. This process enforces correctness and maintainability while identifying anti-patterns across your application and database layers to boost overall code quality.

What is the best way to optimize JSONB usage and containment queries in PostgreSQL?

Optimizing JSONB usage involves applying validated patterns for containment queries and indexing strategies. Reviewing your code ensures efficient array operations and proper indexing, which boosts query performance and maintains data structure integrity.

How do I implement Row Level Security and privilege management in PostgreSQL?

Implementing Row Level Security requires security-focused code reviews to validate privilege management. This process checks your database security configurations to ensure access controls are properly enforced across application layers.

Can I automate PostgreSQL code reviews for extensions and stored procedures?

Yes, you can automate PostgreSQL code reviews for extensions and stored procedures. Automated reviews check performance tricks and suggest validated patterns, ensuring your database code meets security and performance requirements.

Does PostgreSQL code review cover both performance and security constraints?

PostgreSQL code review covers performance and security constraints by suggesting validated patterns and index recommendations. It evaluates JSONB usage, schema design, and RLS to satisfy requirements for correctness, performance, and security.