Database Rules

Enforce database governance rules across Supabase projects.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/taikiwt/sitecue --skill database-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Database Rules
Source: https://github.com/taikiwt/sitecue/tree/main/.agent/skills/database
Command: npx skills add https://github.com/taikiwt/sitecue --skill database-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces absolute rules for database governance across Supabase projects, preserving SSOT, improving change control, and strengthening data access policies.

Core Features & Use Cases

  • SSOT principles: Treat schema references and types as the single source of truth; avoid hard-coded values across code and migrations.
  • Migration discipline: Require local testing and explicit migration files; forbid direct production edits to schemas or data rules.
  • Security and access control: Provide clear guidance for enabling RLS and controlling per-user data access.

Quick Start

Review the rules and align your project with SSOT, migration governance, and secure data access.

Frequently Asked Questions about Database Rules

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

FAQPage Schema
How do I enforce strict database rules for safe migrations in Supabase?

To enforce strict database rules for safe migrations in Supabase, you must require local testing and explicit migration files while forbidding direct edits to production schemas or data rules. This ensures controlled change management.

What is the single source of truth for database schema governance?

The single source of truth for database schema governance is the schema references and types themselves. Avoiding hard-coded values across code and migrations maintains consistent data management and absolute SSOT alignment.

How do I set up Row Level Security policies for per-user data access in Supabase?

To set up Row Level Security (RLS) policies for per-user data access in Supabase, enable RLS and apply explicit access control rules. This provides clear guidance for controlling secure per-user data handling workflows.

Can I use these database governance rules for my product team's deployment workflow?

Yes, you can use these database governance rules for your product team's deployment workflow. They apply directly to developers, DBAs, and product teams during schema design, deployment, and data handling procedures.

Why should I not make direct edits to production database schemas?

You should not make direct edits to production database schemas because it breaks migration discipline. Requiring explicit migration files ensures safe migration procedures, preserving change control and strict data security compliance.