tactical-ddd

Detect anemic domain models and recommend tactical DDD refactorings with encapsulated business behavior.

Updated May 25, 2026
One-click install
npx skills add https://github.com/Yairama/mine-rs --skill tactical-ddd-yairama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tactical-ddd
Source: https://github.com/Yairama/mine-rs/tree/main/.github/skills/tactical-ddd
Command: npx skills add https://github.com/Yairama/mine-rs --skill tactical-ddd-yairama

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers identify weak domain models where business behavior is misplaced, then improve them with stronger encapsulation and tactical Domain-Driven Design patterns.

Core Features & Use Cases

  • Anemic Model Detection: Reviews domain code for data-only entities, excessive setters, primitive obsession, and misplaced business logic.
  • DDD Refactoring Guidance: Recommends improvements using Entities, Value Objects, Aggregates, Domain Services, and Domain Events.
  • Use Case: When reviewing an order domain model, use this Skill to find leaked business rules and suggest changes that make the Aggregate enforce its own invariants.

Quick Start

Ask the tactical ddd skill to review my domain model for anemic design issues and recommend tactical DDD improvements.

Frequently Asked Questions about tactical-ddd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect an anemic domain model in my codebase?

Anemic domain model detection involves reviewing domain code for data-only entities, excessive setters, primitive obsession, and misplaced business logic to identify weak domain designs.

How do I refactor anemic models into rich domain designs?

Refactoring anemic models requires applying tactical Domain-Driven Design patterns like Entities, Value Objects, Aggregates, Domain Services, and Domain Events to encapsulate business behavior.

What is the best way to enforce aggregate invariants in DDD?

Enforcing aggregate invariants requires refactoring domain models so the Aggregate enforces its own business rules, preventing leaked logic and ensuring strong encapsulation.

When do I need value objects and domain events in domain modeling?

Value objects and domain events are needed during domain modeling when refactoring anemic structures to encapsulate business behavior and capture state changes within tactical DDD architectures.

Can I use tactical DDD refactoring for code reviews?

Tactical DDD refactoring applies directly to code reviews by analyzing domain code patterns and validating them against tactical DDD principles to provide actionable improvement recommendations.