/modernization-flow-grouping
Phase 4 Class Grouping of modernization-flow
> /plugin marketplace add griddynamics/rosetta > /plugin install rosetta@rosetta
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/modernization-flow-grouping
Context preview
What this command does when you run it.
Phase 4 Class Grouping of modernization-flow
Command definition
modernization-flow-grouping.mdname: modernization-flow-grouping
description: "Phase 4 Class Grouping of modernization-flow"
alwaysApply: false
disable-model-invocation: true
user-invocable: false
baseSchema: docs/schemas/phase.md
Modernization Phase 4: Class Group Analysis
Phase Flow
**Phase 4: Class Group Analysis** 1. Complete Phase 2 (or Phase 3 if executed) first 2. Identify tightly-coupled classes 3. Define bounded contexts 4. Map flows between groups 5. Trace dependencies deeply 6. Update original-code-specs files
Context
**PREREQUISITES:** Complete Phase 2 (all original code specs created), and Phase 3 if executed
**OBJECTIVES:**
- Identify tightly-coupled classes (bounded contexts)
- Map flows between class groups
- Trace dependencies deep (2-3 levels minimum)
- Connect cross class group flows
Requirements
- **MUST** treat each output file as a **SEPARATE TASK**
- **MUST** process each project separately
- **MUST** update the same `docs/original-code-specs-<lib/project>.md` file (append to existing)
- **MUST** place class group definitions at the top of the file
Define Class Groups
**IMPORTANT**: A **class group** is a collection of tightly-coupled classes that work together within a single project to provide a cohesive capability. Class groups are identified within bounded contexts and represent classes that:
- Share data or state (technical coupling)
- Provide related business functionality (business cohesion)
- Have frequent interactions and dependencies
- Form a natural unit within the project structure
For each class group, document:
- **Name**: Descriptive name for the class group
- **Classes**: List all classes in the group
- **Purpose**: What business/technical capability does this group provide?
- **Boundaries**: What defines the boundary of this group?
- **Internal Cohesion**: How are classes coupled within the group?
Map Flows
- **MUST** map flows between class groups
- **MUST** trace at least 2-3 steps deep
- **MUST** connect cross class group flows
- **MUST** identify dependencies and call chains
- **MUST** document flow direction and data passed
Evidence Required
- **MUST** reference all findings with evidence
- **MUST** provide grep/search results
- **MUST** include file paths and line numbers
- **MUST** show actual code references
Validation Checkpoint
MUST spawn separate subagent to validate grounding, truthfulness, gaps, consistency, reasoning, and overall completion of the phase.
After each class group analysis, validate (in memory! do not write this section!):
- [ ] Class group mappings supported by explicit findings (validate in 1-2 lines)
- [ ] Flows traced with evidence
- [ ] Dependencies clearly mapped
- [ ] Cross class group interactions identified
**DEPENDENTS:** Phase 5 (Cross-Project Analysis) depends on completion of all class group analyses
Read more
name: modernization-flow-grouping description: "Phase 4 Class Grouping of modernization-flow" alwaysApply: false disable-model-invocation: true user-invocable: false baseSchema: docs/schemas/phase.md
Modernization Phase 4: Class Group Analysis
Phase Flow
**Phase 4: Class Group Analysis** 1. Complete Phase 2 (or Phase 3 if executed) first 2. Identify tightly-coupled classes 3. Define bounded contexts 4. Map flows between groups 5. Trace dependencies deeply 6. Update original-code-specs files
Context
**PREREQUISITES:** Complete Phase 2 (all original code specs created), and Phase 3 if executed
**OBJECTIVES:**
- Identify tightly-coupled classes (bounded contexts)
- Map flows between class groups
- Trace dependencies deep (2-3 levels minimum)
- Connect cross class group flows
Requirements
- **MUST** treat each output file as a **SEPARATE TASK**
- **MUST** process each project separately
- **MUST** update the same `docs/original-code-specs-<lib/project>.md` file (append to existing)
- **MUST** place class group definitions at the top of the file
Define Class Groups
**IMPORTANT**: A **class group** is a collection of tightly-coupled classes that work together within a single project to provide a cohesive capability. Class groups are identified within bounded contexts and represent classes that:
- Share data or state (technical coupling)
- Provide related business functionality (business cohesion)
- Have frequent interactions and dependencies
- Form a natural unit within the project structure
For each class group, document:
- **Name**: Descriptive name for the class group
- **Classes**: List all classes in the group
- **Purpose**: What business/technical capability does this group provide?
- **Boundaries**: What defines the boundary of this group?
- **Internal Cohesion**: How are classes coupled within the group?
Map Flows
- **MUST** map flows between class groups
- **MUST** trace at least 2-3 steps deep
- **MUST** connect cross class group flows
- **MUST** identify dependencies and call chains
- **MUST** document flow direction and data passed
Evidence Required
- **MUST** reference all findings with evidence
- **MUST** provide grep/search results
- **MUST** include file paths and line numbers
- **MUST** show actual code references
Validation Checkpoint
MUST spawn separate subagent to validate grounding, truthfulness, gaps, consistency, reasoning, and overall completion of the phase.
After each class group analysis, validate (in memory! do not write this section!):
- [ ] Class group mappings supported by explicit findings (validate in 1-2 lines)
- [ ] Flows traced with evidence
- [ ] Dependencies clearly mapped
- [ ] Cross class group interactions identified
**DEPENDENTS:** Phase 5 (Cross-Project Analysis) depends on completion of all class group analyses
Repo: griddynamics/rosetta
Other commands on rosetta.
- /adhoc-flow
Workflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc.
Open command - /api-aqa-flow-api-spec-analysis
Phase 2 API Spec Analysis of api-aqa-flow
Open command - /api-aqa-flow-data-collection
Phase 1 Data Collection of api-aqa-flow
Open command - /api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED)
Open command - /api-aqa-flow-gap-and-requirements-clarification
Phase 3 Gap & Requirements Clarification of api-aqa-flow (USER INTERACTION REQUIRED)
Open command - /api-aqa-flow-project-config-loading
Phase 0 Project Config Loading of api-aqa-flow (USER INTERACTION CONDITIONALLY REQUIRED)
Open command

