← ClaudeAtlas

ddd-strategic-designlisted

Use when starting new projects, designing system architecture, identifying bounded contexts, mapping context relationships, system refactoring, system redesign, or when user mentions 'DDD', 'domain-driven design', 'bounded context', 'context mapping', 'microservices design', 'business modeling', 'system boundaries', 'domain thinking', '领域思维', '领域驱动', '重构项目', '重构系统', '重新设计系统', '优化重构系统'.
konglong87/methodology-skills · ★ 4 · AI & Automation · score 81
Install: claude install-skill konglong87/methodology-skills
# Domain-Driven Design: Strategic Design ## 前置协议 ### 环境检测 ```bash # 检测当前项目信息 PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "unknown") BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown") COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown") echo "PROJECT: $PROJECT_ROOT" echo "BRANCH: $BRANCH" echo "COMMIT: $COMMIT" ``` ### 前置技能检查 **benefits-from 检查**(推荐但非必须): ```bash # 检查 goal-oriented 工件 GOAL_ARTIFACT="memory/artifacts/goal-oriented/latest.json" if [ -f "$GOAL_ARTIFACT" ]; then echo "FOUND: goal-oriented artifact" # 提取目标信息,确保设计符合目标 fi # 检查 first-principles 工件 FP_ARTIFACT="memory/artifacts/first-principles/latest.json" if [ -f "$FP_ARTIFACT" ]; then echo "FOUND: first-principles artifact" # 提取第一性原理分析结果,用于指导设计 fi ``` **工件目录初始化**: ```bash # 确保工件目录存在 mkdir -p memory/artifacts/ddd-strategic ``` ### 用户意图确认 根据用户消息判断: **检查点**: - [ ] 是否需要设计新系统或重构现有系统 - [ ] 是否涉及多个业务领域或团队 - [ ] 是否需要识别系统边界和上下文关系 **意图分类**: 1. **新系统设计**:从零开始设计系统架构 2. **系统重构**:将单体拆分为微服务 3. **架构优化**:重新梳理上下文边界 4. **业务建模**:梳理业务领域 ## Overview Strategic design focuses on defining bounded contexts and their relationships. A bounded context is a boundary within which a domain model is defined and applicable. Inside the boundary, all terms, rules, and logic have a specific, consistent meaning. Different contexts may use the same terms with different meanings. **Why it matters:** Without clear boundaries, teams talk past each other. "Customer" means something d