Fact Check Guard(事实核查护栏)
Fact-check guard for AI-generated content: turn key claims into verifiable propositions and tag each against retrieved sources as supported, refuted or unverifiable before publishing. 当用户说『AI胡说八道』『内容发出去怕有错』『怎么验证模型给的事实』『引用要有出处』,或要把 agent 生成的内容(文章/报告/回复)对外发布、必须可溯源时使用。把每条关键声明当『待证主张』:对照检索来源逐条标注 已支撑/无来源/存疑,无来源的不许当事实对外。理论根基:LGD 三律(有籍·有证·有门禁)。触发词:事实核查、fact check、幻觉检测、引用溯源、内容可证、AI胡说、出处校验、grounding。
凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范
English
When to use
- When the user questions the truthfulness of generated content, or voices worries like "the AI talks nonsense" or "I'm afraid of errors before this goes out".
- When factual claims in the model's answer must be verified, and concrete sources / citation tracing are required.
- When agent-generated articles, reports or replies are about to be published externally and must be verifiable and traceable.
Usage
- Run:
python fact_guard.py --input <text-to-check> - Enable strict-mode checking:
fact_guard check --mode strict --rules lgd_three_laws - Read a file and analyze its provenance:
fact_guard analyze --file <report-path> --cache __pycache__Parameters:--inputis the text to verify;--modeacceptsnormal/strict, orlgd_three_lawsto engage the theoretical root.
Workflow
- Extract claims: identify the key statements in the input and mark them as "claims to be proven".
- Retrieve evidence: run the script to search retrieved sources, looking for matching external knowledge bases or documents.
- Compare & label: per the results, tag each claim as "supported / unsourced / dubious".
- Gate: content tagged "unsourced" is forbidden from going out as fact.
- Report: emit a verdict with confidence levels and citation links for decision-making.
Evidence & safety statement
- Evidence: TBD (no evaluation / badge link yet; update here once it is produced)
- Version: 1.1.1
- Security: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.
中文
何时用
- 当用户质疑生成内容的真实性,或表达「AI 胡说八道」、「内容发出去怕有错」等担忧时。
- 需要验证模型回答中的事实主张,并要求提供具体出处、出处校验或引用溯源证据时。
- 在将 Agent 生成的文章、报告或回复准备对外发布、需确保内容可证及可追溯时使用。
用法
- 调用命令:
python fact_guard.py --input <待核查文本> - 启用严格模式校验:
fact_guard check --mode strict --rules lgd_three_laws - 读取文件分析溯源:
fact_guard analyze --file <报告路径> --cache __pycache__参数说明:--input为待验证文本;--mode可选normal/strict或lgd_three_laws启用理论根基。
流程
- 提取主张:识别输入中的关键陈述并标记为「待证主张」。
- 检索证据:执行脚本对照检索来源,查找匹配的外部知识库或文档。
- 比对标注:依据结果将每条声明标注为「已支撑/无来源/存疑」。
- 门禁控制:对标记为「无来源」的内容禁止作为事实对外输出。
- 生成报告:输出含置信度等级与引用链接的核查结论供决策参考。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.1.1
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
Ecosystem / 生态入口
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
- Ecosystem hub / 生态总入口: https://zhaoxinghua09-cell.github.io/lgd-hub/
- LGD theory (canonical) / 理论正本: https://github.com/zhaoxinghua09-cell/LGD
- Formal paper (DOI) / 形式化论文: https://doi.org/10.5281/zenodo.22456647
- Protocol & reference implementation / 协议与参考实现: https://github.com/zhaoxinghua09-cell/uibc-core
- Source of this skill / 本包源码: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/fact-check-guard
- All published skills / 全部已发布技能: https://github.com/zhaoxinghua09-cell/agent-skills
- AI-readable index / AI 说明书: https://github.com/zhaoxinghua09-cell/agent-skills/tree/main/skills/fact-check-guard/llms.txt
Looking for something else? / 还想要别的?
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。
Data handling / 数据处理边界
- 默认不向任何外部地址发送数据:扫描结果、报告、命中明细一律只写本地或只打印到当前会话。
- 如需外发(告警、工单、邮件、IM),必须由人先明确指定接收方,并在每次发送前逐次确认;本技能不预设、也不硬编码任何接收端。
- 只处理调用者明确指定的目标路径,不遍历无关目录,不跟随符号链接,不读取目标之外的凭据文件。
- 命中内容在输出时按需脱敏,避免把敏感原值写进日志或对话记录。
- Downloads
- 755All time
- Security audit
- Review
- Last updated
- 2w ago
- Current version
- v1.0.9
- License
- MIT-0
