Individual skill
ddd-best-practices
DDD(领域驱动设计)架构最佳实践指南。当用户在 Java/Spring Boot 项目中遇到分层架构、领域建模、模块边界、代码评审或测试分层问题时使用。包括:纠结是否引入 application/api/querys 模块;设计或审查实体、聚合、仓储、防腐层、领域事件;贫血模型重构(setter 全开、规则全在 Service);多入口共享用例是否补 application 层;策略模式 Map 注入、责任链、Node 流程编排的取舍;Controller 测试 @WebMvcTest vs @SpringBootTest 选型;MVC 渐进迁移 DDD;DDD 命名规范。仅适用 Java/Spring Boot 生态,Go/Python/Node 等其他语言不适用。
plugins/yyykf/spellbook-skills/skills/ddd-best-practices/SKILL.md
Source commit d780783eba4ecc7c8b9429f95c9362df95f07c61
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,532
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-coding Repository topic
- awesome Repository topic
- awesome-list Repository topic
- codex Repository topic
- codex-plugins Repository topic
- openai Repository topic
- codex-skill Repository topic
- codex-skills Repository topic
- marketplace Repository topic
- codex-marketplace Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 7,287 bytesreferences/boundary-smells.mddoc · 6,282 bytesreferences/code-review-checklist.mddoc · 4,160 bytesreferences/code-templates.mddoc · 33,784 bytesreferences/design-patterns.mddoc · 30,891 bytesreferences/domain-modeling.mddoc · 20,352 bytesreferences/layering-decision-matrix.mddoc · 4,255 bytesreferences/naming-conventions.mddoc · 13,589 bytesreferences/project-structure.mddoc · 21,512 bytesreferences/refactoring-guide.mddoc · 6,161 bytesreferences/testing-strategy.mddoc · 7,292 bytes
Read excerpt
# DDD Best Practices
## Overview
面向 Java / Spring Boot 项目的 DDD 落地指南,提供分层决策、领域建模、代码模板、测试策略、审查清单与重构路线图。
**Core principle:** 先判断复杂度与边界 -> 先收紧依赖与模型 -> 先补关键测试 -> 再按真实信号演进分层与模式。
**Announce at start:** "正在使用 ddd-best-practices skill 为你提供 DDD 架构指导。"
## Prerequisites
- 目标项目为 Java / Spring Boot 技术栈
- 非 Java 项目(Go / Python / Node)请勿使用本 skill