chain-of-verification
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "chain-of-verification":https://skillpi.com/zh/skills/deepskill-db839b5a9442bd1d6d2aada50302e608800626cc08b1329575f967ced061381b。安装前核对上游来源和版本:https://github.com/serpro69/claude-toolbox。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
应用链式验证(CoVe)提示方法,通过自我验证提高回答准确性,适用于需要事实核查、技术准确性验证或多步推理的复杂问题场景。
介绍来源: third_party · serpro69 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: chain-of-verification
description: |
Apply Chain-of-Verification (CoVe) prompting to improve response accuracy through self-verification.
Use when complex questions require fact-checking, technical accuracy, or multi-step reasoning.<!-- codex: tool-name mapping applied. See .codex/scripts/session-start.sh -->
Chain-of-Verification (CoVe)
CoVe is a verification technique that improves response accuracy by making the model fact-check its own answers. Instead of accepting an initial response at face value, CoVe instructs the model to generate verification questions, answer them independently, and revise the original answer based on findings.
Conventions
- Read capy knowledge base conventions at shared-capy-knowledge-protocol.md.
Capy restriction: CoVe is a read-only verification tool. Do NOT call capy_index or capy_fetch_and_index during this workflow. Use capy_search only. If corrections reveal knowledge worth persisting, the calling agent handles indexing after CoVe completes.
When to Use This Skill
CoVe adds the most value in these scenarios:
Precision-required questions:
- Questions containing precision language ("exactly", "precisely", "specific")
- Complex factual questions (dates, statistics, specifications)
Complex reasoning:
- Multi-step reasoning chains (3+ logical dependencies)
- Technical claims about APIs, libraries, or version-specific behavior
Fact-checking scenarios:
- Historical facts, statistics, or quantitative data
- Technical specifications and API behavior
High-stakes accuracy:
- Security-critical code paths or analysis
- Code generation requiring accuracy verification
- Any response where correctness is critical
Self-correction triggers:
- When initial response contains hedging language ("I think", "probably", "might be")
Note: These heuristics can be copied to your project's CLAUDE.md if you want Claude to auto-invoke CoVe for matching scenarios. By default, CoVe requires manual invocation to give you control over when to invest additional tokens/time for verification.
Verification Modes
CoVe offers two verification modes to balance accuracy vs. cost:
Standard Mode ($kk:chain-of-verification)
Uses prompt-based isolation within a single conversation turn.
- Token cost: ~3-5x base tokens
- Isolation: Best-effort (mental reset instructions)
- Speed: Faster, single context
- Best for: Quick fact-checking, cost-sensitive scenarios
See chain-of-verification-process.md for the standard workflow.
Isolated Mode ($kk:chain-of-verification:isolated)
Uses Claude Code's Task tool to spawn isolated sub-agents for true factored verification.
- Token cost: ~8-15x base tokens
- Isolation: True (sub-agents have zero context about initial answer)
- Speed: Parallel execution minimizes latency
- Best for: High-stakes accuracy, codebase verification
Sub-agent customization flags:
| Flag | Effect |
|------|--------|
| --explore | Use Explore agent for codebase verification |
| --haiku | Use haiku model for faster/cheaper verification |
| --agent=<name> | Use custom agent type |
See chain-of-verification-isolated.md for the isolated workflow.
Mode Selection Guide
| Use Case | Recommended Mode |
|---|---|
| Quick fact-checking | $kk:chain-of-verification |
| High-stakes accuracy | $kk:chain-of-verification:isolated |
| Codebase verification | $kk:chain-of-verification:isolated --explore |
| Cost-sensitive verification | $kk:chain-of-verification or $kk:chain-of-verification:isolated --haiku |
Workflow
Mandatory order — questions before verification. The flow below is strictly sequential. Do not answer verification questions, consult external sources, or revise the original response until you have generated the full initial response and formulated all verification questions. Jumping to verification before questions are fully formed collapses the independence that makes CoVe effective.
- Generate initial response. Produce a baseline answer to the user's question. This is the subject matter — it exists in context but is not yet verified.
- Formulate verification questions. Create 3–5 targeted questions designed to expose errors in the initial response. The questions must be formulated without consulting external sources — they probe the response's own claims.
- Independent verification. Answer each question independently, without referencing the initial response. Use
capy_searchif needed. In isolated mode, sub-agents handle this step. - Reconciliation. Compare verification answers against the initial response. Revise where discrepancies are found.
See chain-of-verification-process.md for the standard workflow, or chain-of-verification-isolated.md for the isolated sub-agent workflow.
Invocation
Use the $kk:chain-of-verification skill followed by your question:
$kk:chain-of-verification What is the time complexity of Python's sorted() function?
Or invoke $kk:chain-of-verification after receiving a response to verify it.
For isolated verification with sub-agents:
$kk:chain-of-verification:isolated What is the time complexity of Python's sorted() function?
With flags:
$kk:chain-of-verification:isolated --explore How does the auth system work?
$kk:chain-of-verification:isolated --haiku What year was TCP standardized?
Natural Language Invocation
Claude should recognize these phrases as requests to invoke the CoVe skill:
- "verify this using chain of verification"
- "use CoVe to answer"
- "fact-check your response"
- "double-check this with verification"
- "use self-verification for this"
- "apply chain of verification"
- "verify this answer"
For isolated mode:
- "use isolated verification"
- "verify with sub-agents"
- "use factored verification with isolation"
Important: This is guidance for manual recognition only. Auto-trigger is NOT implemented by default per design goals. Users who want automatic CoVe invocation for certain scenarios can add the heuristics from "When to Use This Skill" to their project's CLAUDE.md.
版本历史
-
v0.25.4
GitHub ↗
原版更新说明
## What's Changed * Protect repo-local kubeconfig files as guard secrets by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/190 * Remove ignored Codex auto-review settings by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/193 * Apply destructive rules to commands spawned from inline code by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/191 * Add docs explore page around real catches from capy by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/194 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.3...v0.25.4
-
v0.25.3
GitHub ↗
原版更新说明
## What's Changed * Apply YAGNI to design plans and make scope reviews two-sided by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/189 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.2...v0.25.3
-
v0.25.2
GitHub ↗
原版更新说明
## What's Changed * Add manual task handoffs through secret gists by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/187 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.1...v0.25.2
-
v0.25.1
GitHub ↗
原版更新说明
## What's Changed * Preserve guard denial diagnostics in Codex adapters by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/185 * Keep vendored Go profile references self-contained by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/186 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.0...v0.25.1
-
v0.25.0
GitHub ↗
原版更新说明
## What's Changed * Revamp permission guard engine by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/178 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.24.1...v0.25.0
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对复杂问题提供事实核查和多步推理验证,具有明确的实用价值
- 适用于高精度要求的技术问题和关键决策场景
亮点
- 触发词覆盖全面,包含标准模式和隔离模式的多种变体
- 自然语言触发短语设计合理,边界清晰
亮点
- 文档结构完整,包含详细的工作流程和使用指南
- 提供了清晰的模式选择指南和调用示例
待提升项
-
缺少部分错误处理细节 原报告严重程度:轻微
文档中提到了capy_search工具的使用限制,但对搜索失败等异常情况的处理说明不够详细
改进建议:建议补充capy_search失败时的fallback机制和错误处理流程
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。