decomposition-planning-roadmap by tech-leads-club/agent-skills
npx skills add https://github.com/tech-leads-club/agent-skills --skill decomposition-planning-roadmap此技能创建结构化的分解计划和路线图,以指导从单体架构向分布式架构的迁移,通过分解模式确定工作优先级并跟踪进度。
请求创建分解计划:
示例 1:完整路线图
User: "为此代码库创建分解路线图"
该技能将:
1. 分析当前代码库状态
2. 确定要应用的分解模式
3. 基于风险和价值确定工作优先级
4. 创建分阶段路线图
5. 生成架构故事
6. 估算工作量和依赖关系
示例 2:优先级计划
User: "基于组件分析确定分解工作的优先级"
该技能将:
1. 审查组件清单和依赖关系
2. 评估每种模式的风险和价值
3. 按影响对模式进行优先级排序
4. 创建优先级工作计划
示例 3:阶段规划
User: "创建分阶段分解计划"
该技能将:
1. 将分解模式分组到各个阶段
2. 识别阶段间的依赖关系
3. 创建阶段时间线
4. 定义阶段成功标准
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在以下情况下应用此技能:
六种基于组件的分解模式应按顺序应用:
分解通常遵循以下阶段:
阶段 1:分析与准备 (模式 1-4)
阶段 2:领域组织 (模式 5)
阶段 3:服务提取 (模式 6)
确定分解工作优先级时,请考虑:
分析已完成的工作:
检查组件清单
检查公共组件分析
检查组件结构
检查依赖关系分析
检查领域识别
检查服务提取
输出 :显示已完成和剩余工作的当前状态评估
确定需要应用哪些分解模式:
审查模式先决条件
检查模式完成情况
识别缺失的模式
输出 :包含状态的要应用模式列表
确定分解模式和工作项的优先级:
评估风险
评估价值
评估依赖关系
计算优先级分数
Priority = (Value × 3) - (Risk × 2) - (Dependencies × 1)
分数越高 = 优先级越高
输出 :优先级排序的模式和工作项列表
构建包含里程碑的分阶段路线图:
定义阶段
将模式分配到阶段
设定里程碑
估算时间线
输出 :包含时间线和里程碑的分阶段路线图
创建用于跟踪工作的架构故事:
创建故事模板
As an architect, I need to [apply pattern/refactor component]
to support [architectural characteristic/business need]
so that [benefit/outcome]
分解工作
添加验收标准
估算工作量
输出 :包含估算的架构故事列表
通过分解监控进度:
跟踪模式完成情况
跟踪故事完成情况
跟踪指标
识别阻塞因素
输出 :进度仪表板和状态报告
# Decomposition Roadmap
## Current State Assessment
**Completed Patterns**:
- ✅ Pattern 1: Identify and Size Components
- ✅ Pattern 2: Gather Common Domain Components
- ⚠️ Pattern 3: Flatten Components (in progress)
- ❌ Pattern 4: Determine Component Dependencies (not started)
- ❌ Pattern 5: Create Component Domains (not started)
- ❌ Pattern 6: Create Domain Services (not started)
**Key Findings**:
- 75 components identified
- 3 common domain components found
- 2 oversized components need splitting
- High database coupling detected
## Phased Roadmap
### Phase 1: Analysis & Preparation (Weeks 1-4)
**Goal**: Complete component analysis and refactoring
**Patterns**:
1. Complete Pattern 3: Flatten Components
2. Apply Pattern 4: Determine Component Dependencies
3. Refactor oversized components
**Milestones**:
- Week 2: Component flattening complete
- Week 4: Dependency analysis complete
**Deliverables**:
- Flattened component structure
- Dependency diagram
- Feasibility assessment
### Phase 2: Domain Organization (Weeks 5-8)
**Goal**: Organize components into domains
**Patterns**:
1. Apply Pattern 5: Create Component Domains
2. Refactor namespaces for domain alignment
**Milestones**:
- Week 6: Domains identified
- Week 8: Namespace refactoring complete
**Deliverables**:
- Domain map
- Refactored component namespaces
- Domain documentation
### Phase 3: Service Extraction (Weeks 9-16)
**Goal**: Extract domains to domain services
**Patterns**:
1. Apply Pattern 6: Create Domain Services
2. Extract services incrementally
**Milestones**:
- Week 12: First domain service extracted
- Week 16: All domain services extracted
**Deliverables**:
- Domain services deployed
- API boundaries defined
- Service documentation
## Prioritized Work Plan
### High Priority (Do First)
1. **Complete Component Flattening** (Priority: 9/10)
- Risk: Low
- Value: High (enables domain grouping)
- Dependencies: None
- Effort: 2 weeks
2. **Dependency Analysis** (Priority: 8/10)
- Risk: Low
- Value: High (validates feasibility)
- Dependencies: Component flattening
- Effort: 1 week
### Medium Priority (Do Next)
3. **Domain Identification** (Priority: 7/10)
- Risk: Medium
- Value: High (enables service extraction)
- Dependencies: Dependency analysis
- Effort: 2 weeks
### Low Priority (Do Later)
4. **Service Extraction** (Priority: 5/10)
- Risk: High
- Value: High (final goal)
- Dependencies: Domain identification
- Effort: 8 weeks
## Architecture Stories
### Story 1: Flatten Ticket Components
**As an architect**, I need to flatten the Ticket component hierarchy
to support better component organization
so that components exist only as leaf nodes.
**Acceptance Criteria**:
- [ ] No orphaned classes in root namespaces
- [ ] All components are leaf nodes
- [ ] Component structure validated
**Estimate**: 5 story points
**Priority**: High
**Dependencies**: None
### Story 2: Identify Component Domains
**As an architect**, I need to group components into logical domains
to support service-based architecture
so that components can be extracted to domain services.
**Acceptance Criteria**:
- [ ] All components assigned to domains
- [ ] Domain boundaries validated with stakeholders
- [ ] Domain map created
**Estimate**: 8 story points
**Priority**: High
**Dependencies**: Component flattening complete
## Decomposition Progress Dashboard
### Pattern Completion Status
| Pattern | Status | Progress | Blocker |
| -------------------------- | -------------- | -------- | ----------------------- |
| Identify & Size Components | ✅ Complete | 100% | None |
| Gather Common Components | ✅ Complete | 100% | None |
| Flatten Components | ⚠️ In Progress | 60% | None |
| Determine Dependencies | ❌ Not Started | 0% | Waiting on flattening |
| Create Domains | ❌ Not Started | 0% | Waiting on dependencies |
| Create Domain Services | ❌ Not Started | 0% | Waiting on domains |
### Story Completion Status
**Completed**: 5 stories (25%)
**In Progress**: 3 stories (15%)
**Not Started**: 12 stories (60%)
### Key Metrics
- Components Identified: 75
- Components Refactored: 45 (60%)
- Domains Created: 0
- Services Extracted: 0
当前状态评估 :
模式识别 :
优先级确定 :
路线图创建 :
故事生成 :
进度跟踪 :
简单路线图 (适用于小型项目):
详细路线图 (适用于大型项目):
使用 2x2 矩阵确定优先级:
High Value, Low Risk | High Value, High Risk
(Do First) | (Do Carefully)
────────────────────────┼──────────────────────
Low Value, Low Risk | Low Value, High Risk
(Do Later) | (Avoid/Defer)
使用故事点或时间估算:
故事点 (斐波那契数列):
时间估算 :
此技能协调其他分解技能的使用:
创建路线图后:
每周安装量
76
代码仓库
GitHub 星标数
1.8K
首次出现
Feb 7, 2026
安全审计
安装于
opencode74
codex73
gemini-cli73
github-copilot73
kimi-cli70
cursor70
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.
Request creation of a decomposition plan:
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
Apply this skill when:
The six component-based decomposition patterns should be applied in sequence:
Decomposition typically follows phases:
Phase 1: Analysis & Preparation (Patterns 1-4)
Phase 2: Domain Organization (Pattern 5)
Phase 3: Service Extraction (Pattern 6)
When prioritizing decomposition work, consider:
Analyze what's already been done:
Check Component Inventory
Check Common Component Analysis
Check Component Structure
Check Dependency Analysis
Check Domain Identification
Check Service Extraction
Output : Current state assessment showing what's done and what's remaining
Determine which decomposition patterns need to be applied:
Review Pattern Prerequisites
Check Pattern Completion
Identify Missing Patterns
Output : List of patterns to apply with status
Prioritize decomposition patterns and work items:
Assess Risk
Assess Value
Assess Dependencies
Calculate Priority Score
Priority = (Value × 3) - (Risk × 2) - (Dependencies × 1)
Higher score = Higher priority
Output : Prioritized list of patterns and work items
Build a phased roadmap with milestones:
Define Phases
Assign Patterns to Phases
Set Milestones
Estimate Timeline
Output : Phased roadmap with timeline and milestones
Create architecture stories for tracking work:
Create Story Template
As an architect, I need to [apply pattern/refactor component]
to support [architectural characteristic/business need]
so that [benefit/outcome]
Break Down Work
Add Acceptance Criteria
Estimate Effort
Output : List of architecture stories with estimates
Monitor progress through decomposition:
Track Pattern Completion
Track Story Completion
Track Metrics
Identify Blockers
Output : Progress dashboard and status report
# Decomposition Roadmap
## Current State Assessment
**Completed Patterns**:
- ✅ Pattern 1: Identify and Size Components
- ✅ Pattern 2: Gather Common Domain Components
- ⚠️ Pattern 3: Flatten Components (in progress)
- ❌ Pattern 4: Determine Component Dependencies (not started)
- ❌ Pattern 5: Create Component Domains (not started)
- ❌ Pattern 6: Create Domain Services (not started)
**Key Findings**:
- 75 components identified
- 3 common domain components found
- 2 oversized components need splitting
- High database coupling detected
## Phased Roadmap
### Phase 1: Analysis & Preparation (Weeks 1-4)
**Goal**: Complete component analysis and refactoring
**Patterns**:
1. Complete Pattern 3: Flatten Components
2. Apply Pattern 4: Determine Component Dependencies
3. Refactor oversized components
**Milestones**:
- Week 2: Component flattening complete
- Week 4: Dependency analysis complete
**Deliverables**:
- Flattened component structure
- Dependency diagram
- Feasibility assessment
### Phase 2: Domain Organization (Weeks 5-8)
**Goal**: Organize components into domains
**Patterns**:
1. Apply Pattern 5: Create Component Domains
2. Refactor namespaces for domain alignment
**Milestones**:
- Week 6: Domains identified
- Week 8: Namespace refactoring complete
**Deliverables**:
- Domain map
- Refactored component namespaces
- Domain documentation
### Phase 3: Service Extraction (Weeks 9-16)
**Goal**: Extract domains to domain services
**Patterns**:
1. Apply Pattern 6: Create Domain Services
2. Extract services incrementally
**Milestones**:
- Week 12: First domain service extracted
- Week 16: All domain services extracted
**Deliverables**:
- Domain services deployed
- API boundaries defined
- Service documentation
## Prioritized Work Plan
### High Priority (Do First)
1. **Complete Component Flattening** (Priority: 9/10)
- Risk: Low
- Value: High (enables domain grouping)
- Dependencies: None
- Effort: 2 weeks
2. **Dependency Analysis** (Priority: 8/10)
- Risk: Low
- Value: High (validates feasibility)
- Dependencies: Component flattening
- Effort: 1 week
### Medium Priority (Do Next)
3. **Domain Identification** (Priority: 7/10)
- Risk: Medium
- Value: High (enables service extraction)
- Dependencies: Dependency analysis
- Effort: 2 weeks
### Low Priority (Do Later)
4. **Service Extraction** (Priority: 5/10)
- Risk: High
- Value: High (final goal)
- Dependencies: Domain identification
- Effort: 8 weeks
## Architecture Stories
### Story 1: Flatten Ticket Components
**As an architect**, I need to flatten the Ticket component hierarchy
to support better component organization
so that components exist only as leaf nodes.
**Acceptance Criteria**:
- [ ] No orphaned classes in root namespaces
- [ ] All components are leaf nodes
- [ ] Component structure validated
**Estimate**: 5 story points
**Priority**: High
**Dependencies**: None
### Story 2: Identify Component Domains
**As an architect**, I need to group components into logical domains
to support service-based architecture
so that components can be extracted to domain services.
**Acceptance Criteria**:
- [ ] All components assigned to domains
- [ ] Domain boundaries validated with stakeholders
- [ ] Domain map created
**Estimate**: 8 story points
**Priority**: High
**Dependencies**: Component flattening complete
## Decomposition Progress Dashboard
### Pattern Completion Status
| Pattern | Status | Progress | Blocker |
| -------------------------- | -------------- | -------- | ----------------------- |
| Identify & Size Components | ✅ Complete | 100% | None |
| Gather Common Components | ✅ Complete | 100% | None |
| Flatten Components | ⚠️ In Progress | 60% | None |
| Determine Dependencies | ❌ Not Started | 0% | Waiting on flattening |
| Create Domains | ❌ Not Started | 0% | Waiting on dependencies |
| Create Domain Services | ❌ Not Started | 0% | Waiting on domains |
### Story Completion Status
**Completed**: 5 stories (25%)
**In Progress**: 3 stories (15%)
**Not Started**: 12 stories (60%)
### Key Metrics
- Components Identified: 75
- Components Refactored: 45 (60%)
- Domains Created: 0
- Services Extracted: 0
Current State Assessment :
Pattern Identification :
Prioritization :
Roadmap Creation :
Story Generation :
Progress Tracking :
Simple Roadmap (for small projects):
Detailed Roadmap (for large projects):
Use a 2x2 matrix for prioritization:
High Value, Low Risk | High Value, High Risk
(Do First) | (Do Carefully)
────────────────────────┼──────────────────────
Low Value, Low Risk | Low Value, High Risk
(Do Later) | (Avoid/Defer)
Use story points or time estimates:
Story Points (Fibonacci):
Time Estimates :
This skill coordinates the use of other decomposition skills:
After creating the roadmap:
Weekly Installs
76
Repository
GitHub Stars
1.8K
First Seen
Feb 7, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode74
codex73
gemini-cli73
github-copilot73
kimi-cli70
cursor70
API设计指南:REST/GraphQL设计原则、规范文档与版本控制策略
11,500 周安装