cawplan skill check
Hard Gates (MUST)
- preview-first: Skip preview and directly
plan execute。 - execute is only allowed with
preview_id; Recomputing scope before execute or changing Milestone /ticket_reuse_strategy。 - Milestone name =
{product_name} {version_name}is prohibited (prohibited{version_name} - QA Execution)。 - Ticket incremental orchestration: default
ticket_reuse_strategy=AUTO(BE default); already-bound TicketREUSEdoes not create a new Run; full rebuild requires explicit--ticket-reuse-strategy CREATE_ALL。 - blocking gap → execute is hard-prohibited. See
ux.md §Gaps。 - User display:
ux.md §Glossary;UUID/preview_idhidden by default; follow the user's primary language; Agent on its ownAskUserQuestion。 - Double confirmation gate: preview decision gate (Step 3) → execution submission gate (Step 5
--confirm)。 - plan-rules set: only execute when SQA explicitly requests adjustment of R1–R7.
- First Milestone gate:
mapping-getreturnshas_mapping=false,prohibitedSkip box M and directlyplan preview(§Intenthit or§ConfirmStatereuse excepted). - Non-first-time no prompt:
has_mapping=truewhenprohibitedpop up box M; directlyAUTOpreview. After box M or Intent confirmation and before execute,prohibitedchangemilestone_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 validateplan preview(optional--milestone-strategy、--milestone-id、--ticket-reuse-strategy)、plan executeproducts 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