database-reviewer

Review PostgreSQL queries, schemas, and security policies for optimization.

Updated Nov 17, 2025
One-click install
npx skills add https://github.com/itou-daiki/easy_stat_edu --skill database-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-reviewer
Source: https://github.com/itou-daiki/easy_stat_edu/tree/main/.agent/skills/database-reviewer
Command: npx skills add https://github.com/itou-daiki/easy_stat_edu --skill database-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL database code often suffers from suboptimal performance, brittle schema designs, and inconsistent security policies, leading to slow queries and maintenance headaches.

Core Features & Use Cases

  • Query performance: optimize SQL, add appropriate indexes, and tune queries for speed.
  • Schema design & integrity: propose robust schemas, constraints, and normalization guidance.
  • Security & access control: advise on Row Level Security, roles, and least-privilege permissions for multi-tenant or shared schemas.
  • Use Case: A team migrating a monolith to Postgres can rely on this skill to audit queries, refine schemas, and enforce security best practices.

Quick Start

Provide a targeted review of your PostgreSQL setup by sharing sample queries and schema definitions.

Frequently Asked Questions about database-reviewer

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

FAQPage Schema
How do I optimize PostgreSQL queries for better performance?

PostgreSQL query optimization involves analyzing query plans, adding appropriate indexes, and tuning SQL for speed. This skill provides actionable guidance on indexing strategies and query tuning to resolve slow queries and improve overall database performance.

How does Row Level Security work for multi-tenant PostgreSQL schemas?

Row Level Security (RLS) in PostgreSQL restricts data access at the row level based on user roles. This skill advises on RLS implementations, permission models, and least-privilege policies to enforce security best practices for multi-tenant or shared database schemas.

What is the best way to design a scalable PostgreSQL schema?

Designing a scalable PostgreSQL schema requires robust constraints, proper data-type selection, and normalization. This skill proposes maintainable schema designs and integrity rules to prevent brittle structures and reduce long-term maintenance headaches.

Can I audit my existing SQL queries and migrations for security issues?

Auditing SQL queries and migrations for security involves reviewing access control policies and permission models. This skill evaluates your PostgreSQL setup to enforce least-privilege permissions and refine security policies across both small projects and multi-tenant deployments.

When do I need to add indexes to my PostgreSQL database?

You need to add PostgreSQL indexes when query performance degrades due to full table scans or missing access paths. This skill reviews your sample queries and schema definitions to recommend appropriate indexing strategies and tune queries for speed.