Decomposition planning roadmap

From diegosouzapw/awesome-omni-skills · View interactive version

Decomposition planning roadmap is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skills. Decomposition Planning and Roadmap workflow skill. Use this skill when the user needs 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

How to use this skill

Skill file

Decomposition Planning and Roadmap

Overview

This public intake copy packages packages/skills-catalog/skills/(architecture)/decomposition-planning-roadmap from https://github.com/tech-leads-club/agent-skills into the native Omni Skills editorial shape without hiding its origin.

Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.

This intake keeps the copied upstream files intact and uses the external_source block in metadata.json plus ORIGIN.md as the provenance anchor for review.

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.

Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: How to Use, Core Concepts, Output Format, Current State Assessment, Phased Roadmap, Prioritized Work Plan.

When to Use This Skill

Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.

Operating Table

| Situation | Start here | Why it matters |

| --- | --- | --- |

| First-time use | metadata.json | Confirms repository, branch, commit, and imported path through the external_source block before touching the copied workflow |

| Provenance review | ORIGIN.md | Gives reviewers a plain-language audit trail for the imported source |

| Workflow execution | QUICK-REFERENCE.md | Starts with the smallest copied file that materially changes execution |

| Supporting context | README.md | Adds the next most relevant copied source file without loading the entire package |

| Handoff decision | ## Related Skills | Helps the operator switch to a stronger native skill when the task drifts |

Workflow

This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.

  1. Check Component Inventory
  2. Have components been identified and sized?
  3. Is there a component inventory document?
  4. Are oversized components identified?
  5. Check Common Component Analysis
  6. Have common domain components been identified?
  7. Are consolidation opportunities documented?

Imported Workflow Notes

Imported: Analysis Process

Phase 1: Assess Current State

Analyze what's already been done:

  1. Check Component Inventory
  1. Check Common Component Analysis
  1. Check Component Structure
  1. Check Dependency Analysis
  1. Check Domain Identification
  1. Check Service Extraction

Output: Current state assessment showing what's done and what's remaining

Phase 2: Identify Patterns to Apply

Determine which decomposition patterns need to be applied:

  1. Review Pattern Prerequisites
  1. Check Pattern Completion
  1. Identify Missing Patterns

Output: List of patterns to apply with status

Phase 3: Prioritize Work

Prioritize decomposition patterns and work items:

  1. Assess Risk
  1. Assess Value
  1. Assess Dependencies
  1. Calculate Priority Score

```

Priority = (Value × 3) - (Risk × 2) - (Dependencies × 1)

Higher score = Higher priority

```

Output: Prioritized list of patterns and work items

Phase 4: Create Phased Roadmap

Build a phased roadmap with milestones:

  1. Define Phases
  1. Assign Patterns to Phases
  1. Set Milestones
  1. Estimate Timeline

Output: Phased roadmap with timeline and milestones

Phase 5: Generate Architecture Stories

Create architecture stories for tracking work:

  1. Create Story Template

```

As an architect, I need to [apply pattern/refactor component]

to support [architectural characteristic/business need]

so that [benefit/outcome]

```

  1. Break Down Work
  1. Add Acceptance Criteria
  1. Estimate Effort

Output: List of architecture stories with estimates

Phase 6: Track Progress

Monitor progress through decomposition:

  1. Track Pattern Completion
  1. Track Story Completion
  1. Track Metrics
  1. Identify Blockers

Output: Progress dashboard and status report

Imported: Next Steps

After creating the roadmap:

  1. Review with Stakeholders - Get buy-in on plan
  2. Start Phase 1 - Begin with analysis patterns
  3. Track Progress - Monitor completion and blockers
  4. Adjust as Needed - Update roadmap based on learnings
  5. Celebrate Milestones - Recognize progress
Imported: How to Use

Quick Start

Request creation of a 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

  1. Assess Current State: Analyze codebase and identify what's been done
  2. Identify Patterns: Determine which decomposition patterns to apply
  3. Prioritize Work: Rank patterns by risk, value, and dependencies
  4. Create Roadmap: Build phased plan with milestones
  5. Generate Stories: Create architecture stories for tracking
  6. Track Progress: Monitor progress through decomposition phases

Examples

Example 1: Ask for the upstream workflow directly

Use @decomposition-planning-roadmap to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.

Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.

Example 2: Ask for a provenance-grounded review

Review @decomposition-planning-roadmap against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.

Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.

Example 3: Narrow the copied support files before execution

Use @decomposition-planning-roadmap for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.

Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.

Example 4: Build a reviewer packet

Review @decomposition-planning-roadmap using the copied upstream files plus provenance, then summarize any gaps before merge.

Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.

Best Practices

Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.

Imported Operating Notes

Imported: Best Practices

Do's ✅

Don'ts ❌

Troubleshooting

Problem: The operator skipped the imported context and answered too generically

Symptoms: The result ignores the upstream workflow in packages/skills-catalog/skills/(architecture)/decomposition-planning-roadmap, fails to mention provenance, or does not use any copied source files at all.

Solution: Re-open metadata.json, ORIGIN.md, and the most relevant copied upstream files. Check the external_source block first, then restate the provenance before continuing.

Problem: The imported workflow feels incomplete during review

Symptoms: Reviewers can see the generated SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.

Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.

Problem: The task drifted into a different specialization

Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better.

Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.

Related Skills

Additional Resources

Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.

| Resource family | What it gives the reviewer | Example path |

| --- | --- | --- |

| references | copied reference notes, guides, or background material from upstream | references/n/a |

| examples | worked examples or reusable prompts copied from upstream | examples/n/a |

| scripts | upstream helper scripts that change execution or validation | scripts/n/a |

| agents | routing or delegation notes that are genuinely part of the imported package | agents/n/a |

| assets | supporting assets or schemas copied from the source package | assets/n/a |

Imported Reference Notes

Imported: Core Concepts

Decomposition Pattern Sequence

The six component-based decomposition patterns should be applied in sequence:

  1. Identify and Size Components - Understand what you have
  2. Gather Common Domain Components - Find duplicates
  3. Flatten Components - Remove orphaned classes
  4. Determine Component Dependencies - Assess coupling
  5. Create Component Domains - Group into domains
  6. Create Domain Services - Extract to services

Phased Approach

Decomposition typically follows phases:

Phase 1: Analysis & Preparation (Patterns 1-4)

Phase 2: Domain Organization (Pattern 5)

Phase 3: Service Extraction (Pattern 6)

Prioritization Factors

When prioritizing decomposition work, consider:

Imported: Output Format

Decomposition Roadmap

# Decomposition Roadmap

#### Imported: 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

#### Imported: 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


#### Imported: 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


#### Imported: 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

Progress Dashboard


#### Imported: 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
Imported: Analysis Checklist

Current State Assessment:

Pattern Identification:

Prioritization:

Roadmap Creation:

Story Generation:

Progress Tracking:

Imported: Implementation Notes

Roadmap Templates

Simple Roadmap (for small projects):

Detailed Roadmap (for large projects):

Prioritization Matrix

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)

Story Estimation

Use story points or time estimates:

Story Points (Fibonacci):

Time Estimates:

Imported: Integration with Other Skills

This skill coordinates the use of other decomposition skills:

  1. Component Identification & Sizing → Foundation for planning
  2. Common Domain Component Detection → Identifies consolidation work
  3. Component Flattening → Prepares for domain grouping
  4. Component Dependency Analysis → Validates feasibility
  5. Domain Identification & Grouping → Enables service extraction
  6. Decomposition Planning & Roadmap (this skill) → Coordinates everything
Imported: Notes
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.