modernization-flow-reuse

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

A phase for examining existing libraries that should be reused rather than modernized. It documents their behavior, interfaces, tests, dependencies, performance work, and how other code uses them.

In plain words
What is it for?
Use it to inventory reusable projects, study their source and unit tests, record interfaces and coverage, document unknowns, and prepare reference specifications.
Why use it?
Rewriting a library that already contains important optimizations can waste effort or reduce performance. This phase helps developers understand what must be preserved and where extensions may be safe.

Command for Claude Code

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

Good fit Use it to inventory reusable projects, study their source and unit tests, record interfaces and coverage, document unknowns, and prepare reference specifications.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/griddynamics/rosetta/modernization-flow-reuse
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-reuse

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow-reuse/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow-reuse)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow-reuse"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow-reuse/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-reuse

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/modernization-flow-reuse"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/modernization-flow-reuse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 905 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.00017 $0.00905
Opus 5.5 $0.00007 $0.00362
Sonnet 5.5 $0.00003 $0.00181
Haiku 4.5 $0.00002 $0.00090

Measured 2mo ago against content hash d0cc1e8d059a, 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-reuse 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 2mo 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/rosetta-copilot-light/commands/modernization-flow-reuse.md · 128 lines

How it starts

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

Modernization Phase 1: Existing Library Analysis

Phase Flow

Phase 1: Existing Library Analysis

  1. Process each project separately
  2. Analyze code and tests
  3. Create reference-code-specs files
  4. Document interfaces and signatures
  5. Document business and tech purpose
  6. Analyze usage and visibility
  7. List unknowns and assumptions
  8. Link implementation and tests
  9. Describe test coverage

Context

PREREQUISITES: None

OBJECTIVES:

  • Create complete, factual specification of existing code
  • Understand functionality, requirements, edge cases, and usage
  • Identify unknowns and create follow-up tasks
  • Use and rely on performance optimizations already applied (we must not downgrade!).
  • These project must not be modernized, but could be extended, and definitely must be reused!

Requirements

  • MUST process each project separately
  • MUST create docs/reference-code-specs-<lib/project>.md for each project
  • MUST analyze ALL code AND associated unit tests
  • MUST use search/grep/tools to discover all relevant details
  • MUST document findings with evidence (references to actual code)
  • MUST list all files and create todo tasks systematically

Address Edge Cases

Edge cases MUST be explicitly identified and documented:

  • Case sensitivity handling
  • Reference parameters and side effects
  • Out parameters
  • Null/undefined handling
  • Boundary conditions
  • Error conditions

Specification Contents (MANDATORY)

Each specification MUST include:

  1. Interfaces & Method Signatures & Enums & Other Code Constructs

    • Full signature with parameters, return types
    • Access modifiers (public, private, internal, protected)
    • Static vs instance
  2. Business/Technology Purpose

    • What does this code do?
    • Why does it exist?
    • What problem does it solve?
  3. Special Requirements & Edge Cases

    • Performance requirements
    • Threading/concurrency considerations
    • Transaction handling
    • Security requirements
    • Edge cases identified from tests

Read the full file on GitHub · 128 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. 2mo ago First seen · 128 lines · 17 tokens per session scan A d0cc1e8d059a

Subscribe to this mod's changes

modernization-flow-reuse is a command published in the GitHub repository griddynamics/rosetta (382 stars, last pushed 5d ago), licensed Apache-2.0. It adds 17 tokens to every session and 905 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.

Related

modernization-flow-reuse compared with commands from other repositories

modernization-flow-reuse next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernization-flow-reusegriddynamics/rosettaCommand3825d agoApache-2.0A17Claude Code
superskillpermanu/superskillCommand1920d agoApache-2.0A7Claude Code, OpenCode
alignaidemd-mcp/serverCommand4yesterdayMITA0Claude Code
deploy-checkcommerce-atoms/agentsCommand12mo agoMITA26Claude Code
xpoz-best-practicesXPOZpublic/xpoz-cursor-pluginCommand45mo agoMITA38Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code