maximus-chain-of-verification
Skill1 starsChanged 4 months agoMITView on GitHub
Chain-of-Verification on a draft: generate independent check questions, answer each without the draft in context, revise, and output a claim-by-claim confidence ledger. Never invents sources. Use for 'fact-check', 'verify', 'reduce hallucinations', 'double-check the claims', 'verified report'.
In this repository49 other files it gives its agents.
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- file-opsSkill
- maximus-agent-designSkill
- maximus-ai-cost-controlSkill
- maximus-ai-data-pipelineSkill
- maximus-ai-fluency-for-buildersSkill
- maximus-ai-product-specSkill
- maximus-ai-safety-governanceSkill
- maximus-ai-ux-patternsSkill
- maximus-brainSkill
- maximus-build-featureSkill
- maximus-code-reviewSkill
- maximus-contact-intelligenceSkill
- maximus-counterparty-discoverySkill
- maximus-debug-incidentSkill
- maximus-deep-research-proSkill
- maximus-deep-researchSkill
- maximus-design-specSkill
- maximus-devops-shipSkill
- maximus-eval-and-testSkill
- maximus-fine-tuningSkill
- maximus-fintech-paymentsSkill
- maximus-investigative-researchSkill
- maximus-k3-model-selectionSkill
- maximus-k3-self-hostingSkill
- maximus-literature-reviewSkill
- maximus-llm-model-selectionSkill
- maximus-local-research-assistantSkill
- maximus-local-research-assistantSkill
- maximus-mlops-deploySkill
- maximus-ollama-opsSkill
- maximus-openclaw-localSkill
- maximus-people-finder-recruiterSkill
- maximus-people-finderSkill
- maximus-plan-implementationSkill
- maximus-prompt-engineeringSkill
- maximus-python-scientificSkill
- maximus-rag-pipelineSkill
- maximus-replit-handoff-proSkill
- maximus-slm-evalSkill
- maximus-slm-local-finetuneSkill
- maximus-slm-local-stackSkill
- maximus-slm-tool-callingSkill
- maximus-transaction-analystSkill
- maximus-write-articleSkill
- memory-keeperSkill
- skill-templateSkill
- web-researchSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Say "I don't know.": If the verification cannot confirm a claim, that is a first-class outcome.
- Distinctive: line 57
Capture source URLs: Every confirmed answer keeps its source.
- Distinctive: line 100
Never invent a source URL: If verification cannot find a supporting source, the claim is not confirmed.
- Distinctive: line 103
Never silently rewrite the draft: Every material change goes in the ledger.
- Distinctive: line 105
Never treat a verification pass as final: If the user pushes back on a specific claim, run a targeted second pass on that claim only.
- Very specific: line 111
After maximus-deep-research (aggregation) → catches over-eager synthesis
- Very specific: line 112
After maximus-deep-research-pro (inference) → catches inference that outran its evidence
- Very specific: line 113
After maximus-investigative-research → catches single-source claims that need corroboration
- Very specific: line 114
After maximus-literature-review → catches citation drift (paper A cited for a claim actually from paper B)
- Very specific: line 115
After maximus-write-article → last pass before publishing
- Very specific: line 116
After maximus-counterparty-discovery → mandatory before any external outreach or compliance-relevant claim
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WHEN TO USE
Load this skill when the deliverable is a factual claim, research synthesis, report, memo, or brief and the cost of a hallucinated claim is real.
Specific triggers:
- "Fact-check this"
- "Verify these claims"
- "Reduce hallucinations in this draft"
- "Double-check before I send"
- "Grade the confidence on each claim"
- "Which of these numbers can we actually trust?"
- Any high-stakes deliverable — legal, clinical, financial, journalistic, competitive intel, board-facing
Also load when the user just finished a deep-research or synthesis pass and is about to publish, present, or send it. CoVe as a final layer catches what a first-pass draft misses.
WHEN NOT TO USE
- Casual conversation, brainstorming, creative writing → CoVe is expensive; do not spend the tokens
- Answers that are purely opinion or subjective judgment (no verifiable claims) → nothing to verify
- Single-sentence lookups → simpler to just re-run the search
- User already ran a verification pass in the same session → do not re-run without new information
CORE PRINCIPLE
Independent verification means independent context. The verification questions must be answered without the draft in the model's context. If the draft is still visible, the model will re-confirm its own claims — that is not verification, that is a rubber stamp.
WORKFLOW
Phase 1 — Draft (input)
The draft is either provided by the user, produced by an upstream skill (maximus-deep-research, maximus-deep-research-pro, maximus-write-article, maximus-investigative-research, maximus-literature-review), or generated in the same turn. Do not attempt to run CoVe on an empty input.
Phase 2 — Question generation
Scan the draft. Extract every verifiable claim. For each claim, generate 1–3 independent verification questions.
Rules:
- Verifiable claims only. Numbers, dates, names, quotes, causal claims, attributions, benchmark scores, product features. Skip opinions, style, framing.
- Neutral questions. "What is X?" not "Is it true that X = 42?" — leading questions bias the verification.
- Atomic. One question per fact. Do not bundle.
- Answerable independently. The verification question must be answerable without the draft being visible. If it references "the study mentioned above," rewrite.
Store as verification-questions.json (see references/output-format.md).
Phase 3 — Independent answering
Answer each verification question without the draft in context. Use fresh tool calls (search, fetch, connectors) as if the draft did not exist.
Rules:
- Fresh context per question. In practice: spawn a sub-agent or clear context before answering. The skill's runner script does this automatically.
- Say "I don't know." If the verification cannot confirm a claim, that is a first-class outcome. Do not hedge into a soft confirmation.
- Capture source URLs. Every confirmed answer keeps its source. Every "cannot confirm" records what was searched.
- Do not re-cite the draft's own sources without re-fetching them. A URL might have said something different than the draft claimed; re-check.
Store as verification-answers.json.
Phase 4 — Revision
Merge verification answers back into the draft. For each claim:
- Confirmed by independent verification → keep the claim, keep the source, mark confidence: high.
- Partially confirmed (verification found a different number, close but not exact) → revise the claim to match the verified value, mark confidence: medium, note the correction inline.
- Contradicted by verification → remove the claim OR replace with the verified version, mark confidence: high (for the replacement), keep a "was: [original]" note.
- Cannot confirm → either soften ("appears to be" / "reportedly") with an explicit confidence: low tag, or remove the claim outright. Never silently keep an unconfirmed claim.
- Opinion or subjective framing → pass through unchanged. Not CoVe's job.
Output the revised draft plus a claim-by-claim ledger.
OUTPUT FORMAT
Deliver three things, in this order:
1. Revised draft
The corrected text, ready to use. Any inline citations point to sources that the verification pass actually re-fetched.
2. Claim ledger
Table of every verifiable claim with:
| # | Claim (verbatim) | Verification question | Verified answer | Source URL | Confidence | Action |
| 1 | [claim] | [Q] | [A] | [URL] | high / medium / low | kept / revised / removed |
3. Change summary
Three-line rollup:
- Claims kept as-is: N
- Claims revised: N (list any that changed materially)
- Claims removed: N (list each with the reason)
HARD RULES
- Never verify a claim in the draft's own context. Independent context is the whole point. If it is not independent, it is not verification.
- Never invent a source URL. If verification cannot find a supporting source, the claim is not confirmed. Full stop.
- Never label a claim "verified" that was only checked against the same source the draft used. Re-fetch or use an independent source.
- Never suppress a "cannot confirm." Users need to see what could not be checked.
- Never silently rewrite the draft. Every material change goes in the ledger.
- Never run CoVe on non-factual content. Opinions, style, framing, and narrative are out of scope.
- Never treat a verification pass as final. If the user pushes back on a specific claim, run a targeted second pass on that claim only.
INTEGRATION WITH OTHER MAXIMUS SKILLS
CoVe is a post-processing skill. It wraps other research skills:
- After
maximus-deep-research(aggregation) → catches over-eager synthesis - After
maximus-deep-research-pro(inference) → catches inference that outran its evidence - After
maximus-investigative-research→ catches single-source claims that need corroboration - After
maximus-literature-review→ catches citation drift (paper A cited for a claim actually from paper B) - After
maximus-write-article→ last pass before publishing - After
maximus-counterparty-discovery→ mandatory before any external outreach or compliance-relevant claim
RESEARCH BASIS
Chain-of-Verification originated in Dhuliawala et al., 2023 (arXiv:2309.11495). Reported hallucination reduction is 40–60% across list-based questions, closed-book QA, and long-form generation, depending on domain and base model.
The skill implements the "factored" variant — independent verification questions answered in isolation — which the original paper found strongest. Do not use the "joint" variant (all questions answered together with the draft visible); it under-performs and is what most naive fact-check prompts collapse into.
See references/cove-paper-notes.md for method details and references/reliability-comparison.md for how CoVe fits alongside RAG grounding, self-consistency, and process supervision.
Recent (2026) practice notes
- Anthropic's alignment/process-supervision work (2026) shows chain-of-thought verification reduces error rate ~35% vs direct answer. CoVe is a specific, well-defined instance of this family.
- Clinical and legal deployments (2026) commonly pair CoVe with retrieval grounding — see
references/high-stakes-domains.md. - Token cost: CoVe roughly doubles output tokens versus a direct answer. Budget accordingly. It is not a default-on layer; it is a "before you send" layer.
OUTPUT TEMPLATE
Deliver in this exact order:
## Revised draft
[corrected text]
## Claim ledger
| # | Claim | Q | Verified answer | Source | Confidence | Action |
|---|---|---|---|---|---|---|
[rows]
## Change summary
- Kept: N
- Revised: N — [list material changes]
- Removed: N — [list each with reason]
## Cannot confirm
[list of claims whose verification returned "no confirming source" — surfaced explicitly so the user decides whether to keep, soften, or cut]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

