SuperAPI AI Directory

cawplan-testplan-layout

Testing & quality

View repository

Updated 10-15 20:11

About this skill

CawPlan TestPlan Layout — A2 Test Plan Orchestration
cawplan skill check

Hard Gates (MUST)

  1. preview-first: Skip preview and directly plan execute。
  2. execute is only allowed with preview_id; Recomputing scope before execute or changing Milestone / ticket_reuse_strategy。
  3. Milestone name = {product_name} {version_name}is prohibited (prohibited {version_name} - QA Execution)。
  4. Ticket incremental orchestration: default ticket_reuse_strategy=AUTO(BE default); already-bound Ticket REUSE does not create a new Run; full rebuild requires explicit --ticket-reuse-strategy CREATE_ALL。
  5. blocking gap → execute is hard-prohibited. See ux.md §Gaps。
  6. User display:ux.md §Glossary;UUID/preview_id hidden by default; follow the user's primary language; Agent on its own AskUserQuestion。
  7. Double confirmation gate: preview decision gate (Step 3) → execution submission gate (Step 5 --confirm)。
  8. plan-rules set: only execute when SQA explicitly requests adjustment of R1–R7.
  9. First Milestone gate:mapping-get returns has_mapping=false ,prohibitedSkip box M and directly plan preview(§Intent hit or §ConfirmState reuse excepted).
  10. Non-first-time no prompt:has_mapping=true whenprohibitedpop up box M; directly AUTO preview. After box M or Intent confirmation and before execute,prohibitedchange milestone_strategy / milestone_id。

Reference Loading (MUST)

Timing Read prohibited
Step 0 / preview / execute CLI execution.md Read all references at once
Step 1.5 / 1.6 / Milestone first confirmation execution.md §MilestoneProbe · §MilestoneValidate · §MilestoneFirstLayout —
Interaction, preview, gap, confirmation gate ux.md —
Milestone REUSE second confirmation (Step 2.1) execution.md §Incremental · ux.md §Prompts —

Allowed commands

  • plan-rules get(default);plan-rules set(only when explicitly requested by the user)
  • milestone mapping-get、milestone validate
  • plan preview(optional --milestone-strategy、--milestone-id、--ticket-reuse-strategy)、plan execute
  • products list、versions list

Prohibited:cawplan api, chained &&, manual passing suite_id, direct connection to TestRail.

Workflow

Step Action Detail
0 Parse product_id/version_id/name; orchestration scope execution.md §0 · missing information → ux.md §Prompts
1 plan-rules get; only when the user requests set execution.md §Rules
1.5 milestone mapping-get execution.md §MilestoneProbe
1.5a has_mapping=false → box M(default new) ux.md §MilestoneFirstConfirm · §ConfirmState
1.6 Box M select "Bind existing" → milestone validate(Intent REUSE_BY_ID this step is exempted) execution.md §MilestoneValidate
2 plan preview(see strategy §MilestoneFirstLayout or AUTO) execution.md §Preview · §Incremental
2.1 AUTO + REUSE + LATEST_MAPPING → Milestone second confirmation ux.md §Prompts · if box M / Intent already confirmed, skip
3 Friendly preview → preview decision gate ux.md;NEW_CASES_NOT_IN_RUN must confirm
4 No blocking gap and gate passed → execution submission gate ux.md §Prompts
5 plan execute --preview-id … --confirm execution.md §Execute

Output

UUID display by default is prohibited in the main text.plan_count/run_count = Will create(excluding REUSE).

## 测试计划编排结果 — {product_name} {version_name}

| 项目 | 内容 |
|------|------|
| 里程碑 | [{milestone.name}]({milestone.url}) |
| 工单范围 | {全版本 / ticket 列表} |
| 复用 | {to_reuse_ticket_count} 个工单沿用已有 Run |
| 新建 | {to_create_ticket_count} 个工单 · {plan_count} 计划 · {run_count} 运行 |

### 按工单
| 工单 | 处理方式 | 计划/运行 | 链接 |
|------|----------|-----------|------|
| {display_id} | 复用/新建 | … | [查看](url) |

Expand only when the user asks for "technical details":preview_id、plan_mapping_id、reused_plan_mapping_ids、created_plan_mapping_ids、confirmed_milestone_strategy。

References

  • execution.md — scope, CLI, Milestone detection, incremental orchestration, R1–R7, execute
  • ux.md — friendly names, box M, ConfirmState, confirmation gate, gap/warning, AskUserQuestion