chain-of-verification
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "chain-of-verification" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-db839b5a9442bd1d6d2aada50302e608800626cc08b1329575f967ced061381b. Verify the upstream source and version against https://github.com/serpro69/claude-toolbox before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Applies the Chain-of-Verification (CoVe) prompting method to improve answer accuracy via self-verification; suitable for complex questions requiring fact-checking, technical accuracy checks, or multi-step reasoning.
Introduction source: third_party · serpro69 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- <!-- codex: tool-name mapping applied. See .codex/scripts/session-start.sh -->
- Audience
- 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 hedgi
- Testing
- Not tested
Browse files
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.
Version history
-
v0.25.4
GitHub ↗
Original release notes
## 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 ↗
Original release notes
## 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 ↗
Original release notes
## 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 ↗
Original release notes
## 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 ↗
Original release notes
## 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
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对复杂问题提供事实核查和多步推理验证,具有明确的实用价值
- 适用于高精度要求的技术问题和关键决策场景
Highlights
- 触发词覆盖全面,包含标准模式和隔离模式的多种变体
- 自然语言触发短语设计合理,边界清晰
Highlights
- 文档结构完整,包含详细的工作流程和使用指南
- 提供了清晰的模式选择指南和调用示例
Areas to improve
-
缺少部分错误处理细节 Reported severity: Minor
文档中提到了capy_search工具的使用限制,但对搜索失败等异常情况的处理说明不够详细
Recommendation: 建议补充capy_search失败时的fallback机制和错误处理流程
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.