[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76Z60MKEYJTAHKMCQ6VGCXR":3,"skill-same:01M76Z60MKEYJTAHKMCQ6VGCXR":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M76Z60MKEYJTAHKMCQ6VGCXR","anti-hallucination-skill",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fanti-hallucination-skill\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# SKILL.md - Anti-Hallucination Protocol\n\n> *\"The first principle is that you must not fool yourself — and you are the easiest person to fool.\"* — Richard Feynman\n\nA runtime hallucination detection and mitigation skill for OpenClaw agents. Recognises the cognitive and behavioral signs of hallucination, then intervenes to restore grounded reasoning.\n\n**Based on 2026 Research:** HalluClear, MARCH, AgentHallu, Epistemic Stability, CRITIC, MetaCognition Patterns, ToolHalla Guardrails.\n\n## The Philosophy\n\n**Detection > Prevention.** Hallucinations cannot be fully prevented — LLMs generate text by predicting probable tokens, not by verifying truth. The question is not whether your agent will hallucinate. It is whether your agent catches itself when it does.\n\n**Self-Awareness > External Guardrails.** An agent that monitors its own reasoning is more effective than one that relies solely on post-hoc validation. The metacognitive loop — observe, critique, correct — must be internal.\n\n**Specificity > Generality.** Generic \"be careful\" instructions fail. Specific sign recognition, concrete intervention protocols, and measurable confidence thresholds succeed.\n\n## When to Activate\n\n**Automatic triggers — ANY of these activates the anti-hallucination protocol:**\n\n- [ ] Agent makes a factual claim without citation or source\n- [ ] Agent generates a file path, URL, or identifier that does not exist\n- [ ] Agent reports success without verifying the result\n- [ ] Agent provides a specific date, name, or number from memory without checking\n- [ ] Agent expresses high confidence (>90%) on a complex, uncertain topic\n- [ ] Agent contradicts information in its own context or memory files\n- [ ] Agent produces a tool call with parameters it cannot verify\n- [ ] Agent offers analysis on data it has not actually read\n- [ ] Agent describes system state without checking live status\n- [ ] User expresses doubt: \"Are you sure?\" \u002F \"Can you verify that?\"\n\n**Implicit triggers (monitor continuously):**\n- [ ] Tool call returns error but agent continues as if successful\n- [ ] Agent invents plausible-sounding but unverified details\n- [ ] Agent generalises from a single example\n- [ ] Agent uses absolute language (\"always\", \"never\", \"certainly\") on probabilistic topics\n\n## The Hallucination Taxonomy\n\nKnow what you're looking for:\n\n| Type | Description | Example |\n|------|-------------|---------|\n| **Intrinsic Factual** | Contradicts source material | Claims file exists when `read` returned error |\n| **Intrinsic Semantic** | Misrepresents meaning | Misreads config flag, draws wrong conclusion |\n| **Intrinsic Temporal** | Wrong timing\u002Fsequence | \"Yesterday I did X\" when memory shows no record |\n| **Extrinsic Factual** | Adds unverifiable but plausible info | Invents a specific version number not in docs |\n| **Extrinsic Non-Factual** | Adds obviously false info | Claims a feature exists that was never built |\n| **Reasoning Error** | Correct facts, wrong conclusion | \"Disk is 90% full, therefore upgrade needed\" (ignores tmp files) |\n| **Tool Hallucination** | Fabricates tool results | Reports command output without running it |\n| **Self-Hallucination** | False memory of own actions | \"I already fixed that\" when fix not in git |\n\n## The Recognition Protocol (5-Second Self-Check)\n\nBefore ANY output that contains facts, claims, or recommendations, ask:\n\n```markdown\n### Reality Check (5s)\n1. SOURCE: Do I have direct evidence for this claim? (file read, tool output, live check)\n2. VERIFICATION: Can I verify this right now with a tool call?\n3. CONFIDENCE: Am I >80% confident? If yes, am I >95% confident? Flag if yes.\n4. MEMORY: Is this from a file I actually read this session, or \"feels right\"?\n5. CONTRADICTION: Does this contradict anything in my context or memory?\n```\n\n**If ANY check fails:** Escalate to Grounding Protocol (below).\n\n## The Grounding Protocol (When Signs Detected)\n\n### Step 1: Stop and Flag\n```\n⚠️ HALLUCINATION CHECK TRIGGERED\nType: [intrinsic\u002Fextrinsic\u002Freasoning\u002Ftool\u002Fself]\nClaim: [the specific claim being questioned]\nConfidence: [self-assessed %]\nEvidence: [what I have \u002F what I lack]\n```\n\n### Step 2: Verify or Withdraw\n\n**If verifiable in \u003C30s:**\n- Run the tool call to check\n- Report actual result\n- Update confidence based on evidence\n\n**If not immediately verifiable:**\n- Withdraw the claim\n- Replace with: \"I do not have direct evidence for [X]. My sources: [list].\"\n- Offer to verify if user wants\n\n**If partially verifiable:**\n- Downgrade confidence explicitly\n- Distinguish verified from inferred: \"Confirmed: [A]. Inferred: [B].\"\n\n### Step 3: Document the Correction\n\nAdd to `memory\u002FYYYY-MM-DD.md`:\n```markdown\n### Hallucination Correction — [Time]\n- Claim: [what was wrong]\n- Type: [taxonomy type]\n- How caught: [which trigger fired]\n- Correction: [what replaced it]\n- Lesson: [pattern to watch for]\n```\n\n## The Confidence Calibration Rules\n\n**Never express certainty you don't have:**\n\n| Situation | Max Confidence Allowed | Required Action |\n|-----------|------------------------|-----------------|\n| Read file this turn | 95% | Cite line number |\n| Read file earlier | 85% | Re-read if challenged |\n| Memory from past session | 70% | Flag as \"from memory\" |\n| Inferred from pattern | 60% | State inference chain |\n| Heard in training data | 50% | Treat as unverified |\n| Pure intuition | 30% | Do not state as fact |\n\n## The Tool-Use Guardrails\n\n**Before reporting tool results:**\n1. Did the tool actually execute? (check for error output)\n2. Did I read the full output? (not just first few lines)\n3. Did I understand the output correctly? (re-read if ambiguous)\n4. Did I report what it says, not what I expected it to say?\n\n**Common tool hallucinations to watch for:**\n- Reporting `grep` results without checking if match is real\n- Claiming file exists based on path construction, not `ls`\u002F`test`\n- Interpreting error messages as success (e.g., \"not found\" = \"confirmed absent\")\n- Summarising JSON without parsing it properly\n- Inventing exit codes (\"command returned 0\" when you didn't check)\n\n## The Multi-Agent Validation Pattern\n\nWhen available (C1\u002FC2\u002FC3 coordination):\n\n```markdown\n### Cross-Agent Verification\n1. State claim to peer agent\n2. Peer evaluates: [agree \u002F disagree \u002F cannot verify]\n3. If disagree: both re-check sources\n4. Consensus required for >90% confidence claims\n5. Log disagreement in coordination channel\n```\n\n**For single-agent operation:** Use simulated peer review — state the claim, then critique it as if from an adversarial position.\n\n## The Metacognitive Loop (Continuous)\n\nEvery 5-10 minutes of active work, or at natural breakpoints:\n\n```markdown\n### Metacognitive Checkpoint\n- [ ] What have I claimed since last checkpoint?\n- [ ] Which claims were verified vs assumed?\n- [ ] Did any tool call fail silently?\n- [ ] Am I building on a potentially false foundation?\n- [ ] Should I re-verify my starting assumptions?\n```\n\n## Recovery Patterns\n\n**When caught hallucinating:**\n\n1. **Acknowledge immediately.** Do not double down. Do not deflect. \"I was wrong about [X].\"\n2. **Correct explicitly.** State the correction clearly, not buried in explanation.\n3. **Explain the gap.** \"I stated [X] because [reason]. The actual state is [Y].\"\n4. **Update memory.** Log the pattern so future-you watches for it.\n5. **Do not apologise excessively.** One clear correction beats three apologies.\n\n**When uncertain mid-task:**\n\n1. **State uncertainty.** \"I am not confident about [X]. Here is what I know: [...]\"\n2. **Offer verification path.** \"I can check this by running [tool].\"\n3. **Do not guess to maintain flow.** A pause for verification beats a cascade of errors.\n\n## Integration with OpenClaw\n\n**Add to AGENTS.md startup checks:**\n```markdown\n## Anti-Hallucination Protocol\nBefore any factual claim:\n1. Run 5-Second Self-Check\n2. If triggered, execute Grounding Protocol\n3. Log corrections to memory\n```\n\n**Add to every SKILL.md:**\n```markdown\n## Hallucination Risks\n[List domain-specific hallucination patterns for this skill]\n```\n\n**Add to TOOLS.md:**\n```markdown\n## Tool Verification Checklist\n- [ ] Command executed successfully?\n- [ ] Full output read and understood?\n- [ ] Result reported accurately, not inferred?\n```\n\n## Metrics\n\nTrack in `memory\u002Fhallucination-log.md`:\n\n```markdown\n## 2026-05-13 — Session Log\n- Total claims made: [N]\n- Verified claims: [N]\n- Hallucinations caught: [N]\n- Hallucinations missed (user caught): [N]\n- Recovery time: [avg seconds]\n```\n\n## Anti-Patterns (What NOT to Do)\n\n- ❌ \"I believe...\" — belief without evidence is a red flag\n- ❌ \"It should be...\" — should is not is. Check.\n- ❌ \"As I mentioned earlier...\" — verify you actually mentioned it\n- ❌ \"The system is...\" — which system? When did you last check?\n- ❌ \"That means...\" — does it? Trace the inference chain\n- ❌ \"Obviously...\" — obvious to whom? On what evidence?\n\n## Sources\n\n- ToolHalla.ai (2026) — AI Hallucination Guardrails That Actually Work\n- Zylos Research (2026) — MetaCognition Patterns for AI Agent Self-Monitoring\n- Zylos Research (2026) — LLM Hallucination Detection: State of the Art\n- CallSphere.ai (2026) — Hallucination Detection and Mitigation in AI Agent Systems\n- arXiv:2604.17284 — HalluClear: Diagnosing Hallucinations in GUI Agents\n- arXiv:2603.24579 — MARCH: Multi-Agent Reinforced Self-Check\n- arXiv:2603.10047 — Toward Epistemic Stability\n- arXiv:2601.06818 — AgentHallu: Benchmarking Hallucination Attribution\n\n---\n\n*Version 1.0 — May 2026 — Based on 2026 research landscape*\n*Remember: The agent that catches itself hallucinating is more valuable than the agent that never does.*\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fanti-hallucination-skill",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill anti-hallucination-skill",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill anti-hallucination-skill",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill anti-hallucination-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fanti-hallucination-skill\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":53},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":53},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":53},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":53},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":53},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":53},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]