data-layer-contracts
CommunityDefine schema-to-factory-to-seeder contracts and prevent drift
AuthorBottelet
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Ensures alignment and prevents drift between migration schemas, factories, and seeders, ensuring a stable data layer.
Core Features & Use Cases
- Schema-to-factory-to-seeder Contract: Defines a clear contract chain between schema, factory, and seeder components.
- NOT NULL Alignment: Ensures all NOT NULL columns are supported by factories or seeders.
- Factory Rules: Provides guidelines for factories to satisfy NOT NULL columns and reflect migration constraints.
- Seeder Rules: Ensures seeders only insert schema-valid data without relying on database defaults.
- Drift Triggers: Identifies schema drift triggers like migration changes, factory mismatches, and seeder mismatches.
- Identity Rule: Adheres to the principle that primary keys are non-deterministic.
Quick Start
Execute the data-layer-contracts skill to verify the schema-to-factory-to-seeder contract alignment for your data layer.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: data-layer-contracts Download link: https://github.com/Bottelet/DaybydayCRM/archive/main.zip#data-layer-contracts 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 620,000+ vetted skills library on demand.