supabase-schema-audit

Audit Supabase database schemas for integrity and security compliance.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/zincdigitalofmiami/zinc-fusion-v16 --skill supabase-schema-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-schema-audit
Source: https://github.com/zincdigitalofmiami/zinc-fusion-v16/tree/main/.kilo/skills/supabase-schema-audit
Command: npx skills add https://github.com/zincdigitalofmiami/zinc-fusion-v16 --skill supabase-schema-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematically audits a ZINC Fusion V16 Supabase cloud database across the nine canonical schemas to verify access controls, integrity constraints, and schema drift. It helps detect missing RLS policies, PKs/FK constraints, and index gaps before migrations, reducing security and reliability risks.

Core Features & Use Cases

  • Per-schema audit loops (pre-flight → per-schema checks → migration-fix cycles → commit) to ensure each schema remains compliant.
  • Non-destructive workflow with migration-based changes and explicit change-plan approvals.
  • Supports governance through a formal change plan, risk assessment, and final re-audit to verify fixes.

Quick Start

Run this skill to perform a non-destructive, per-schema audit of all nine canonical Supabase schemas in your project.

Frequently Asked Questions about supabase-schema-audit

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

FAQPage Schema
How do I audit my Supabase database for missing row level security policies?

This Skill audits a Supabase database by running automated per-schema checks across nine canonical schemas to verify RLS policies, primary keys, foreign keys, indexes, and naming conventions, detecting security and integrity gaps before migrations.

What is the best way to check Supabase schema drift before running a database migration?

To check schema drift, run a pre-flight audit that loops through schemas to verify integrity constraints and access controls before applying any non-destructive, migration-based changes.

Can I automatically fix missing primary keys and foreign key constraints in PostgreSQL?

Yes, a migration-fix cycle can address missing primary keys and foreign key constraints by generating an explicit change plan and risk assessment, then applying non-destructive migrations to resolve the issues.

Does this database security audit support non-destructive workflows for PostgreSQL?

Yes, the audit enforces a non-destructive workflow by requiring explicit change plan approvals and recording evidence before any migrations are applied to your PostgreSQL database.

How do I verify naming conventions and index gaps across multiple Supabase schemas?

You can verify naming conventions and index gaps by running an automated per-schema audit loop that checks each of the nine canonical schemas individually against established compliance rules.

When should I require a formal change plan for Supabase database migrations?

A formal change plan is required during migration-fix cycles to ensure governance, recording evidence and approvals before modifying any schema integrity, security posture, or database constraints.