Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By instantX-researchv1.0.0MITIn 1 marketplace
Makes Claude say it does not know, or hedge, instead of guessing facts, citations, dates or numbers. Runs as an always-loaded CLAUDE.md guardrail or as a skill that loads only when the context seems high-risk.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
hallucination, accuracy, honesty, guardrails, fact-checking, citations, guidelines, anti-hallucinate
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
"Hallucinations are hard to anticipate, hard to catch, and the wrong answer often looks exactly like it could be the right one." — Anthropic
A set of behavioral guidelines to reduce AI hallucinations in Claude Code, derived from Anthropic's official explanation of why AI models hallucinate and practical tactics to catch and prevent it.
AI models work by predicting the next word based on patterns learned from massive text datasets — similar to how your phone suggests the next word as you type, but at a much larger scale. When asked about obscure or niche topics, there isn't enough training data to draw from — so the model takes a guess. Combined with the training objective to be helpful, the model would rather produce a plausible-sounding answer than admit ignorance. Think of it like a well-read friend who takes pride in knowing everything — they'd sometimes rather say something confidently wrong than say "I don't know."
The key insight: being honest IS being helpful — they reinforce each other, not compete. Saying "I don't know" is not a failure — it's the more helpful response.
Anthropic regularly tests Claude with thousands of trick questions — obscure facts, niche topics, questions where the truthful answer is "I don't know" — and measures how often it correctly expresses uncertainty, whether it fabricates citations, and how often it hedges appropriately vs. states something false with confidence. Each version improves, but this remains an ongoing challenge for the entire AI field, not a solved problem. And as hallucinations become rarer, users check less — making the remaining errors more dangerous, not less.
These are strategies you can use in your prompts to reduce hallucinations:
Tell the AI to back up its claims with sources. If it already gave sources, ask it to check that those sources actually support what it's saying — not just that they exist.
Tell the AI upfront: "It's okay if you don't know." This reduces the pressure to guess and makes honest responses more likely.
Ask the AI: "How confident are you? Is anything in your answer potentially wrong?" Often the AI knows it's uncertain but presented the answer confidently anyway.
Start a new conversation and ask the AI to find errors in the previous answer and confirm that sources support the statements. A fresh context avoids confirmation bias.
For important work, never rely on AI alone. Be skeptical of specific numbers, dates, and citations — cross-check them against trusted primary sources.
If something in the AI's response sounds off or feels too convenient, don't let it pass — ask follow-up questions to probe the claim. Hallucinations often unravel under targeted questioning.
Option A: CLAUDE.md (Recommended)
Because anti-hallucination is a guardrail that should apply to every factual claim, CLAUDE.md is preferred — it's always loaded into context, so there's no risk of the skill failing to trigger at the moment you need it most.
A1: Global — one install, all projects (Recommended)
Append to your user-level ~/.claude/CLAUDE.md, which Claude Code loads for every project automatically:
mkdir -p ~/.claude
echo "" >> ~/.claude/CLAUDE.md
curl https://raw.githubusercontent.com/instantX-research/anthropic-anti-hallucinate-skills/main/CLAUDE.md >> ~/.claude/CLAUDE.md
A2: Per-project — share with your team via git
Install into the project root so teammates pulling the repo pick up the same guardrails automatically.
New project:
curl -o CLAUDE.md https://raw.githubusercontent.com/instantX-research/anthropic-anti-hallucinate-skills/main/CLAUDE.md
Existing project (append):
echo "" >> CLAUDE.md
curl https://raw.githubusercontent.com/instantX-research/anthropic-anti-hallucinate-skills/main/CLAUDE.md >> CLAUDE.md
Option B: Claude Code Plugin
From within Claude Code, first add the marketplace:
/plugin marketplace add instantX-research/anthropic-anti-hallucinate-skills
Then install the plugin:
/plugin install anti-hallucinate@anthropic-anti-hallucinate-skills
And reload plugins to apply:
/reload-plugins
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub instantx-research/anthropic-anti-hallucinate-skills --plugin anti-hallucinatePlugins from other owners that cover similar ground