java-ddd-expert

Generate Spring Cloud DDD business logic code for Java 11 projects.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Xunzi229/skills --skill java-ddd-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-ddd-expert
Source: https://github.com/Xunzi229/skills/tree/main/java-ddd-expert
Command: npx skills add https://github.com/Xunzi229/skills --skill java-ddd-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates generation and guidance for implementing business logic within a Domain-Driven Design four-layer architecture, reducing architecture violations and accelerating Service layer and domain code creation for Java Spring projects.

Core Features & Use Cases

  • Architecture-safe code generation: Produces Param, Entity/DO, BO, DTO and enforces API / Application / Domain / Infrastructure boundaries.
  • Integration-ready implementations: Generates Repository interfaces, MyBatis-Plus Mappers, domain interactors, and application orchestration compatible with Java 11, Spring Boot 2.1, and Gradle.
  • Use case: Implement a new business feature by defining Param → Entity → Repository persistence, domain interactors, application use case orchestration, and DTO/VO response mapping while publishing domain events for cross-boundary consistency.

Quick Start

Generate a Service and Domain interactor for the Order aggregate that validates input, maps Param to Entity, persists via MyBatis-Plus repository, and returns a DTO.

Frequently Asked Questions about java-ddd-expert

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

FAQPage Schema
How do I generate Domain-Driven Design service code for a Spring Boot project?

To generate Domain-Driven Design service code for a Spring Boot project, use automated scaffolding to produce Param, Entity, BO, and DTO artifacts while enforcing four-layer DDD boundaries for Java 11 applications using Spring Boot 2.1.

How do I implement a Spring Cloud service layer with MyBatis-Plus and Gradle?

Implement a Spring Cloud service layer with MyBatis-Plus and Gradle by generating Repository interfaces, MyBatis-Plus Mappers, domain interactors, and application orchestration to persist entities and publish domain events across API, Application, Domain, and Infrastructure boundaries.

Does DDD code generation support Java 11 and Spring Boot 2.1?

DDD code generation supports Java 11 and Spring Boot 2.1 projects using Gradle and MyBatis-Plus, automatically producing integration-ready implementations for Repository persistence, domain interactors, and application use case orchestration that align with your existing architecture.

What is the best way to enforce four-layer DDD architecture constraints in Java?

The best way to enforce four-layer DDD architecture constraints in Java is through automated code generation that strictly separates API, Application, Domain, and Infrastructure layers to produce compliant Repository, Mapper, and application orchestration code while reducing architecture violations.

How do I map Param to Entity and return a DTO in a DDD domain interactor?

To map Param to Entity and return a DTO in a DDD domain interactor, orchestrate use cases by validating input, mapping parameters to entities, persisting via a MyBatis-Plus repository, and mapping the response to DTOs while ensuring transaction and domain event consistency.

When do I need to publish domain events for cross-boundary consistency in Spring DDD?

You need to publish domain events for cross-boundary consistency in Spring DDD when implementing new features that require transactional integrity across API, Application, Domain, and Infrastructure layers to maintain data consistency after entity persistence.