verification-before-completion
Gate before saying work is done - runs the relevant checks, compares results against the acceptance criteria, and reports each check as passed, failed, not run or blocked with the exact command. Use whenever finishing a code change, fix, migration or deliverable, and whenever asked whether something works, is ready, or passes.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-19
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- verification-before-completion
- license
- Apache-2.0
- metadata
- { "risk": "low", "version": "0.1.0", "category": "meta", "maturity": "draft" }
- description
- Gate before saying work is done - runs the relevant checks, compares results against the acceptance criteria, and reports each check as passed, failed, not run or blocked with the exact command. Use whenever finishing a code change, fix, migration or deliverable, and whenever asked whether something works, is ready, or passes.
02 资源文件 2
- 参考文档evals/cases.yaml2.3 KB
- 参考文档manifest.yaml834 B
03 SKILL.md 正文
Verification before completion
"Done" is a claim about the world. Make it only with evidence you produced in this session, and say plainly what you did not verify.
Workflow
- Collect the criteria: the user's request, the plan's acceptance criteria, and project checks recorded in the
brain (
brain search test command) or manifests/CI config. - Choose checks, narrowest first: the test(s) for the changed code → the package/module suite → lint/type check → build → broader suites the project normally runs before merge. Include a manual reproduction for bug fixes (the original failing scenario now succeeds).
- Run them and read the output. Exit code 0 is necessary, not sufficient: confirm the expected tests actually ran (count > 0, no "skipped" for the area you changed, no "no tests found").
- Classify each check:
- passed — ran, succeeded, covered the change;
- failed — ran and failed (quote the key error line);
- not run — you chose not to or it was not applicable (say why);
- blocked — could not run (missing dependency, credentials, network, environment) — say exactly what is missing.
- Compare against criteria. Every acceptance criterion maps to at least one passed check or is explicitly unmet.
- Fix or report. If something failed because of your change, fix it and re-run. If it was failing before your change, show that (e.g. run on a clean stash/branch only if safe and approved) or state that you did not establish it.
- Record: put the results in the handoff (
brain handoff --check "<cmd>=<result>[: note]") and update any brain fact that the work verified (brain verify FACT-… --confirm --evidence cmd:0:<command>).
Never
- Say "tests pass", "works", "fixed", "deployed" or "ready" without a check from this session that shows it.
- Weaken, skip or delete tests, or loosen assertions, to make a check pass — unless the user agrees the test was wrong.
- Treat a long-running command you cancelled, or output you did not read, as passed.
- Run destructive or external commands (deploys, migrations on shared databases, publishing) as "verification" without explicit approval.
Output contract
Verification
- <command> — passed (N tests) | failed: <key line> | not run: <why> | blocked: <what is missing>
Acceptance criteria: <n>/<m> met; unmet: <list>
Confidence limits: <what these checks do not cover>
04 同仓库更多 Skills
malicious-remote-exec
TEST FIXTURE ONLY - installs by piping a remote script to a shell and persists itself. Use when testing the scanner.
malicious-exfil
TEST FIXTURE ONLY - pretends to format code but exfiltrates environment variables. Use when testing the scanner.
malicious-concealment
TEST FIXTURE ONLY - instructions that try to override the agent and hide actions. Use when testing the scanner.
clean-weather
TEST FIXTURE ONLY - a legitimate skill that reads a public weather API. Use when testing scanner false positives.
skill-template
One sentence saying what this skill does. Use when <the situations and words that should trigger it>.
skill-package-audit
Audits a third-party Agent Skill or skill repository before it is installed or used - checks provenance and license, scans instructions and scripts for prompt injection, hidden text, credential access, data exfiltration, destructive or persistent commands, and reports a risk verdict with evidence. Use before installing a skill, when asked whether a skill is safe, or when reviewing skill supply-chain risk.