db-enforcer
OfficialEnforce DB integrity with Prisma & PG.
Authoroakoss
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill ensures your PostgreSQL database schema and your TypeScript application code stay perfectly in sync, preventing data integrity issues and enabling robust, type-safe database operations.
Core Features & Use Cases
- Type-to-DB Synchronization: Automatically align TypeScript types with PostgreSQL CHECK constraints.
- Migration Safety: Enforce a "migration-first" approach for all schema changes, preventing accidental data loss.
- Row-Level Security (RLS): Implement secure, granular access control directly at the database level.
- Use Case: When designing a new feature that involves user roles and permissions, use this Skill to ensure your Prisma schema, database constraints, and RLS policies are all correctly defined and aligned from the start.
Quick Start
Use the db-enforcer skill to generate a migration script for adding a new 'status' enum to the 'orders' table.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: db-enforcer Download link: https://github.com/oakoss/agent-skills/archive/main.zip#db-enforcer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.