No slash command · from rosetta
Analyzes test architecture from a completed test plan, identifying reusable components and integration points. Produces a code-analysis report and a one-paragraph summary in the test plan.
Ships in rosetta. Installing the plugin adds it to Claude Code.
<ui_aqa_flow_code_analysis>
<description_and_purpose> Understand existing test architecture, identify reusable components, and determine where new test should be integrated. </description_and_purpose>
<workflow_context>
ui-aqa-flowplans/ui-aqa-<test-name>/code-analysis.md (resolve <test-name> per qa-structure's UI layout slug rules)## Code Analysis summary in the test plan. NO edits to page objects, test files, source under analysis, project_description.md, gain.json, or repo docs; NO running tests/lint/build. A finding that implies code work is surfaced in the report, not acted on.qa-knowledge (code_analysis mode), reverse-engineering (test-automation architecture analysis), sensitive-data (redaction), qa-structure (slug + report path)
</workflow_context><input_contract> The phase supplies these paths to the skill; defaults apply when not configured:
| Input | Default path | Required content |
|---|---|---|
| Test plan | plans/ui-aqa-<test-name>/test-plan.md | Test name + clarified assertions |
| Project setup | repository-root gain.json | SDLC configuration + any file-location overrides |
| Project description | project_description.md (repo root) | Framework, language, structure, coding standards — read when present |
| Project context | configured paths; canonical docs/CONTEXT.md, docs/ARCHITECTURE.md, agents/IMPLEMENTATION.md | Architecture and conventions — read when present |
| Optional user instructions | agents/user-instructions/ | Test guidelines, custom matchers, style |
| Optional frontend source | repo-specific (e.g. refsrc/<repo>/) | Component files for selector / test-id discovery |
| Output | plans/ui-aqa-<test-name>/code-analysis.md | The report (this phase's contract, below) |
Input GATE. Before analysis: test plan exists and is non-empty; project_description.md, gain.json, or one authoritative project-context file exists; codebase root is readable. Resolve file locations from gain.json, falling back to the canonical paths above. Any miss → stop Phase 3, record the gap in ui-aqa-state.md, ask the user. Do NOT infer framework from incidental file extensions.
Path/content precedence. gain.json wins for file locations. For engineering conventions, authoritative repo docs win over project_description.md, user-instruction files, and examples; record conflicts in ## Conflicts and Precedence.
</input_contract>
<code_analysis_report_contract>
plans/ui-aqa-<test-name>/code-analysis.md is tracked + downstream-fed — PUBLIC by default. USE SKILL sensitive-data: scan the rendered artifact BEFORE writing, fail-closed (no scan → no emit). The report's 9-section structure and the test-location decision rule are qa-knowledge's code-analysis report template — every section present (empty optional section says not available — see Coverage section).
After writing the report, update the test plan's ## Code Analysis section with a one-paragraph summary linking to it — do NOT duplicate report contents into the plan.
</code_analysis_report_contract>
<phase_steps>
<execute_analysis step="3.1" subagent="discoverer" role="Test architecture analyst">
qa-structure to resolve run paths. Run the <input_contract> Input GATE.reverse-engineering and USE SKILL qa-knowledge (code_analysis mode — test-automation architecture analysis) with the phase-supplied bindings: inputs + defaults = <input_contract>; report structure + test-location rule = the skill's code-analysis report template; output path = plans/ui-aqa-<test-name>/code-analysis.md. USE SKILL sensitive-data before writing.agents/user-instructions/ is absent or empty: record not available — see Coverage section in report section 2 and not available in section 9; Phase 3 continues, does not stop.gain.json/configured source reference, no refsrc/<repo>/): skip frontend analysis, record the gap in section 9 per the coverage epistemic-honesty rule; Phase 3 continues.<workflow_context>).## Code Analysis summary is added. If missing/incomplete: re-run once with the same bindings; if still failing, stop Phase 3, record Phase 3 blocked: code-analysis report not produced/incomplete in agents/TEMP/<FEATURE>/ui-aqa-state.md, ask the user.
</execute_analysis><validate_findings step="3.2">
project_description.md (when present), gain.json, and available configured project-context files read<update_state step="3.3">
agents/TEMP/<FEATURE>/ui-aqa-state.md:
<validation_checklist>
project_description.md, gain.json, or authoritative project-context file present; codebase readable)not available — see Coverage section)add-to-existing or new-file with rationale citing the template's test-location decision ruleavailable / not available — <impact> — no silent omissionrepo docs won, or None — sources consistent.)sensitive-data scan was executed against the rendered artifact before writing (fail-closed)## Code Analysis summary (read-only scope)plans/ui-aqa-<test-name>/code-analysis.md (<test-name> per qa-structure), non-empty; test plan summary added
</validation_checklist></ui_aqa_flow_code_analysis>
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub griddynamics/rosetta --plugin rosetta70 commands in this plugin
/api-aqa-flow-data-collectionPhase 1 Data Collection of api-aqa-flow2 plugins in one repository ship this exact command · first indexed Aug 20, 2026
Other plugins' commands for the same job