modernization-flow-grouping

modernization-flow-grouping is a command for Claude Code from griddynamics/rosetta. It costs 15 tokens per session (658 once invoked), scanned A, original, Apache-2.0.

A phase for grouping closely connected classes in an older software project into larger areas of responsibility. It traces how these groups share data, depend on one another, and exchange information.

In plain words
What is it for?
Use it to identify cohesive class groups, define their boundaries, map flows between them, trace dependencies, and update the project's existing technical documentation.
Why use it?
Class-by-class analysis can miss the way related parts work together. Grouping them exposes tightly connected areas and makes larger system flows easier to understand before redesigning them.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it to identify cohesive class groups, define their boundaries, map flows between them, trace dependencies, and update the project's existing technical documentation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/griddynamics/rosetta/modernization-flow-grouping
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modernization-flow-grouping

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow-grouping/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow-grouping)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow-grouping"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow-grouping/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modernization-flow-grouping

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow-grouping"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow-grouping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 658 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00658
Opus 5.5 $0.00006 $0.00263
Sonnet 5.5 $0.00003 $0.00132
Haiku 4.5 $0.00002 $0.00066

Measured 1mo ago against content hash f03d6e836529, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modernization-flow-grouping scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/core-copilot-light/commands/modernization-flow-grouping.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 81 lines · 15 tokens per session scan A f03d6e836529

Subscribe to this mod's changes

modernization-flow-grouping is a command published in the GitHub repository griddynamics/rosetta (363 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 658 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.