verification-planning
它能做什么
这个技能在编写代码之前,规划如何确认计划中的变更有效。适合希望为自己的系统设计清晰测试路径的开发者。
适用场景
- ✓你即将构建某个功能、修复缺陷或重构,并希望有清晰的检查方式的时候。
- ✓变更跨越系统的多个部分,风险不明显的时候。
- ✓你需要决定在宣布工作完成之前,哪些证据就已足够的时候。
技能链接
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/verification-planning/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们修改支付流程之前,请规划如何在我们的系统中验证这项变更是有效的。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能说明需要证明的主张,以及最重要的失败情况。然后设计最切实可行、符合系统的证据路径,并注明其局限。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Verification Planning
Build an evidence path
Before changing a non-trivial system, build an evidence path: a project-specific route from the claim being made to evidence that can establish, limit, or refute it.
The purpose is not to select a familiar technique. The purpose is to decide how this system can reveal the truth of this particular change.
1. Frame the claim
State the behavior that needs to become true and the conditions that could make a confident conclusion wrong.
Consider what must change, what must remain true, where the behavior crosses a boundary, and which failure would matter most.
Complete when: the claim, its meaningful uncertainty, and its important failure modes are concrete enough to investigate.
2. Design the evidence path
Derive possible evidence paths from the system itself: its controllable inputs, observable effects, state transitions, invariants, boundaries, artifacts, and ability to repeat or reverse a scenario.
Generate alternatives before choosing. Prefer the path that produces a trustworthy conclusion with proportionate cost, safety, and effort.
Complete when: there is a preferred path, its limitations are understood, and a weaker or stronger alternative is available if circumstances change.
Set a verification budget
At the final state, state the distinct claims, assign one owner to establish or refute each, and choose the minimum non-duplicative evidence that covers the claims and important boundaries. Reuse evidence only while its relevant code, inputs, environment, and state remain valid. Required repository and release checks still apply; broaden or repeat verification only when a stated condition justifies it.
3. Create a verification affordance when needed
When the existing system leaves the decisive truth too indirect or ambiguous, extend the evidence path with a verification affordance: the smallest capability that makes the relevant state controllable, observable, repeatable, and diagnosable for an agent.
Ask what capability would let an agent establish the claim directly, repeat the scenario from a known state, and explain a failure without inference. Prefer an affordance that strengthens directness, determinism, agent-legibility, isolation, resetability, or future reuse.
Treat the affordance as part of the evidence path, not an automatic product feature. Decide deliberately whether it is temporary or durable before building it.
Complete when: the chosen path can establish the claim directly enough for its stakes, and any needed affordance has a defined lifecycle.
4. Research when the path is unknown
When the right evidence path depends on an unfamiliar dependency, framework,
external service, or rapidly changing capability, ask @explorer for focused
research before committing to an approach.
Ask for official or project-specific facilities, constraints, and trade-offs that affect this exact verification problem. Use existing project evidence directly when it already resolves the choice.
Complete when: the chosen path rests on known capabilities and real constraints rather than assumption.
5. Make the path runnable
Prepare only the support needed to follow the evidence path reliably. Keep the support narrow, repeatable, and safe to inspect.
Decide whether that support has recurring value or exists only to resolve the current uncertainty. Retain durable value deliberately; remove temporary support once it has served its purpose.
Ask before introducing dependencies, persistent diagnostic surfaces, or structural changes whose sole purpose is evidence gathering.
Complete when: the path can be followed without guessing about setup, state, or interpretation.
6. Close the evidence path
After implementation, follow the planned path and interpret the resulting evidence against the original claim.
Report whether the claim was established, limited, or refuted; distinguish known facts from remaining uncertainty.
Complete when: a future reader can see what supports the conclusion and what remains outside its reach.
Scope
Use this skill proportionately. Small mechanical changes can follow ordinary project checks directly. For larger multi-phase work, let this skill establish the evidence path that later work follows.
常见问题
什么是证据路径?
它是从所作主张到能够确认或否定该主张的检查之间的规划路线。
它适用于哪些人?
它适用于非简单的变更,例如跨系统工作,因为简单的测试可能不够。
它会为检查指定负责人吗?
会。这个技能描述了一种验证预算,每个不同的主张都有一个负责人。
详情
作者的原始描述
Use before implementing a feature, bug fix, refactor, or cross-system change to plan a credible project-specific verification path.
热度
- GitHub 星标
- 10k
- 排名
- #12019
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …