postgresql-code-review

Review PostgreSQL SQL code and schemas for design flaws and performance issues.

1|1|Updated Jun 4, 2024
One-click install
npx skills add https://github.com/dhar174/tiny_village --skill postgresql-code-review-dhar174
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql-code-review
Source: https://github.com/dhar174/tiny_village/tree/main/.github/skills/postgresql-code-review
Command: npx skills add https://github.com/dhar174/tiny_village --skill postgresql-code-review-dhar174

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL-focused code review guidance to identify and fix database design, performance, and security issues early.

Core Features & Use Cases

  • Review JSONB usage, arrays, schema design, and security features (RLS) for PostgreSQL databases.
  • Provide actionable recommendations, anti-patterns, and performance improvements for code bases of varying sizes.
  • Use Case: A developer submits a SQL script for review; the Skill returns a prioritized list of issues and suggested fixes.

Quick Start

Submit your PostgreSQL script or schema for a comprehensive review and specify any performance or security goals.

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 performance and security issues?

To review PostgreSQL schema design, submit your SQL scripts to identify anti-patterns, enforce index strategies, validate constraints, and secure role configurations. This process returns a prioritized list of actionable design flaws and suggested fixes.

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

Optimizing JSONB and array usage involves applying PostgreSQL-specific best practices to your code. A targeted code review identifies performance issues within your JSONB structures and arrays, providing actionable recommendations to improve database query efficiency.

How do I check my PostgreSQL database for Row Level Security (RLS) anti-patterns?

Checking for Row Level Security anti-patterns requires reviewing your stored procedures and schema designs for secure role and privilege configurations. The review process evaluates your RLS implementation to ensure proper access control and database security.

Can I use a code review to find PostgreSQL migration flaws before deployment?

Yes, you can use a PostgreSQL code review to find migration flaws before deployment. By submitting your SQL migrations, the review identifies design flaws and performance issues early, returning a prioritized list of issues and suggested fixes.

Does PostgreSQL code review work for stored procedures and extensions?

PostgreSQL code review works for stored procedures and extension usage by evaluating them against PostgreSQL-specific best practices. It identifies design flaws and performance issues across your database schemas, providing recommendations for secure configurations.