java/src/main/resources/targets/claude/skills/conditional/review/x-review-data-modeling/SKILL.md
Data modeling specialist review: validates entity design, aggregate boundaries, value objects, repository patterns, domain event persistence, and DDD tactical patterns.
npx skillsauth add edercnj/ia-dev-environment x-review-data-modelingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review code changes for data modeling best practices in DDD/hexagonal architectures: entity identity and lifecycle, aggregate boundaries and consistency, value object immutability, repository pattern compliance, domain event persistence, and mapping between domain and persistence models.
Include this skill when database != "none" AND architecture.style is one of hexagonal, ddd, cqrs, or clean in the project configuration.
/x-review-data-modeling 42 -- review PR #42 for data modeling/x-review-data-modeling src/main/java/com/example/domain/ -- review domain model files/x-review-data-modeling -- review all current domain model changes| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| target | String | No | (current changes) | PR number or file paths to review |
| Pack | Files | Purpose |
|------|-------|---------|
| data-modeling | skills/data-modeling/SKILL.md | Entity design, aggregate boundaries, value objects, DDD tactical patterns |
Each item scores 0 (missing), 1 (partial), or 2 (fully compliant).
| # | Item | Score | |---|------|-------| | DM-01 | Entities have explicit identity (typed ID, not raw Long/String) | /2 | | DM-02 | Entity equality based on identity, not attribute comparison | /2 | | DM-03 | Entity lifecycle managed through aggregate root (no orphan entity creation) | /2 |
| # | Item | Score | |---|------|-------| | DM-04 | Aggregate boundaries defined (one aggregate = one consistency boundary) | /2 | | DM-05 | Cross-aggregate references use IDs, not direct object references | /2 | | DM-06 | Aggregate invariants enforced in domain layer (not in persistence layer) | /2 |
| # | Item | Score | |---|------|-------| | DM-07 | Value objects are immutable (records or final classes with no setters) | /2 | | DM-08 | Domain model separated from persistence model (dedicated mapper classes) | /2 | | DM-09 | Repository returns domain entities (not persistence entities or DTOs) | /2 |
| # | Item | Score | |---|------|-------| | DM-10 | Domain events published through aggregate root (not scattered across services) | /2 |
Read the data modeling knowledge pack:
skills/data-modeling/SKILL.mdDetermine scope: domain model, entities, value objects, repositories, mappers.
Check identity patterns, equality implementation, lifecycle management.
Verify aggregate boundaries, cross-aggregate references, invariant enforcement.
Check immutability, domain-persistence separation, repository return types.
Verify event publishing patterns through aggregate roots.
Produce the scored report.
ENGINEER: Data Modeling
STORY: [story-id or change description]
SCORE: XX/20
STATUS: PASS | FAIL | PARTIAL
### PASSED
- [DM-XX] [Item description]
### FAILED
- [DM-XX] [Item description]
- Finding: [file:line] [issue description]
- Fix: [remediation guidance]
### PARTIAL
- [DM-XX] [Item description]
- Finding: [partial compliance details]
| Scenario | Action | |----------|--------| | No domain model found | Report INFO: no domain model code discovered | | No aggregate pattern detected | Warn and check if architecture uses aggregates | | No persistence model found | Skip DM-08, DM-09 and note N/A |
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.
tools
Generates a Picocli @Command with subcommands, options, converters, and unit tests.
testing
Scaffolds a Micronaut service with @Controller, DI, health, Dockerfile, and tests.
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.