with one click
validate
运行完整质量门(pytest)并按 PASS/FAIL 格式报告结果。提交前必须运行。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
运行完整质量门(pytest)并按 PASS/FAIL 格式报告结果。提交前必须运行。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
读取计划文件,按依赖顺序执行每个任务并做任务级验证,最后写实现报告到 reports/<feature>-implementation-report.md。
分析功能需求,读取代码库,识别风险,将计划写入 plans/<feature>-plan.md。此阶段不写代码。
Build, audit, and improve lightweight harnesses for AI coding agents: AGENTS.md/CLAUDE.md, feature state, verification workflows, scope boundaries, lifecycle handoff, memory persistence, context control, tool safety, and multi-agent coordination.
| name | validate |
| description | 运行完整质量门(pytest)并按 PASS/FAIL 格式报告结果。提交前必须运行。 |
| disable-model-invocation | true |
运行完整质量门并报告每条命令的 PASS/FAIL。
这与 Stop hook 自动执行的门相同。提交前请显式运行一次。
python scripts/validate.py
该命令内部运行:
python -m unittest discover -s tests -v
运行完成后,输出:
验证门结果
==========
pytest (unittest) : PASS / FAIL(N 个测试)
整体: PASS / FAIL
列出失败的测试名称和第一条错误信息。只修复根本原因,不要绕过测试。修复后重跑 /validate。
工作区干净,可以提交。
stop_validate.py)在 Agent 结束时自动运行此门。如果它阻止结束,说明测试未通过——修复后继续即可。python -m unittest tests/test_chunker.py -v,但最终提交前必须跑完整验证门。