domain-model-review

Analyze MarketNest Domain layer for DDD quality and report blockers.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/nhahoang1909/MarketNest --skill domain-model-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: domain-model-review
Source: https://github.com/nhahoang1909/MarketNest/tree/main/.claude/skills/domain-model-review
Command: npx skills add https://github.com/nhahoang1909/MarketNest --skill domain-model-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scan the Domain layer of MarketNest to verify DDD quality: aggregate design, value object immutability, domain event naming and placement, state machine transitions, invariants enforcement, and Result pattern usage. Activate when user uploads Domain/ folder or an AggregateRoot subclass for review.

Core Features & Use Cases

  • Evaluate aggregate integrity, value object correctness, and domain event completeness.
  • Detect anemic domain models, improper event placement, invariant violations, and weak state machines.
  • Generate actionable blockers and suggestions with file paths and line references.

Quick Start

Upload your Domain/ folder or an AggregateRoot subclass to run a deep-domain model review.

Frequently Asked Questions about domain-model-review

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

FAQPage Schema
How do I detect anemic domain models and invariant violations in my codebase?

To detect anemic domain models and invariant violations, you need a domain model review that scans your Domain layer for weak aggregate designs, improper private setters, and missing enforcement logic. This analysis identifies anemic structures and reports violations with specific file paths and line references.

What is the best way to review domain-driven design quality for aggregates and value objects?

Reviewing domain-driven design quality involves evaluating aggregate integrity, value object immutability, and domain event placement. A dedicated DDD audit scans your Domain folders to enforce domain-centric patterns like factory methods and clear invariants, generating actionable blockers for any misplacement or design flaws found.

How do I check if domain events are correctly raised from aggregates?

Checking if domain events are correctly raised from aggregates requires analyzing your Domain layer for event naming and placement. The review process identifies misplacement of events outside aggregate roots and verifies that domain events follow proper DDD patterns, providing actionable suggestions with exact file paths.

Can I audit state machine transitions and Result pattern usage in a Domain layer?

Yes, you can audit state machine transitions and Result pattern usage by analyzing your Domain layer. The review detects weak state machines and verifies Result pattern implementation, reporting findings with file paths and line references to ensure your domain-centric patterns are correctly enforced.

What do I need to provide to run a deep-domain model review?

To run a deep-domain model review, you need to upload your Domain folder or an AggregateRoot subclass. This allows the scanner to analyze your codebase for DDD quality across aggregates, value objects, domain events, invariants, and state machines, generating actionable blockers.

Why does my domain model review flag missing factory methods and public setters?

A domain model review flags missing factory methods and public setters because they violate domain-centric patterns. Enforcing private setters and factory methods ensures aggregate integrity and value object immutability, preventing anemic domain models and maintaining strict invariants within your Domain layer.