ワンクリックで
cwf-testing-exec
Guide user through testing execution phase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guide user through testing execution phase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create sub-implementation task within existing task (v2.0)
Guide user through planning phase
Guide user through implementation execution phase
Guide user through maintenance phase
Guide user through retrospective phase
Guide user through rollout phase
| name | cwf-testing-exec |
| description | Guide user through testing execution phase |
| effort | low |
| user-invocable | true |
| allowed-tools | ["Read","Write","Edit","Bash","Agent"] |
This step: Now you run tests. Execute test cases from e-testing-plan.md and document results in g-testing-exec.md.
Not this step: Planning tests (that's e-testing-plan), fixing bugs (that's f-implementation-exec), or deployment.
If blocked or finished: Call .cwf/scripts/command-helpers/workflow-manager control --current-step=g-testing-exec --task-path=<path> to determine next action.
Task arguments: {arguments}
Current task/workflow: Run .cwf/scripts/command-helpers/task-context-inference using the Bash tool.
First: Run .cwf/scripts/command-helpers/context-manager location using the Bash tool to confirm git root.
Pre-Step: Subtask gate. Run .cwf/scripts/command-helpers/workflow-manager gate --task-path=<task-path> --phase=g. Non-zero exit: STOP and report its message verbatim.
Steps 1-4 (Preamble): Read .cwf/docs/skills/workflow-preamble.md and follow Steps 1-4 (argument parsing, task resolution, parent context, LLM decision).
Step 5: Read e-testing-plan.md for test strategy, test cases, and success criteria.
Re-execution check: If g-testing-exec.md already has results from a prior run, read .cwf/docs/skills/re-execution.md before proceeding.
Step 6 (Execute):
Step 7: Execute test cases systematically. Record PASS/FAIL, document failure details with reproduction steps, measure coverage.
Step 8 (Changeset Reviews — security + best-practice, run in PARALLEL):
Two independent reviewers assess the exec changeset: the security reviewer (always) and the best-practice reviewer (only when the user has matching best-practice docs). They share no state — the SubagentStop verdict guard is name-matched to cwf-security-reviewer-changeset only — and each emits its own cwf-review verdict classified independently. Launch their Agent calls together in a single message so they run in parallel; never one-then-the-other.
.cwf/docs/skills/security-review.md § "Exec-phase prompt template" + § "Changeset coverage" and .cwf/docs/skills/best-practice-review.md § "Exec prompt template" + § "Doc-list discipline".git rev-parse --abbrev-ref HEAD. If main: append both ## Security Review\n\n**State**: no findings\n\nno findings: on main\n and ## Best-Practice Review\n\n**State**: no findings\n\nno findings: on main\n, then proceed to Step 9 (no agents).Prep (deterministic helpers — fast, run both before launching any agent):
Security changeset — run exactly as below (agent-invoked, self-managing; no redirects, wc, cat, grep):
.cwf/scripts/command-helpers/security-review-changeset --wf-step=testing-exec
Capture stdout/stderr/exit. It writes the full diff to a .out file per § "Changeset coverage" and prints security-review-changeset: wrote <N> lines to <abs-path>. Branch on the exit code first, then the count, to decide the Security verdict-or-agent:
{changeset_file} = the <abs-path>.## Security Review no findings (no findings: empty changeset); no security agent.## Security Review error (error: changeset helper produced no parseable confirmation line); no security agent..cwf/docs/skills/security-review.md § "Deferred code review (over-cap)". Parse the helper's SECOND confirmation line, security-review-changeset: wrote <D> doc lines to <docs-abs-path>:
D > 0: launch the security agent on the docs — {changeset_file} = <docs-abs-path>.D == 0: record ## Security Review no findings (no findings: no docs to review); no security agent.## Security Review no findings (no findings: docs not separable — base-path unconfigured); no security agent. Do not read this as "no docs".## Changeset Review — Code (Deferred) section carrying **State**: deferred and the helper's cap exceeded: <P> production lines > <cap> stderr line as the detail — code review is deferred, never silently passed.## Security Review error (error: changeset construction failed (<helper stderr>)); no security agent.warning: line (e.g. the deprecated security.review.test-paths key) to the user verbatim and note it under ## Security Review.Best-practice context — run exactly as below (same no-boilerplate rule):
.cwf/scripts/command-helpers/best-practice-resolve --task-num=<num> --phase=testing-exec
Capture stdout/stderr/exit. It prints best-practice-resolve: wrote <N> matched entries to <abs-path>. Branch on the exit code first, then the count, to decide the Best-Practice verdict-or-agent:
## Best-Practice Review error (error: best-practice-resolve failed (<helper stderr>)); no bp agent (a broken config must never read as clean).## Best-Practice Review no findings (no findings: no applicable best practices); no bp agent..out with D > 0 (Task 223: the docs are reviewed, so best-practice reviews them too). {changeset_file} = whichever applies, {bp_context_file} = this resolver's <abs-path>. If there is no changeset to review (empty exit-0 changeset, or an over-cap breach with no doc line or D == 0), record ## Best-Practice Review no findings (no findings: no changeset to review); no bp agent.warning: line verbatim and note it under ## Best-Practice Review.MAP (launch in parallel): in ONE message, issue the Agent calls for whichever reviewers the Prep selected (0, 1, or 2 calls):
subagent_type="cwf-security-reviewer-changeset", {wf_step} = "testing-exec", {changeset_file}.subagent_type="cwf-best-practice-reviewer-changeset", {wf_step} = "testing-exec", {changeset_file}, {bp_context_file}.Classify + record: write each launched agent's verbatim output to its own scratch .out named <reviewer>-review-output-testing-exec.out (<reviewer> ∈ {security, best-practice}; derive the dir per .cwf/docs/conventions/tmp-paths.md, mkdir -m 0700 on first use). Then classify all of them in ONE invocation — no shell loop, no < <file> redirect (this single literal argv matches the allowlist and raises no prompt):
.cwf/scripts/command-helpers/security-review-classify --dir <scratch-dir> --phase testing-exec
It prints one <reviewer>: <token> line per discovered file. Map each line's reviewer prefix to its heading and record **State**: <token> above that agent's verbatim output: security → ## Security Review, best-practice → ## Best-Practice Review. The helper is the sole classifier — do NOT apply any prose/heuristic rule. Cross-check the launched set against the classified lines: a reviewer you launched whose line is absent is recorded error, never silently dropped. A tool-level Agent failure is recorded as error.
Do NOT block on findings from either reviewer. Surface them; the user decides whether to fix-and-re-run or accept-and-record before Step 9.
Step 9: Checkpoint commit. See .cwf/docs/skills/checkpoint-commit.md. Stage: g-testing-exec.md
Step 10 (Next Steps):
/cwf-rollout <task-path>/cwf-implementation-exec to fix bugs/cwf-testing-plan to add tests/cwf-design-plan if tests reveal design flaws