Spring Boot Data DDD Skill for Order Aggregates
Use Spring Data to define an aggregate root, repository, and transaction boundaries with testable line-item rules.
中文Install in Claude Code
Use your Spring Boot 4 project, Spring Data JDBC, and a test database. The example uses an order and two synthetic line items.
- Get the complete `plugins/spring-boot/skills/spring-boot-data-ddd` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/spring-boot-data-ddd/SKILL.md`, start Claude Code at the project root, and call `/spring-boot-data-ddd`.
Example task
Create O1, add one of product A and two of B through the aggregate, save, and reload. Then attempt a zero-quantity line.What to check
Reloading yields two lines and three units. The domain method rejects a zero-quantity line.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should another aggregate modify an order line directly?
Maintain invariants through the order aggregate root. Other aggregates can reference the order by ID and use the defined operations.