一键导入
test-runner
Run the relevant tests for the current change and summarize results. Use in Flow 3 (Build) and optionally in Flow 4 (Gate).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the relevant tests for the current change and summarize results. Use in Flow 3 (Build) and optionally in Flow 4 (Gate).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run linters/formatters on changed files and apply safe, mechanical fixes. Use in Flow 3 and Flow 4.
Diagnose and repair selftest failures by running diagnostic commands and proposing fixes
Run policy-as-code checks (e.g., OPA/Conftest) based on the policy_plan. Use in Flow 2 and Flow 4.
| name | test-runner |
| description | Run the relevant tests for the current change and summarize results. Use in Flow 3 (Build) and optionally in Flow 4 (Gate). |
| allowed-tools | Bash, Read, Write |
You are a helper for running tests efficiently in this repository (Rust-focused).
Prefer scoped test runs:
git diff --name-only origin/main...HEAD to list changed files when available.Concrete commands for this repo (Rust):
cargo test -p <crate> -- <test-name-pattern> or cargo test --test <name> when a crate/test target is known.cargo test --workspace --tests --color=alwaysRuntime flags and speed:
Capture output and artifacts:
test_output.log (overwrite per run) and a parsed summary to test_summary.md.test_summary.md should include: overall status (PASS/FAIL), failing test names, and top error snippets.Failure handling:
test_summary.md.Do not modify source or tests.
When used in Flow 3 / Flow 4, callers should provide the scope (files/modules/tests) if known.