api-aqa-flow-api-spec-analysis

api-aqa-flow-api-spec-analysis is a command for coding agents from griddynamics/rosetta. It costs 19 tokens per session (1,996 once invoked), scanned A, original, Apache-2.0.

Phase 2 API Spec Analysis of api-aqa-flow.

Command

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.

agentmods
npx agentmods add commands/griddynamics/rosetta/api-aqa-flow-api-spec-analysis
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

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 api-aqa-flow-api-spec-analysis

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/api-aqa-flow-api-spec-analysis.svg)](https://agentmods.dev/commands/griddynamics/rosetta/api-aqa-flow-api-spec-analysis)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/api-aqa-flow-api-spec-analysis"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/api-aqa-flow-api-spec-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,996 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00019 $0.01996
Opus 5 $0.00010 $0.00998
Sonnet 5 $0.00004 $0.00399
Haiku 4.5 $0.00002 $0.00200

Measured today against content hash d0778479f41e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-aqa-flow-api-spec-analysis 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 today.

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/api-aqa-flow-api-spec-analysis.md · 116 lines

How it starts

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

<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>

  • Phase 2 of 8 in api-aqa-flow
  • Input: raw data from Phase 1 + project config (Swagger URL if available)
  • Output artifact path (single SSoT — referenced by other sections): plans/api-aqa-{IDENTIFIER}/api-analysis.md (resolve {IDENTIFIER} from agents/TEMP/<FEATURE>/api-aqa-state.md)
  • Prerequisite: Phase 1 complete, raw-data.md exists with identified endpoints
  • Read-only scope: locate spec/source, extract contracts, reconcile, write the analysis artifact. NO edits to backend source or product code.
  • Required skills: qa-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:

  • Target-endpoint list — non-empty, derived from Phase 1 test cases (or explicit user list). The skill never fabricates the target set. Empty/absent → stop, report back, ask the user.
  • Spec/source path — Swagger/OpenAPI URL OR file path OR backend source path with route definitions (determined in step 2.1). Neither supplied → stop; do NOT scan the whole codebase as a silent fallback unless the user explicitly requested it. </input_contract>

<phase_steps>

  1. Determine API specification source
  2. Execute API spec analysis using skill
  3. Produce API analysis document
  4. Validate and update state </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:

  1. Swagger URL from project config (api-aqa-project-config.md)
  2. Swagger/OpenAPI in backend source (if {backend-source-path} configured):
    • Search within {backend-source-path} for: swagger.json, swagger.yaml, openapi.json, openapi.yaml, api-docs
    • If {backend-source-path} is NOT configured, search entire codebase instead.
  3. API route definitions in backend source (if {backend-source-path} configured):
    • Search within {backend-source-path} for framework-specific route patterns
    • If {backend-source-path} is NOT configured, search entire codebase instead.
  4. If none found: Proceed with documentation from Phase 1 only; ask user for endpoint details. Zero-source fallback: if the user is unavailable, refuses, or supplies only partial info: mark each missing template field (request schema, response schema, auth, data dependencies) as 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">

  1. USE SKILL 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.
  2. The mode extracts per endpoint: contracts, auth requirements, data dependencies, and reconciles spec-vs-code when both sources are read.
  3. Coverage is mandatory: every target endpoint gets a contract entry OR is flagged back as a gap with reason — no silent drop. Do not fabricate schemas, status codes, or auth requirements without a source.

Read the full file on GitHub · 116 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. today First seen · 116 lines · 19 tokens per session scan A d0778479f41e

Subscribe to this mod's changes

api-aqa-flow-api-spec-analysis is a command published in the GitHub repository griddynamics/rosetta (342 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 1,996 once invoked, about $0.0001 per session on Opus 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.