用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/griddynamics/rosetta --skill api-aqa-flow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | api-aqa-flow |
| description | Workflow for backend API test automation: TMS / Issue Tracker test cases → automated API tests, HITL-gated. |
<api_aqa_flow>
<description_and_purpose>
End-to-end backend API test automation from test case input to working automated tests.
Prerequisite: Rosetta Prep Steps.
Terminology. External systems are named by role throughout this workflow and its phases: Test Management System (TMS), Issue Tracker, and Wiki. TestRail, Jira, and Confluence are canonical examples only — adapt identifiers, URLs, requests, calls, and query syntax to the systems resolved for the current project (from repository-root gain.json, explicit user input, recognizable URLs/handles, and available integrations).
At completion the user has: corrected, passing API test files in the repository; the per-session artifacts under plans/api-aqa-{IDENTIFIER}/ (raw-data.md, api-analysis.md, analysis.md, test-specs.md, execution-report.md); and agents/TEMP/<FEATURE>/api-aqa-state.md recording phase completion, metrics, and HITL approvals.
</description_and_purpose>
<workflow_phases>
<skip_rules> only.load-project-context loaded and fully executed.agents/TEMP/<FEATURE>/api-aqa-state.md → verify the phase-output gate → next; keep todos matched to the active phase; never batch-load future phases; never skip without approval (<skip_rules>). When a phase delegates work to subagents, dispatch per USE SKILL orchestration.ATC-NNN in test-specs.md traces to a Phase 3 source (a raw-data.md test case and/or an analysis.md G[N]/C[N]/A[N] finding); also Phase 1 raw-data.md, Phase 2 api-analysis.md, and Phase 6 execution-report.md present and non-placeholder.<skip_rules>
This block owns ONLY the api-aqa-flow-specific skip rules below: a set of always-in-force carve-outs plus a single verification-failure unilateral-start override (the only no-ask deviation; its preconditions are in the table further down). The carve-outs bind unconditionally; the override is subordinate to them. Gate-execution mechanics (how to run an approval gate, token handling) are owned by USE SKILL hitl — defer to it; not restated here.
Always-in-force carve-outs (the override never suppresses these):
type="HITL") — explicit user approval per the hitl skill.plans/api-aqa-{IDENTIFIER}/, comparable irreversible actions.Verification-failure unilateral-start override — subordinate to the hitl skill + the carve-outs above; the only no-ask deviation, applies only at this skip-verification gate.
| Precondition (ALL true, independently verified) | Action |
|---|---|
(a) user asserts Phases 0-2 complete this turn AND (b) agents/TEMP/<FEATURE>/api-aqa-state.md marks them complete AND (c) raw-data.md + api-analysis.md exist under plans/api-aqa-{IDENTIFIER}/ | Print (a)/(b)/(c) each with its concrete evidence (user-assertion quote · the api-aqa-state rows · the two artifact paths), then skip Phases 0-2 and resume at Phase 3. Any precondition not showable with concrete evidence → treat as uncertain (last row). |
| Any of (a)/(b)/(c) false AND user instruction unambiguous | Print failing conditions; begin Phase 0 same turn. |
| Any precondition uncertain | Fall back to normal HITL ask. Ambiguity defaults to ASK. |
</skip_rules>
<execution_policy>
coding before implementation or correction work that touches repository test code or shared utilities.<coding_standards_precedence>.agents/TEMP/<FEATURE>/api-aqa-state.md, expected artifacts for those phases exist under plans/api-aqa-{IDENTIFIER}/ (and related paths named in phase docs), and the user accepts the last test outcome or explicitly stops the run.
</execution_policy><project_config_loading phase="0" applies="ALL" subagent="discoverer" role="AQA project config loader" subagent_required_model="inherit" type="HITL-CONDITIONAL">
phases/api-aqa-flow-project-config-loading.mdplans/api-aqa-{IDENTIFIER}/.qa-structure, sensitive-data (redaction at intake)questioning (config-missing interview)agents/TEMP/<FEATURE>/api-aqa-state.md; Phase 0 is not complete until its output spot-check passes.
</project_config_loading><data_collection phase="1" applies="ALL" subagent="discoverer" role="AQA data collector" subagent_required_model="inherit">
phases/api-aqa-flow-data-collection.mdplans/api-aqa-{IDENTIFIER}/raw-data.md (test cases, documentation, existing test patterns).data-collection (TMS + Wiki collector), qa-knowledge (code_analysis mode — existing-test + backend-source scan), reverse-engineering, qa-structureagents/TEMP/<FEATURE>/api-aqa-state.md; Phase 1 is not complete until its output spot-check passes.
</data_collection><api_spec_analysis phase="2" applies="ALL" subagent="discoverer" role="API spec analyst" subagent_required_model="inherit">
phases/api-aqa-flow-api-spec-analysis.mdplans/api-aqa-{IDENTIFIER}/api-analysis.md (endpoint contracts, auth, data dependencies).qa-knowledge (code_analysis mode — API-contract extraction), reverse-engineering, sensitive-data, qa-structureagents/TEMP/<FEATURE>/api-aqa-state.md; Phase 2 is not complete until its output spot-check passes.
</api_spec_analysis><gap_and_requirements_clarification phase="3" applies="ALL" subagent="architect" role="Test requirements analyst" subagent_required_model="inherit" type="HITL">
phases/api-aqa-flow-gap-and-requirements-clarification.mdplans/api-aqa-{IDENTIFIER}/analysis.md (gaps, contradictions, ambiguities resolved).qa-knowledge (gap_analysis mode), qa-structurequestioningagents/TEMP/<FEATURE>/api-aqa-state.md; Phase 3 is not complete until its output spot-check passes.
</gap_and_requirements_clarification><test_case_specification phase="4" applies="ALL" subagent="architect" role="Test specification author" subagent_required_model="inherit" type="HITL">
phases/api-aqa-flow-test-case-specification.mdplans/api-aqa-{IDENTIFIER}/test-specs.md (Given-When-Then scenarios).qa-knowledge (scenario_design mode), sensitive-data, qa-structurehitlagents/TEMP/<FEATURE>/api-aqa-state.md; Phase 4 is not complete until its output spot-check passes.
</test_case_specification><test_implementation phase="5" applies="ALL" subagent="engineer" role="Test automation engineer" subagent_required_model="inherit" type="HITL">
phases/api-aqa-flow-test-implementation.mdqa-knowledge (implementation_modes — API impl), qa-structuretesting, coding (repo conventions)agents/TEMP/<FEATURE>/api-aqa-state.md; Phase 5 is not complete until its output spot-check passes.
</test_implementation><execution_and_report_analysis phase="6" applies="ALL" subagent="engineer" role="Test failure analyst" subagent_required_model="inherit" type="HITL">
phases/api-aqa-flow-execution-and-report-analysis.mdagents/user-instructions/). Output: plans/api-aqa-{IDENTIFIER}/execution-report.md (failure analysis).qa-knowledge (test_execution_triage mode), sensitive-data, qa-structureagents/TEMP/<FEATURE>/api-aqa-state.md; Phase 6 is not complete until its output spot-check passes.
</execution_and_report_analysis><test_corrections phase="7" applies="ALL" subagent="engineer" role="Test correction engineer" subagent_required_model="inherit" type="HITL">
phases/api-aqa-flow-test-correction.mdqa-knowledge (correction mode), qa-structurecoding (authors the proposed/applied edits), debugging (root-cause alignment), hitlagents/TEMP/<FEATURE>/api-aqa-state.md; Phase 7 is not complete until its output spot-check passes.
</test_corrections></workflow_phases>
<coding_standards_precedence>
Conflict rule is binary: if guidance from a loaded skill conflicts with repository markdown (docs/CONTEXT.md, docs/ARCHITECTURE.md, agents/IMPLEMENTATION.md — or the paths gain.json configures — and project_description.md if present) on naming, structure/layout, tooling, or test patterns, repository markdown wins and the conflicting skill snippet is ignored for that decision. If there is no conflict, apply both. gain.json wins for file locations.
Example: if a skill suggests /tests/api/ but docs/ARCHITECTURE.md requires /qa/api/tests/, use /qa/api/tests/.
</coding_standards_precedence>
<failure_handling>
agents/TEMP/<FEATURE>/api-aqa-state.md, ask the user — never improvise an undocumented phase.agents/TEMP/<FEATURE>/api-aqa-state.md: pause, rebuild minimal phase pointers from plans/api-aqa-{IDENTIFIER}/ when possible, then ask the user to confirm.Phase 5 blocked: APPLY SKILL FILE phases/api-aqa-flow-test-implementation.md returned nothing at 2026-05-25T15:00Z; awaiting user action.
</failure_handling><state_file>
agents/TEMP/<FEATURE>/api-aqa-state.md carries: header (Last Updated / Current Phase 0-7 / Test Case Source / Feature / IDENTIFIER — matching the Phase 0 stub; API Base URL is appended once Phase 2 resolves it) + 8-row ## Phase Completion Status checklist (one row per phase 0-7) + per-phase append blocks. Each phase file owns its own state-update snippet (the delta it appends after running) — this workflow does not restate the full template.
</state_file>
Subagents: discoverer · architect · engineer · executor (optional, mechanical actions).
Cross-phase skills: qa-structure (paths / identifier / state-file shape) and qa-knowledge (modes, taxonomies, artifact skeletons — loads its own assets at point of use).
Integrations: TMS, Issue Tracker, and Wiki per <description_and_purpose> Terminology.
</api_aqa_flow>
基于 SOC 职业分类