db-schema-audit

Audit PostgreSQL database schemas for quality, performance, security, and integrity issues.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/GDSDN/kord-aios --skill db-schema-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-schema-audit
Source: https://github.com/GDSDN/kord-aios/tree/main/src/features/builtin-skills/kord-aios/database/db-schema-audit
Command: npx skills add https://github.com/GDSDN/kord-aios --skill db-schema-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies potential issues in your database schema, ensuring it adheres to best practices for performance, security, and data integrity.

Core Features & Use Cases

  • Comprehensive Auditing: Checks for missing indexes, unencrypted PII, non-compliance with naming conventions, and more.
  • Mode Selection: Choose between fast autonomous audits, interactive guided audits, or detailed pre-flight planning.
  • Use Case: Before deploying a new feature that heavily relies on database interactions, run this audit to catch potential performance bottlenecks or security vulnerabilities in your schema.

Quick Start

Run the db-schema-audit skill to perform a comprehensive audit of your Supabase database schema.

Frequently Asked Questions about db-schema-audit

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

FAQPage Schema
How do I audit my PostgreSQL schema for missing indexes and security issues?

You can audit a PostgreSQL schema for missing indexes and security issues by running SQL queries to detect unindexed foreign keys, potential PII columns, and tables lacking Row Level Security. It generates a Markdown report with scores and action items.

What is a database schema audit and when do I need one?

A database schema audit evaluates schema quality, performance, security, and data integrity. You need one before deploying new database-heavy features to catch potential bottlenecks, unencrypted PII, and missing primary keys.

Can I check for unencrypted PII columns and missing Row Level Security in Supabase?

Yes, you can check for unencrypted PII columns and missing Row Level Security in Supabase. The audit executes SQL queries against the PostgreSQL database to identify these specific security vulnerabilities and data integrity risks.

How do I check database schema best practices and naming conventions automatically?

To check database schema best practices and naming conventions automatically, run an autonomous fast audit mode. It scans for non-compliance with naming conventions, missing primary keys, and unindexed foreign keys, returning a detailed Markdown report.

What are the limitations of running a schema audit on a large PostgreSQL database?

Limitations of running a schema audit on a large PostgreSQL database include potential performance overhead from executing comprehensive SQL queries. If the database is extremely large, interactive guided audits or pre-flight planning modes can help scope the analysis.

What is the best way to identify tables lacking Row Level Security in my database?

The best way to identify tables lacking Row Level Security is to perform a comprehensive schema audit. It executes targeted SQL queries to detect missing RLS policies, unindexed foreign keys, and potential PII columns, generating a scored Markdown report.