/rosetta-light:code-analysis-flowfrom rosetta-light
Reverse-engineers a codebase into grounded architecture docs and requirements. Classifies codebase size, delegates analysis, partitions large workspaces, gates unknowns through questioning, and optionally extracts requirements.
Ships in rosetta-light. Installing the plugin adds it to Claude Code.
<code_analysis_flow>
<description_and_purpose>
Problem: Code analysis degrades into transcription, drifts into suggestions/refactors, or stalls when codebase exceeds single-agent context; assumptions and unknowns are silently adopted.
Solution: Thin, sequential workflow that classifies SMALL vs LARGE codebase, delegates analysis to the reverse-engineering skill, must partition LARGE codebases via large-workspace-handling, gates critical/high unknowns through questioning, and optionally extracts requirements via requirements-authoring. Grounded by links, HITL at unknowns and final review.
Validation: Output files exist under docs/<feature>/; every claim traces to code/docs; no generated or suggested implementation; open questions and assumptions are documented; state file reflects phase evidence.
</description_and_purpose>
<workflow_phases>
load-project-context, orchestration, hitllarge-workspace-handling.agents/TEMP/<FEATURE>/code-analysis-flow-state.md updated after each phase.best_practices for sizing and diagram rules./goal is set repeat phases 4-8 until goal is met.large-workspace-handling.requirements-authoringrequirements_branch and review (more agents - less scope each).<context_load phase="1" applies="ALL" subagent="discoverer" role="Context gatherer for analysis scope" subagent_required_model="claude-sonnet-5-5">
docs/CONTEXT.md, docs/ARCHITECTURE.md, agents/IMPLEMENTATION.md; grep headers of docs/CODEMAP.md, docs/TECHSTACK.md, docs/DEPENDENCIES.md if present.load-project-contextcode-analysis-flow-state.md.</context_load>
<scope_and_classify phase="2" applies="ALL" subagent="discoverer" role="Scope and size scanner" subagent_required_model="claude-sonnet-5-5">
scope (paths), size (SMALL|LARGE), module-list (LARGE only).reasoningcode-analysis-flow-state.md.</scope_and_classify>
<clarify_unknowns phase="3" applies="ALL" type="HITL">
questioningcode-analysis-flow-state.md.</clarify_unknowns>
<requirements_branch phase="4" applies="ALL" when="user requested requirements reverse-engineering" subagent="architect" role="Requirements engineer extracting intent from code" subagent_required_model="claude-opus-5-5">
reverse-engineering skill to distill intent, then requirements-authoring skill to produce atomic, testable functional and non-functional requirements with SMART, MECE, acceptance criteria, EARS phrasing, priority (MoSCoW), and predecessors.docs/REQUIREMENTS/ per requirements-authoring layout, with HITL per-unit approval owned by that skill.reverse-engineering, requirements-authoringcode-analysis-flow-state.md.large-workspace-handling (Summarization & Indexing strategy): every file belongs to exactly one scope; subagents analyze per-module in parallel.</requirements_branch>
<analyze_small phase="5" applies="SMALL" subagent="architect" role="Senior systems analyst producing a single grounded analysis document" subagent_required_model="claude-opus-5-5">
docs/<feature>/analysis.md.reverse-engineeringcode-analysis-flow-state.md.</analyze_small>
<analyze_large_parallel phase="6" applies="LARGE" subagent="architect" role="Per-module systems analyst (parallel dispatch)" subagent_required_model="claude-opus-5-5">
large-workspace-handling (Summarization & Indexing strategy): every file belongs to exactly one scope; subagents analyze per-module in parallel.module-list + scope + context. Output: docs/<feature>/module-<module>.md per module.large-workspace-handling, reverse-engineeringcode-analysis-flow-state.md.</analyze_large_parallel>
docs/<feature>/summary.md with: Business context (processes/scenarios with involved components and Mermaid diagrams), Domain description (data models with business purpose and cross-repo physical references), Detailed analysis (per repository/component: tech stack, features, dependencies), Architecture insights (patterns and conventions), Dependency map (Mermaid at component and subcomponent level).module-<module>.md documents. Output: docs/<feature>/summary.md.reverse-engineeringcode-analysis-flow-state.md.reasoningcode-analysis-flow-state.md.<user_review phase="9" applies="ALL" type="HITL">
analyze_small, analyze_large_parallel, summarize, or requirements_branch).</user_review>
IMPLEMENTATION.md with a brief pointer to produced analysis artifacts.code-analysis-flow-state.md complete with phase evidence and artifact paths.</workflow_phases>
<best_practices>
reverse-engineering pitfalls.</best_practices>
<validation_checklist>
analysis.md; LARGE → module-*.md + summary.md).code-analysis-flow-state.md has artifact evidence for every executed phase.docs/REQUIREMENTS/ artifacts only when the user requested it.docs/REQUIREMENTS/INDEX.md is greppable by headers, which provides automatic ToC for all requirement files with short description.</validation_checklist>
</code_analysis_flow>
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub griddynamics/rosetta --plugin rosetta-light70 commands in this plugin
/adhoc-flowWorkflow for the rest of tasks: lightweight documentation, build, track, synchronize, etc./api-aqa-flowWorkflow for backend API test automation: TMS / Issue Tracker test cases → automated API tests, HITL-gated./api-aqa-flow-api-spec-analysisPhase 2 API Spec Analysis of api-aqa-flow/api-aqa-flow-data-collectionPhase 1 Data Collection of api-aqa-flow/api-aqa-flow-execution-and-report-analysisPhase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED)/api-aqa-flow-gap-and-requirements-clarificationPhase 3 Gap & Requirements Clarification of api-aqa-flow (USER INTERACTION REQUIRED)2 plugins in one repository ship this exact command · first indexed Oct 14, 2026
Other plugins' commands for the same job