Introduction¶
When using Large Language Models (LLMs) for fact-checking, technology selection, or solution evaluation, a common issue is that the responses are overly confident: numbers lack sources, tool availability relies solely on training memory, and conflicting sources are arbitrarily picked. While such outputs often flow smoothly in demos, they tend to fail when deployed in production or used in external communications.
The following introduces the Anti-Hallucination skill (@user_8d4ddd46/anti-hallucination-pro, currently v4.5.5) on SkillHub. It is not an external search engine plugin, but a set of behavioral constraints written in SKILL.md: when to enable it, six principles, five-dimension self-checks, five-level confidence scales, and two-pass verification before output. This is a community source published under the namespace user_8d4ddd46, maintained by 屠夫1868; the page is marked requires_api_key=false, meaning it does not rely on an additional API Key.
What is this¶
Anti-Hallucination is positioned as an AI behavior constraint rule aimed at reducing fabrication, made-up data, and excessive compliance (sycophancy). Compared to simply writing “please do not hallucinate” in a prompt, this skill writes trigger conditions, verification steps, output formats, and exception fallbacks into the skill body and references/ documentation, facilitating scenario-based routing by Agents.
SkillHub categorizes this under ai-agent. As of the data retrieval time, the skill has a rating of 100000 and 2738 downloads (based on SkillHub page statistics).
Core Features¶
Auto-Triggering & Exceptions¶
The skill should be enabled if any of the following conditions are met: verifiable factual information (data, citations, regulations, causality, predictions, time-sensitive information, etc.); user requests fact-checking; low-frequency or niche knowledge; tool selection, solution decisions, environment dependencies, or feasibility judgments. If unsure whether to trigger, the skill suggests enabling it by default.
Pure creative writing, translation, format conversion, and open discussions may skip the full suite; however, if creative content cites real figures or data, the factual parts must still be observed. Code scenarios involving API/library selection remain applicable. The principles of “no presumption, no pandering” apply in all scenarios.
Six Principles (Summary)¶
- Search Before Answering: In factual scenarios, search and verify before answering; time-sensitive information must be obtained in real-time; when referencing old information in multi-turn dialogues, return to the original sources. The three steps for sourcing are: Search → Cross-check at least two independent sources → Cite sources. In solution decision scenarios, key assumptions must be verified with tools to avoid asserting “probably needs installation” or “might not be supported” based solely on training data.
- Admit Ignorance: Clearly state uncertainty when information is insufficient; if only part of the question can be answered, mark the uncovered scope; if searches yield no results, explain what was searched and suggest where to look, rather than giving a vague refusal.
- Strictly Separate Facts and Inferences: Facts must be marked with sources; inferences must be marked as “derived based on XX”; speculation must be marked as “my speculation” and placed at the end.
- Data Citations Must Have Evidence: Numbers, dates, names, papers, legal clauses, etc., must be verified; if no source exists, use directional phrasing; fabrication of data or fictional institutions/literature is prohibited.
- Confidence Expression by Level: Five levels are defined: Certain, Very Likely, Possibly, Uncertain, Unknown. The skill includes Bayesian-style calibration guidance (priors, evidence exclusivity, updating with new evidence) to assist in labeling, but does not replace the aforementioned five-level terminology.
- Self-Check and Correction (Two-Pass Method): Pass 1 drafts the response and marks sources and confidence levels; Pass 2 reviews it from a skeptical perspective (see “Output Self-Check” below for details).
Five-Dimension Self-Check & Three Paths¶
Pass 2 selects a path based on the output type:
- Path A (Default Factual Statements): Dimension 1 “Factual Accuracy.”
- Path C (Analysis/Evaluation/Inference/Attribution/Summarization): Dimensions 1, 2, 4, 5 (skip Dimension 3).
- Path B (Containing Solutions/Recommendations/Decisions/Feasibility Conclusions): Full Dimensions 1–5.
The five dimensions are: Factual Accuracy, Reasonableness of Inference, Validity of Decision, Objectivity & Neutrality, and Logical Bias. In scenarios involving high-precision fields, user requests for strict verification, decision-making outputs for tool selection, or review suggestions for other skills, the full Pass 2 is mandatory, checking against the 22-item list in references/scene-review.md (using CoVe factor methods if necessary, see that document).
Verification Methods & Reliability¶
The skill lists six verification methods selectable by scenario: Traceability, Self-Check, Chain, Partition, Audit, and Backward Induction; selection guides and details are in references/verification-methods.md.
Reliability is described in three layers: Prevention (Principles + Confidence + Method Routing), Review (Pass 2 Checklist), and Correction (Full review triggered immediately upon user pointing out violations). The documentation also states: this is a prompt-level constraint, not an engine-level hard block; its effectiveness depends on the Agent’s adherence to the rules.
Installation & Activation¶
Install SkillHub CLI (if not installed)¶
command -v skillhub && skillhub --version
If not installed, run the full installation (CLI + Default Skill):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install Anti-Hallucination Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. Common path examples:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Command example (replace <skills directory> with your actual path):
skillhub install anti-hallucination-pro --namespace user_8d4ddd46 --dir <skills directory>
The SkillHub page also supports giving the prompt below to an AI to let it operate according to the official installation documentation:
Please install `@user_8d4ddd46/anti-hallucination-pro` according to https://skillhub.cn/install/skillhub.md.
After installation, enable or reference the skill in clients that support Skills; specific UI depends on the respective client documentation.
Typical Usage¶
The skill provides a comparable execution chain in references/guide.md. Below are the core steps for two types of scenarios (refer to the documentation for specific output phrasing).
Fact-Checking: Inconsistent Sources¶
If a user asks about a company’s revenue last year. The Agent should determine that “Verifiable Facts” are triggered → Search → Discover discrepancies between annual reports and media reports → Do not take sides, list sources side-by-side, analyze caliber differences, and label confidence. The gist of the conclusion in the documentation example: Annual report figure of 12 billion coexists with media report figure of 11.5 billion; the difference may stem from statistical calibers; it is suggested to prioritize the annual report, attaching sources and a “Very Likely” level.
Solution Decision: Verify Environment Before Asserting¶
If a user asks whether Python’s jieba can be used directly in the current environment. It should hit “Environment Dependency Judgment” → Do not rely on memory to say whether pip install is needed → Actually execute a check, for example:
python3 -c "import jieba"
Then explain whether it is already available and the Python version based on the command result. The source is marked as environment check, and confidence can be “Certain.”
When a user actively requests verification, even if auto-trigger conditions are not met, the Anti-Hallucination rules should be followed. The output can adopt the opening suggested by the documentation: “Verified according to Anti-Hallucination principles, results are as follows:”.
Applicable Scenarios & Notes¶
Suitable for: Fact-checking, technical Q&A requiring distinction between facts and inferences, solution and tool selection, decision assistance against hallucinations, and scenarios requiring answers with sources and confidence levels.
Not suitable for or requires weakening the full suite: Pure creative writing, translation, format conversion, open discussions (excluding factual sub-content).
Notes:
- No matter how detailed the rules are, effectiveness still depends on whether the model and Agent actually call search, read files, or run commands; users can point out violations directly to trigger the full review mentioned in the documentation.
- When coexisting with “Compute Saving” type skills, the Anti-Hallucination skill body requires priority: The two-pass method and mandatory verification scenarios must not be skipped to save tokens.
- High-precision fields (legal, medical, financial, etc.) require double-source cross-checking and added disclaimers; see the exception handling table in
SKILL.md.
Conclusion¶
Anti-Hallucination encapsulates “Search before answering, admit ignorance, stratify facts and inferences, mark confidence, and self-check before output” into an installable skill package, accompanied by scenario-based check paths and reference documentation. If the cost of hallucination in your workflow outweighs the cost of a few extra searches, you can install it into your skills directory using the commands above and give it a try.
- SkillHub Page: https://www.skillhub.cn/skills/user_8d4ddd46/anti-hallucination-pro
- Skill Coordinates:
@user_8d4ddd46/anti-hallucination-pro - Installation Guide: https://skillhub.cn/install/skillhub.md