repository-rules
CommunityEnforce explicit DB-to-domain mappings for safety.
Authorhmjn023
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Explicit mapping of database rows to domain entities to prevent unsafe casts and subtle type mismatches, ensuring a stable domain layer.
Core Features & Use Cases
- Explicit mapping with a dedicated mapToDomain helper to keep a clear boundary between DB schemas and domain models.
- Prevents brittle conversions and typing errors when DB schemas evolve, especially across apps/server/src/infrastructure/repositories.
- Improves code readability and maintainability by centralizing mapping logic and validation.
Quick Start
Define a mapToDomain function to convert a database row into a domain entity and apply it wherever you map DB results to domain models.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: repository-rules Download link: https://github.com/hmjn023/solid-imager/archive/main.zip#repository-rules 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.