No slash command · from rosetta
Analyzes Swagger/OpenAPI specs or codebase API definitions to extract endpoint contracts, auth requirements, and data dependencies. Part of a multi-phase API QA flow.
Ships in rosetta. Installing the plugin adds it to Claude Code.
<api_aqa_flow_api_spec_analysis>
<description_and_purpose> Analyze Swagger/OpenAPI specification or codebase API definitions to extract endpoint contracts, auth requirements, and data dependencies. </description_and_purpose>
<workflow_context>
api-aqa-flowplans/api-aqa-{IDENTIFIER}/api-analysis.md (resolve {IDENTIFIER} from agents/TEMP/<FEATURE>/api-aqa-state.md)raw-data.md exists with identified endpointsqa-knowledge (code_analysis mode — API-contract extraction; supplies the api-analysis skeleton), reverse-engineering (extraction engine of that mode), sensitive-data (redaction), qa-structure ({IDENTIFIER} + artifact path)
</workflow_context><input_contract> The phase supplies the skill two required inputs; the skill GATEs on both before any spec-location logic:
<phase_steps>
<determine_spec_source step="2.1">
Determine {backend-source-path} from Phase 1 raw data "Backend Source Code Analysis" section, or from project config "Backend Source Code" section, or from Rosetta docs at refsrc/{project-name}/docs/ (the backend-source scan lives in the data-collection phase's Backend Source Code Analysis section). If Rosetta docs exist for the backend project, read ARCHITECTURE.md and CODEMAP.md from refsrc/{project-name}/docs/ to understand API architecture before searching source code.
Determine spec source in order:
api-aqa-project-config.md){backend-source-path} configured):
{backend-source-path} for: swagger.json, swagger.yaml, openapi.json, openapi.yaml, api-docs{backend-source-path} is NOT configured, search entire codebase instead.{backend-source-path} configured):
{backend-source-path} for framework-specific route patterns{backend-source-path} is NOT configured, search entire codebase instead.TBD and add an explicit ## Assumptions section in api-analysis.md listing every unknown field and the reason it is unknown. Flag Phase 2 as partial — N/M endpoints fully analyzed in agents/TEMP/<FEATURE>/api-aqa-state.md so downstream phases know not to treat the analysis as authoritative.Decision point: Swagger available -> full spec analysis. No Swagger -> code-based analysis + user input.
</determine_spec_source>
<execute_analysis step="2.2" subagent="discoverer" role="API spec analyst">
reverse-engineering and USE SKILL qa-knowledge (code_analysis mode — API-contract extraction) with the phase-supplied bindings: target-endpoint list (Phase 1 test cases) + spec source (step 2.1) = <input_contract>; per-endpoint output shape + Analysis Summary metrics = qa-knowledge's api-analysis template (the skill loads its own asset); validation = <validation_checklist>; output path = plans/api-aqa-{IDENTIFIER}/api-analysis.md. The mode GATEs on the two required inputs before locating the spec. USE SKILL sensitive-data to redact before writing.</execute_analysis>
<produce_output step="2.3">
Create plans/api-aqa-{IDENTIFIER}/api-analysis.md. The phase owns the document section list below; the verbatim per-endpoint contract entry and the Analysis Summary metrics are qa-knowledge's api-analysis template. The skill EMITS into these, the phase ASSERTS them.
Required section list (in order; every section must be present-or-N/A — <reason>):
# API Analysis - [IDENTIFIER] + Analyzed / Phase / Spec Source.</produce_output>
<redaction_contract>
api-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); record each redaction in the entry's Notes / Discrepancies. Swagger specs and code routinely embed real secrets in securitySchemes, example bodies, and citation snippets.
</redaction_contract>
<validate_findings step="2.4">
<update_state step="2.5">
agents/TEMP/<FEATURE>/api-aqa-state.md:
<validation_checklist>
file:line); citation-less entries are gaps, not entriesN/A — <reason> / Gap: <reason> — no invented schema fields, status codes, or authSource: hybrid entry has a non-empty Notes / Discrepancies (recorded mismatch OR explicit None.)200-only entry is acceptable only when both sources truly lack other codes; otherwise missing 401/403/404/500 recorded in Notes as a gapN/A has a one-line reason; bare N/A forbiddensensitive-data scan executed against the rendered artifact; no literal credentials/tokens/PII remainapi-analysis.md created with all <produce_output> sections, each endpoint per the api-analysis template, plus the Analysis Summary metrics
</validation_checklist></api_aqa_flow_api_spec_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-execution-and-report-analysisPhase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED)2 plugins in one repository ship this exact command · first indexed Aug 20, 2026
Other plugins' commands for the same job