ddd-primitives

Community

Advanced DDD modeling with primitives for invariants and business rules.

AuthorSparkymod
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill aids in implementing advanced Domain-Driven Design patterns and practices, addressing invariants, value objects, specifications, aggregate roots, domain events, and state machines, ensuring robust and maintainable domain logic.

Core Features & Use Cases

  • Value Object Modeling: Offers a template for value objects with structural equality, ideal for concepts with real invariants.
  • Specification Implementation: Provides a mechanism for composable business rules that run both in-memory and in SQL.
  • Strongly Typed Ids: Helps eliminate primitive obsession in id management.
  • Aggregate Root and Domain Events: Facilitates the creation of entities that own invariants and can react to changes.
  • StateMachine: Enables guarded state transitions without exceptions, suitable for entities with complex status fields.
  • Use Case: Use this Skill when building a complex system that requires strict enforcement of business rules and domain logic.

Quick Start

Apply the 'ddd-primitives' skill to an entity that requires value objects, specifications, and state management.

Dependency Matrix

Required Modules

None required

Components

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: ddd-primitives
Download link: https://github.com/Sparkymod/Template/archive/main.zip#ddd-primitives

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.