decomposition-planning-roadmap
它能做什么
这个技能让 AI 为把大型应用拆分成较小服务的工作制定分阶段的迁移路线图。适合需要清晰工作顺序,并希望有办法跟踪进展的技术负责人。
适用场景
- ✓当你想知道应该先分离大型应用的哪一部分时。
- ✓当你计划把一个大型应用迁移为多个服务时。
- ✓当你想跟踪一个拆分项目进行到了哪一步时。
技能链接
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/decomposition-planning-roadmap/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请制定分阶段计划,把我们的应用拆分为服务,并从风险最低的部分开始。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会审阅组件清单,按风险和价值对工作排序,把它们按依赖关系分组为不同阶段,并为每个阶段编写用户故事和成功检查项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Decomposition Planning and Roadmap
This skill creates structured decomposition plans and roadmaps to guide the migration from monolithic to distributed architectures, prioritizing work and tracking progress through decomposition patterns.
How to Use
Quick Start
Request creation of a decomposition plan:
- "Create a decomposition roadmap for this codebase"
- "Plan the decomposition migration strategy"
- "Prioritize decomposition work based on component analysis"
- "Create a step-by-step decomposition plan"
Usage Examples
Example 1: Complete Roadmap
User: "Create a decomposition roadmap for this codebase"
The skill will:
1. Analyze current codebase state
2. Identify decomposition patterns to apply
3. Prioritize work based on risk and value
4. Create phased roadmap
5. Generate architecture stories
6. Estimate effort and dependencies
Example 2: Prioritized Plan
User: "Prioritize decomposition work based on component analysis"
The skill will:
1. Review component inventory and dependencies
2. Assess risk and value for each pattern
3. Prioritize patterns by impact
4. Create prioritized work plan
Example 3: Phase Planning
User: "Create a phased decomposition plan"
The skill will:
1. Group decomposition patterns into phases
2. Identify dependencies between phases
3. Create phase timeline
4. Define phase success criteria
Step-by-Step Process
- Assess Current State: Analyze codebase and identify what's been done
- Identify Patterns: Determine which decomposition patterns to apply
- Prioritize Work: Rank patterns by risk, value, and dependencies
- Create Roadmap: Build phased plan with milestones
- Generate Stories: Create architecture stories for tracking
- Track Progress: Monitor progress through decomposition phases
When to Use
Apply this skill when:
- Starting a decomposition effort
- Planning migration from monolith to distributed architecture
- Prioritizing decomposition work
- Creating architecture stories for decomposition
- Tracking progress through decomposition patterns
- Need structured approach to decomposition
- Want to estimate effort and dependencies
Core Concepts
Decomposition Pattern Sequence
The six component-based decomposition patterns should be applied in sequence:
- Identify and Size Components - Understand what you have
- Gather Common Domain Components - Find duplicates
- Flatten Components - Remove orphaned classes
- Determine Component Dependencies - Assess coupling
- Create Component Domains - Group into domains
- Create Domain Services - Extract to services
Phased Approach
Decomposition typically follows phases:
Phase 1: Analysis & Preparation (Patterns 1-4)
- Component identification and sizing
- Common component detection
- Component flattening
- Dependency analysis
Phase 2: Domain Organization (Pattern 5)
- Domain identification
- Component grouping
- Namespace refactoring
Phase 3: Service Extraction (Pattern 6)
- Domain service creation
- Service extraction
- API boundary definition
Prioritization Factors
When prioritizing decomposition work, consider:
- Risk: Low risk = easier to extract, fewer dependencies
- Value: High value = business-critical, high impact
- Dependencies: Can this be done independently?
- Complexity: Simple = fewer components, clear boundaries
- Coupling: Low coupling = easier to extract
Analysis Process
Phase 1: Assess Current State
Analyze what's already been done:
Check Component Inventory
- Have components been identified and sized?
- Is there a component inventory document?
- Are oversized components identified?
Check Common Component Analysis
- Have common domain components been identified?
- Are consolidation opportunities documented?
- Has coupling impact been analyzed?
Check Component Structure
- Have components been flattened?
- Are there orphaned classes?
- Is component structure clean?
Check Dependency Analysis
- Have component dependencies been mapped?
- Is coupling analysis complete?
- Is feasibility assessed?
Check Domain Identification
- Have domains been identified?
- Are components grouped into domains?
- Are namespaces aligned with domains?
Check Service Extraction
- Have any services been extracted?
- Are domain services created?
- Is se
常见问题
它会自己开始迁移吗?
不会。它只制定计划和路线图,由你的团队去执行。
它会估算工作量吗?
会。它会估算每个步骤的工作量和依赖关系。
我应该在领域分析之前运行它吗?
通常应先使用各自的技能完成领域分析和组件规模评估,因为这个计划建立在它们的结果之上。
详情
作者的原始描述
Creates step-by-step decomposition plans and migration roadmaps for breaking apart monolithic applications. Use when asking "what order should I extract services?", "plan my migration", "create a decomposition roadmap", "prioritize what to split", "monolith to microservices strategy", or tracking decomposition progress. Do NOT use for domain analysis (use domain-analysis) or component sizing (use component-identification-sizing).
热度
- GitHub 星标
- 7.1k
- 排名
- #13503
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
component-common-domain-detection
7.1k帮你的智能体找出代码库中多个部分重复的业务逻辑,并建议如何合并。
component-flattening-analysis
7.1k帮你的智能体找出位置不当的代码,并整理杂乱的组件文件夹结构,让每个部分都放在应在的位置。
component-identification-sizing
7.1k帮你的智能体梳理代码库的各个组成部分并测量其规模,以找出应首先拆分的模块。
coupling-analysis
7.1k帮你的智能体检查代码库各部分之间的依赖有多紧密,并找出应优先放松的连接。