api-aqa-flow-gap-and-requirements-clarification

api-aqa-flow-gap-and-requirements-clarification is a command for Claude Code from griddynamics/rosetta. It costs 32 tokens per session (1,559 once invoked), scanned A, original, Apache-2.0.

A clarification step that compares API test cases with documentation and an API specification. It records gaps, contradictions, and answers to questions before test specifications are written.

In plain words
What is it for?
Use it to reconcile API contracts, test cases, and project documents, then record the decisions needed for implementation.
Why use it?
It prevents ambiguous or conflicting requirements from becoming incorrect automated tests.

Command for Claude Code

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

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-gap-and-requirements-clarification
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 api-aqa-flow-gap-and-requirements-clarification

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/api-aqa-flow-gap-and-requirements-clarification.svg)](https://agentmods.dev/commands/griddynamics/rosetta/api-aqa-flow-gap-and-requirements-clarification)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/api-aqa-flow-gap-and-requirements-clarification"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/api-aqa-flow-gap-and-requirements-clarification.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 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,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00032 $0.01559
Opus 5 $0.00016 $0.00779
Sonnet 5 $0.00006 $0.00312
Haiku 4.5 $0.00003 $0.00156

Measured 2d ago against content hash c9be13d2b029, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

api-aqa-flow-gap-and-requirements-clarification 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 2d 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/core-copilot-light/commands/api-aqa-flow-gap-and-requirements-clarification.md · 102 lines

How it starts

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

<api_aqa_flow_gap_and_requirements_clarification>

<description_and_purpose> Cross-reference test cases, documentation, and API spec to identify gaps, contradictions, and ambiguities. Clarify all unknowns with user before test specification. </description_and_purpose>

<workflow_context>

  • Phase 3 of 8 in api-aqa-flow
  • Input: raw data (Phase 1) + API analysis (Phase 2) + project config
  • Output: plans/api-aqa-{IDENTIFIER}/analysis.md with gaps resolved, user answers documented
  • Prerequisite: Phases 1 and 2 complete
  • HITL: user answers required before Phase 4
  • Required skills: qa-knowledge (gap_analysis mode + G/C/A finding forms), qa-structure ({IDENTIFIER} + analysis path)
  • Recommended skills: questioning (clarification batch) </workflow_context>

<phase_steps>

  1. Execute gap analysis
  2. Present questions and wait for user answers
  3. Document clarifications and update state </phase_steps>

<execute_gap_analysis step="3.1" subagent="architect" role="Test requirements analyst">

  1. USE SKILL qa-knowledge (gap_analysis mode). Run all three variants against the inputs and EMIT findings into the phase-owned sections of <analysis_md_contract>; the mode is analysis-only and never invents the artifact shape:
    • Test-cases-vs-API-spec variantGaps (G[N] entries; test step vs API analysis cross-reference).
    • General multi-source variantContradictions (C[N]; cross-source disagreements between raw-data, api-analysis, docs) + Ambiguities (A[N]; vague statements).
  2. Finding-entry shapes (G[N] / C[N] / A[N], each with verbatim source quote + citation + impact + suggested question) are qa-knowledge's gap-finding templates — the skill loads its own asset at point of use.
  3. If a finding fits more than one bucket, record it once under the section that owns its emit shape (G/C/A) and add a cross-reference note rather than duplicating.
  4. Prepare a prioritized list of gaps, contradictions, ambiguities for step 3.2.

</execute_gap_analysis>

<ask_user step="3.2">

  1. USE SKILL questioning
  2. Present structured questions to user (Critical / Important / Optional)
  3. STOP AND WAIT for user to provide all answers
  4. Unknown-answer branches by priority:
    • Critical unknown: mark as BLOCKING ASSUMPTION in analysis.md, stop Phase 3, do not advance to Phase 4 until the user provides an answer or explicitly approves proceeding with the assumption.
    • Important unknown: mark as ASSUMPTION with rationale, flag in agents/TEMP/<FEATURE>/api-aqa-state.md under Open Assumptions, proceed.
    • Optional unknown: mark as SKIPPED with reason, proceed.
    • Partial answer: record what was answered; treat the unanswered portion per the matching priority branch above.
    • User defers / marks out-of-scope: record as DEFERRED — user out-of-scope and treat as Optional (proceed). </ask_user>

<update_plan step="3.3">

  1. Process user answers
  2. Update analysis document with questions, answers, and resolved items
  3. Verify plans/api-aqa-{IDENTIFIER}/analysis.md created with all required sections (see <analysis_md_contract> below) </update_plan>

<analysis_md_contract> analysis.md must include these sections in order; missing or empty sections fail validation:

  1. Gaps — items not covered by raw-data or API analysis (one bullet per gap, with source citation)
  2. Contradictions — places where raw-data and api-analysis disagree (with both sources cited)
  3. Ambiguities — wording or behavior open to interpretation
  4. Questions — full list of structured questions asked (with priority tag: Critical / Important / Optional)
  5. Answers — user responses; for each, indicate ANSWERED / ASSUMPTION / BLOCKING ASSUMPTION / SKIPPED / DEFERRED per <ask_user> step 4
  6. Resolutions — final disposition for each gap/contradiction/ambiguity (resolved, accepted as assumption, deferred to a later phase)
  7. Open Assumptions — explicit list of every unresolved item carried forward (mirrors the count in api-aqa-state.md) </analysis_md_contract>

Read the full file on GitHub · 102 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. 2d ago First seen · 102 lines · 32 tokens per session scan A c9be13d2b029

Subscribe to this mod's changes

api-aqa-flow-gap-and-requirements-clarification is a command published in the GitHub repository griddynamics/rosetta (342 stars, last pushed 2d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,559 once invoked, about $0.0002 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.