ddd-type-duplication-across-layers

Community

Keep domain types in sync across layers.

Authorfmflurry
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When adding a new value to a domain union type (for example CalculationBase), the change can cause a build break because the same union value is hardcoded in the infrastructure layer (API request/response models). The domain type compiles, but the adapter that maps domain models to API requests may fail with a type mismatch.

Core Features & Use Cases

  • Synchronize domain union values across domains/models and infrastructure/api to prevent drift.
  • Provide a disciplined approach to propagate changes safely, reducing build failures and runtime errors.
  • Use in a DDD-style project when evolving domain unions that must stay in sync with API models.

Quick Start

Update a domain union type and then search the codebase for all occurrences to ensure domain and infrastructure references are updated consistently.

Dependency Matrix

Required Modules

None required

Components

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: ddd-type-duplication-across-layers
Download link: https://github.com/fmflurry/settings-opencode/archive/main.zip#ddd-type-duplication-across-layers

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 471,000+ vetted skills library on demand.