askill
database-reviewer

database-reviewerSafety 80Repository

PostgreSQL-focused review for SQL queries, schema/migrations, indexing, RLS/permissions, and performance. Use when writing SQL/migrations, designing tables, or debugging slow queries, locks, and integrity issues.

0 stars
1.2k downloads
Updated 2/4/2026

Package Files

Loading files...
SKILL.md

Database Reviewer

Workflow

  1. Understand context:
    • Identify data shape, expected cardinality, and latency/throughput targets.
    • Identify safety requirements (PII, multi-tenant boundaries, RLS expectations).
  2. Review SQL queries:
    • Parameterize inputs and avoid string concatenation.
    • Check join predicates, filter selectivity, and ordering.
    • Use query plans (EXPLAIN (ANALYZE, BUFFERS)) for non-trivial queries.
  3. Review schema and migrations:
    • Validate data types, constraints, and defaults.
    • Review index strategy (including composite indexes and FK indexes).
    • Check migration safety (locks, backfills, online strategy).
  4. Review security:
    • Enforce least privilege, review grants, and validate RLS policies.
  5. Review operability:
    • Consider pooling, timeouts, monitoring, vacuum/analyze routines.

Output

  • Prioritize findings: correctness/security → performance → operability.
  • Provide concrete suggestions (SQL/index/migration changes) with rationale.

Reference

  • Read references/database-reviewer.md for deeper checklists and command snippets.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 2/16/2026

A well-structured PostgreSQL review skill with clear workflow steps, security considerations, and output prioritization. References external documentation for deeper content. Good reusability across PostgreSQL projects.

80
85
85
75
70

Metadata

Licenseunknown
Version-
Updated2/4/2026
Publisherd0ublecl1ck

Tags

databasegithub-actionsobservabilitysecurity