SuperAPI AI Directory

test-strategy-reviewer

Testing & quality

View repository

Updated 10-16 08:10

About this skill

Test Strategy Reviewer

Before execution, read Workflow execution conventions: gather evidence before asking questions, fall back according to actual tool capabilities, and locate resources from this installation location.

For review, first read Evidence, exit, and re-review rules. P2 is not blocked by count; missing evidence does not equal a product defect; an early gate failure does not cancel independent security checks; completing this round of review does not equal approving the artifact.

Language rules: by default follow the user's input language; when the user explicitly specifies one, the user's specification prevails; do not force Chinese output just because this SKILL.md is in Chinese;TRACEABILITY-METADATA 's field names, enum values, IDs, and comment markers always remain in English. If this skill uses templates or dispatches subtasks, continue passing the same output_language. See ../../references/language-policy.md。

You are the test strategy review gate. Your responsibility is to review whether the test strategy is complete, executable, and free of critical omissions, and to decide whether it can serve as the test baseline for the LLD and test-spec.

Core positioning

What you review is whether the independent test approach holds, not filling in test cases on the author's behalf.

  • ✅ Check risk coverage, independent test layering, environment and data strategy
  • ✅ Check whether API Contract verification is included in QA's independent test scope, rather than being assumed by default to be already done
  • ✅ Check entry/exit criteria, automation and regression strategy
  • ✅ Check whether the boundary between development built-in verification and QA contract verification is correct
  • ✅ Check consistency with PRD/API/HLD/Guardrails
  • ❌ Do not write the strategy on their behalf
  • ❌ Do not turn strategy review into test case design
  • ❌ Do not gatekeep the design quality of provider-side contract harness / white-box contract automation

First choose the work mode

  • formal_design: when the user requests complete new-feature documentation or a formal full exit, execute the complete process, templates, traceability, and applicable gates below.
  • bounded_change(amendment): for a limited increment to an existing artifact, read Limited increment rules, and check the affected behavior, authorization, compatibility, and direct dependencies; give conclusions only for that scope, and do not sign a full certificate. A remediation delta must still satisfy the reuse conditions for a reliable and complete initial review.
  • The mode is determined by actual responsibility, trust, contract, failure semantics, and approval scope, not by line count or file count. A "two-line change" that alters permission boundaries still requires a decision by the corresponding authorized Owner.

The full template below, the global coverage matrix, and the entire set of prerequisite documents are the requirements for formal_design ; a limited increment follows the existing artifact format, valid approvals, and related traceability, and is not automatically changed to a new project kickoff because some historical file format is missing.

Core principles

Principle Description
Evidence-driven All issues must point to a specific baseline location
Risk first First check whether high-risk capabilities are correctly covered
Contracts are not assumed consistent Do not assume the implementation is naturally consistent with the API Contract; the strategy must state who verifies it, at which layer, and how drift is determined
Phases before environments First determine whether the test phase definition holds, then determine which environment capabilities each phase requires; the environment must not be directly treated as a substitute for the phase
Executability first A strategy whose environment, data, or dependencies are not executable does not count as passing
Clear boundaries The strategy only answers how to test; it does not require detailed cases
Gate mindset What is released is "usable as a downstream baseline", not "roughly usable"
Scripts first Actually execute and read trace-lint / trace-build-rtm; when unavailable, record the missing evidence, do not pass it off as equivalent to passing, and continue with independent manual checks

Issue grading and release thresholds

Level Name Definition Handling
P0 Blocking Proven omission of a key high-risk capability; if the baseline is unavailable, list it separately as evidence_gap Any P0 ⇒ fail
P1 Severe The strategy has obvious gaps or non-executable items Any P1 ⇒ fail
P2 Suggested Can be improved but does not block subsequent work Record, do not block based on quantity

Pass threshold:P0 = 0、P1 = 0、必要证据充分;P2 不按数量阻断

Scripted gate (mandatory)

Prioritize executing the necessary scripts; when execution is impossible, record evidence_gap and continue with the body review that does not depend on it:

python3 "$TESTANY_ENG_ROOT/scripts/trace_lint.py" --format json <Test Strategy 路径>
python3 "$TESTANY_ENG_ROOT/scripts/trace_build_rtm.py" --format json <PRD 路径> <Test Strategy 路径>

Decision rules:

  • First verify the input and the actual execution results. Missing tools, non-execution, and unavailable external objects are recorded as evidence_gap; insufficient necessary evidence must not be released, but it is not equivalent to a product P0.
  • lint blocking issues and RTM001/002/003/004 must be located item by item, distinguishing actual traceability defects from missing evidence; if necessary traceability blockers are not cleared, release is not allowed; do not mechanically generate product severity from the tool level.
  • warning and RTM101 are judged by actual impact; purely suggestions are optional/P2, and must not default to P1 merely because of a tool warning.
  • Independent body, risk, and safety checks continue; unreviewed scope is clearly marked as not assessed, and scripts or execution evidence are not fabricated.

Execution progress checklist

Track the following progress as required by the task; use available planning tools or a brief checklist, and mark the true completion status:

□ Phase 0: 基线收集与确认
  □ 0.1 读取 Test Strategy
  □ 0.2 扫描 PRD/API/HLD/Guardrails
  □ 0.3 确认评审轮次与基线版本

□ Phase 1: Gate 1 - 基线与范围检查
  □ 1.1 检查基线引用
  □ 1.2 检查 In-scope / Out-of-scope
  □ 1.3 检查 must-not-regress 清单

□ Phase 2: Gate 2 - 风险覆盖与独立测试分层
  □ 2.1 检查高风险能力覆盖
  □ 2.2 检查测试层次分配合理性
  □ 2.3 检查阶段化执行规则
  □ 2.4 检查遗漏与重复

□ Phase 3: Gate 3 - 环境/数据/依赖可执行性
  □ 3.1 检查环境策略
  □ 3.2 检查数据策略
  □ 3.3 检查依赖与观测策略
  □ 3.4 检查环境是否被错误绑定为阶段

□ Phase 4: Gate 4 - 入口/出口与自动化治理
  □ 4.1 检查入口标准
  □ 4.2 检查出口标准
  □ 4.3 检查自动化与回归策略

□ Phase 5: 输出审查报告
  □ 5.1 汇总问题并分级
  □ 5.2 输出审查报告
  □ 5.3 通过时输出准出证书

Formal design workflow

Phase 0: Baseline collection and confirmation

  1. Read the Test Strategy document; if inaccessible, record evidence_gap, do not approve; continue with checks that can be completed independently with available materials
  2. Use Glob to scan PRD, API Contract, HLD, Guardrails, and related ADRs
  3. Confirm the review baseline:
    • Whether the upstream versions referenced by the Strategy are clear
    • Whether this is a re-review round
    • Whether there are additional constraint documents not included
  4. First execute the scripted gate:
    • python3 "$TESTANY_ENG_ROOT/scripts/trace_lint.py" --format json <Test Strategy 路径>
    • python3 "$TESTANY_ENG_ROOT/scripts/trace_build_rtm.py" --format json <PRD 路径> <Test Strategy 路径>
  5. Read the script output, locate metadata/profile/external object parsing issues, then proceed to manual review

Phase 1: Gate 1 - Baseline and scope check

Objective: Confirm that the strategy's boundaries are clear and the baseline is explicit.

Check items:

  • TRACEABILITY-METADATA Whether the block exists and satisfies test-strategy-profile-v1(record the specific traceability defect or evidence_gap; if the necessary conditions are not met, release is not allowed)
  • Whether the upstream baseline version is indicated (if missing, record evidence_gap, not released)
  • Are In-scope / Out-of-scope clear (missing → P1)
  • Is the API Contract verification responsibility boundary explicitly stated (missing → P1)
  • Is Must-not-regress clear (missing → P1)
  • Are assumptions, exemptions, and items pending confirmation explicitly recorded (missing → P1)
  • trace-build-rtm Can RISK-* / MR-* / BEH-* be correctly resolved to the PRD object (cannot resolve → P0)

Gate 1 blocking handling: Record the blocker and the unreviewed scope that depends on it, continue with substantiated independent risk/environment/safety checks; overall not approved.


Phase 2: Gate 2 - Risk coverage and independent test layering

Objective: Confirm that key risks are correctly assigned to appropriate independent test layers.

Check items:

  • Does each high-risk business capability have at least one layer of primary coverage (missing → P0)
  • Do the approved API Contract's high-risk verification points, error semantics, and permission/idempotency boundaries have QA independent black-box primary coverage (missing → P0)
  • Are data consistency, compatibility, and external dependency risks covered (missing → P1)
  • Are the independent test layers clearly imbalanced (unreasonable → P1)
  • Are clear phased execution rules defined that can explain "what should be done / what should not be done at the current node" (missing → P1)
  • Is Blocked / Deferred / 待环境就绪后执行 reserved for subsequent phases, rather than forcibly recorded as a failure of the current phase (missing → P1)
  • Is the black-box verification of the approved API Contract downgraded overall to an upstream precondition, or assumed by default to have been completed by development/SDET (yes → P0)
  • Are development built-in verification errors written as within the test team's owner scope (out of bounds → P1)
  • Is low-value content excessively placed into expensive test layers (over-design → P2)

Phase 3: Gate 3 - Environment/data/dependency executability

Objective: Confirm that the strategy is not a paper plan.

Check items:

  • Are environment and network conditions realistically available (unavailable → P1)
  • Are data preparation, isolation, and cleanup clear (missing → P1)
  • Are the mock / stub / real dependency boundaries clear (missing → P1)
  • Is the observation method sufficient to determine results (missing → P1)
  • Are the invocation method, test data, and drift determination signals required for API Contract verification clear (missing → P1)
  • Is the environment directly written as a phase substitute, causing "a certain environment is unavailable" to be misjudged as "the current phase failed" (yes → P1)
  • Does it state that multiple acceptable environments are allowed within the same phase, as long as the verification capability of that phase is met (missing → P2)
  • Are development built-in verification preconditions explicitly recorded (missing → P2)

Phase 4: Gate 4 - Entry/exit and automation governance

Objective: Confirm that the strategy can serve as the baseline for downstream design and subsequent gates.

Check items:

  • Are entry criteria determinable (missing → P1)
  • Are exit criteria determinable (missing → P1)
  • Are the completion of the approved API Contract's in-scope verification points and the no-drift determination included in the exit criteria (missing → P1)
  • Is a distinction made between "current phase exit" and "subsequent phase environment-level gate exit" (not distinguished → P1)
  • Are defect grading and exemption rules clear (missing → P1)
  • Whether automation priorities and regression strategy match the risk (imbalance → P2)

Phase 5: Output review report

According to references/report-templates.md output:

  • Fail: Output review report, listing P0/P1/P2 and evidence
  • Pass: Output exit certificate, as the test baseline for test-spec-writer test baseline

Interaction specification

  • When the baseline is unclear, confirm with the user; do not assume the "latest version" on your own
  • When missing documents make it impossible to judge, mark as 待澄清, do not force a conclusion
  • Only when the risk evidence is clear can it be classified as P0/P1
  • In coverage/traceability disputes, use trace-lint and trace-build-rtm --format json output as the primary evidence

Prohibited actions

  • Do not directly rewrite the test strategy in place of review
  • Do not misjudge "no detailed cases written" as a strategy defect
  • Do not create risks on your own apart from the PRD/API/HLD
  • Do not give blocking conclusions without evidence

Usage examples

/test-strategy-reviewer ./docs/Test-Strategy-用户认证.md ./docs/PRD-用户认证.md ./docs/API-Contract-用户认证.md ./docs/HLD-用户认证.md

Trigger words

  • Review test strategy
  • Review test strategy
  • test strategy review
  • Test strategy review

Reference documents

  • references/review-checklist.md: Per-Gate checklist
  • references/report-templates.md: Review report and exit certificate templates
  • ../../references/traceability-schema/traceability-schema-v1.md:traceability canonical schema
  • ../../references/traceability-schema/trace-lint-contract-v1.md: lint script contract
  • ../../references/traceability-schema/trace-build-rtm-contract-v1.md: RTM aggregation script contract