Skip to content
Back to skills

Database Schema Reviewer

ASecurity

Review PostgreSQL schema design for integrity, performance, and migration safety. Use when modifying supabase/migrations/* or supabase/functions/*.

  • 18 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aibashsqldatabasesecurityperformance

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add conectlens/lenserfight --skill database-schema-reviewer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Database Schema Reviewer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Database Schema Reviewer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/conectlens-database-schema-reviewer/badge)](https://www.skillsdirectory.com/skills/conectlens-database-schema-reviewer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: database-schema-reviewer
description: Review PostgreSQL schema design for integrity, performance, and migration safety. Use when modifying supabase/migrations/* or supabase/functions/*.
disable-model-invocation: true
allowed-tools: Read Grep Glob Bash
---

Run database schema review for $ARGUMENTS.

Purpose  
Evaluate database schema quality, integrity, and performance risks.

Primary scope

- supabase/migrations/*
- supabase/functions/*
- supabase/tests/*

Workflow

[ ] 1 Inspect schema definition

Read the latest migration files in:

supabase/migrations/*

[ ] 2 Inspect SQL functions and triggers

Review:

supabase/functions/*

[ ] 3 Evaluate schema integrity

Check:

- primary keys
- foreign keys
- unique constraints
- nullability rules
- enum usage

[ ] 4 Evaluate performance risks

Check:

- missing indexes
- large relation scans
- hot tables
- unbounded joins

[ ] 5 Evaluate migration safety

Look for:

- destructive schema changes
- column type rewrites
- large table locks
- incompatible constraints

Load references only when needed

- Review process: [Schema review method](references/REFERENCE.md)
- Integrity rules: [Database constraints and relationship checks](references/integrity-rules.md)
- Performance rules: [Indexing and query optimization guidance](references/performance-rules.md)
- Security rules: [RLS policies and database security checks](references/security-rules.md)

Output

Report:

- schema risks
- missing constraints
- index recommendations
- migration safety issues
- suggested improvements

Files in this skill

  • SKILL.md1.5 KB
  • references/REFERENCE.md470 B
  • references/integrity-rules.md551 B
  • references/performance-rules.md307 B
  • references/security-rules.md786 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.