forge-schema-design
CommunityDesign schemas that stay correct as you scale.
Software Engineering#schema design#postgresql#multi-tenancy#soft delete#uuidv7#database constraints#audit columns
Authorf4rkh4d
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents the most common long-term database design failures by enforcing schema “hygiene” rules that stop corruption, audit gaps, and performance issues from showing up after your app grows.
Core Features & Use Cases
- Relational schema contract rules: UUIDv7/ULID primary keys, explicit foreign keys, and deliberate ON DELETE policies to keep data integrity enforceable by the database.
- Correct types and constraints: TIMESTAMPTZ for time, NUMERIC for money, TEXT (with length checks) instead of VARCHAR(255) defaults, and enums/checks/unique constraints for invariants and status fields.
- Multi-tenancy & soft delete patterns: tenant scoping, composite foreign keys where relevant, audit columns, deleted_at soft delete, and partial unique indexes that respect soft deletion.
- Verification for common violations: provides a verifier script that flags missing created_at, autoincrement-only primary keys, TIMESTAMP without time zone, FLOAT/REAL near money columns, and VARCHAR(255) catch-alls.
Quick Start
Use forge-schema-design to review your schema.sql and ensure it follows database-enforced integrity, auditability, and production-safe typing and constraints.
Dependency Matrix
Required Modules
None requiredComponents
assets
💻 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: forge-schema-design Download link: https://github.com/f4rkh4d/forge-skill/archive/main.zip#forge-schema-design 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.