04-ENRICH-schema

Enforce Supabase PostgreSQL schema conventions and RLS policy compliance.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/medtrics/medtrics-acumen --skill 04-enrich-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 04-ENRICH-schema
Source: https://github.com/medtrics/medtrics-acumen/tree/main/templates/shared/skills/04-ENRICH-schema
Command: npx skills add https://github.com/medtrics/medtrics-acumen --skill 04-enrich-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures your Supabase PostgreSQL database schema adheres to strict conventions, preventing common errors and improving maintainability.

Core Features & Use Cases

  • Schema Convention Enforcement: Validates table naming, column definitions, foreign keys, and constraints against established standards.
  • RLS Policy Auditing: Checks for proper Row Level Security implementation on all tables.
  • Migration Structure Review: Verifies the organization and sequencing of SQL migration files.
  • Use Case: Before deploying a new feature that modifies the database, use this Skill to review the proposed schema changes against the project's standards, catching potential issues like missing indexes or incorrect RLS policies early.

Quick Start

Review the schema conventions and compliance checklist for the current project.

Frequently Asked Questions about 04-ENRICH-schema

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

FAQPage Schema
How do I enforce Supabase schema conventions for database migrations?

Enforce Supabase schema conventions by validating table and column naming, foreign key constraints, boolean prefixes, enum types, and unique constraints during database migrations. This ensures adherence to established PostgreSQL standards for maintainability and security.

Can I audit Row Level Security policies in my PostgreSQL database?

Audit Row Level Security policies by checking for proper RLS implementation on all PostgreSQL tables. This validates that RLS policy definitions enforce correct access controls and meet established security standards.

What does proper foreign key constraint validation include for Supabase PostgreSQL?

Proper foreign key constraint validation includes checking constraint definitions against established Supabase PostgreSQL standards. This process verifies naming conventions, indexing strategies, and relational integrity to prevent common schema design errors.

Does this schema review process check PostgreSQL function and trigger definitions?

Yes, the schema review process checks PostgreSQL function and trigger definitions. It validates these definitions alongside view completeness and indexing strategies to ensure full compliance with established database conventions.

When do I need to validate migration file sequencing for Supabase?

Validate migration file sequencing for Supabase before deploying new features that modify the database. Verifying the organization and structure of SQL migration files catches potential schema issues early in the development cycle.

What is the best way to review Supabase schema changes against project standards?

The best way to review Supabase schema changes is validating table naming, columns, foreign keys, and RLS policies against project standards. This catches missing indexes or incorrect policies early before deployment.