domain-logic-implementation
CommunityEnforce invariants at the domain authority.
Software Engineering#domain modeling#invariants#state transitions#value objects#domain service#rule authority#domain testing
Authormachenjie
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Domain rules often get duplicated inconsistently across controllers, services, UI, and persistence, which leads to invalid states being saved and bugs surfacing only in edge cases.
Core Features & Use Cases
- Centralized domain authority: places invariants, calculations, lifecycle rules, and policies near the aggregate, value object, or domain service that owns them.
- Single-source rule enforcement: ensures each rule has one authority and prevents contradictory behavior across layers.
- State transition safety: rejects invalid lifecycle transitions before persistence so aggregates remain consistent over time.
- Transport- and persistence-independent logic: keeps domain operations free from framework/ORM objects and transport concerns.
Quick Start
Use this capability to design a domain implementation contract for a change that adds or modifies an invariant, aggregate behavior, calculation, or lifecycle transition.
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: domain-logic-implementation Download link: https://github.com/machenjie/rd-skills/archive/main.zip#domain-logic-implementation 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.