playbook/codex/skills/verification-before-completion/SKILL.md

49 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: verification-before-completion
description: "Evidence-based verification before claiming completion. Triggers: verify, verification, run tests, prove, 验证, 跑一下, 确认一下, 自证."
---
# Verification Before Completion先验证再宣称完成
## When to Use
- Any task where correctness matters (bug fixes, refactors, releases)
- When the environment is complex or assumptions are likely
## Inputsrequired
- What “done” means (acceptance criteria)
- The smallest verification command(s) that prove it
- Constraints: cannot run tests? no access? limited environment?
## Proceduredefault
1. **Define Success Signals**
- Tests passing, build artifacts produced, commands return 0
- Specific output text or file diffs
2. **Run the Smallest Check**
- Start narrow (changed module tests) then broaden if needed
3. **Record Evidence**
- Capture key output lines, exit codes, and relevant file paths
4. **Handle Gaps**
- If verification cant be run, say why and offer alternatives (manual checklist, static reasoning, targeted logs)
## Output Contractstable
- What changed
- What was verified (exact commands)
- Evidence (exit codes / key outputs)
- What was not verified (and why)
- Next steps (if any)
## Guardrails
- Dont claim “fixed” without a verification signal
- Prefer repeatable commands over subjective inspection