migration-patterns

Enforce RLS policies and ARCHitect approval in database migrations.

395|84|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/bybren-llc/wtfb-safe-agentic-workflow --skill migration-patterns-bybren-llc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-patterns
Source: https://github.com/bybren-llc/wtfb-safe-agentic-workflow/tree/main/.claude/skills/migration-patterns
Command: npx skills add https://github.com/bybren-llc/wtfb-safe-agentic-workflow --skill migration-patterns-bybren-llc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guide database migration creation with mandatory RLS policies and ARCHitect approval workflow.

Core Features & Use Cases

  • Migration Workflow: steps wiki
  • RLS in Migrations: embed policies
  • ARCHitect Approval: required before changes
  • Migration Checklist: prerequisites

Quick Start

Generate a migration with Prisma and embed RLS policies; obtain ARCHitect approval

Frequently Asked Questions about migration-patterns

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

FAQPage Schema
How do I add Row-Level Security policies to database migrations?

Embed RLS policies directly within migration scripts alongside schema changes. This Skill guides you through creating migrations with Prisma that include policy definitions, ensuring security policies and schema updates deploy together in a single transaction.

Why require approval for database migrations in security-conscious projects?

Database migrations carry compliance and security risks. This Skill enforces ARCHitect approval workflow before migration execution, catching non-compliant changes and ensuring governance requirements are met before deployment.

Can I use Prisma migrations with RLS policies?

Yes. This Skill shows how to generate Prisma migrations and embed RLS policy statements, GRANT commands, and security indexes within the same migration file so policies activate when schema changes apply.

What prerequisites do I need before creating secure migrations?

You need Prisma configured for your database, understanding of RLS concepts, and access to ARCHitect approval systems. This Skill provides a migration checklist covering environment setup, schema prerequisites, and role/policy planning.

How do I document database changes for governance and deployment?

This Skill includes migration checklists and schema impact analysis steps that document RLS policies, privilege grants, and security controls applied during migration, creating an audit trail for compliance teams.