Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides database migration creation with mandatory RLS policies, user_id indexes, and ARCHitect approval before PR.
Use this skill ↓48% 92%+44 ptsof test cases passed
Passed 23 of 25 test cases with the skill, and 12 of 25 without it.
3 of 3 safety checks passed
Not used yet
Guide database migration creation with mandatory RLS policies, following security-first architecture and approval workflow.
-- FORBIDDEN: RLS policies in separate file
-- RLS MUST be in the same migration.sql file as the table creation
-- FORBIDDEN: Table without RLS
CREATE TABLE user_data (...);
-- Missing: ALTER TABLE user_data ENABLE ROW LEVEL SECURITY;
-- FORBIDDEN: Resolve applied migrations
npx prisma migrate resolve --applied "migration_name"
-- This bypasses migration verification
-- FORBIDDEN: Missing user_id index
CREATE TABLE payments (...);
-- Missing: CREATE INDEX idx_payments_user_id ON payments(user_id);
-- FORBIDDEN: Schema changes without ARCHitect approval
-- All migrations require approval before PR
Next to this one in the catalogue, plus more from the same author.