fact-check-x-unified
fact-check-x-unified is an code AI skill with a core value of Fact-Check-X 流程编排能力,依次组织各方答案汇总、各方答案聚合(未核验)、权威核验后的最终答案和各方答案测评,生成可打开、可审计、可迁移的阶段产物与完整报告包。. It
helps developers solve real-world problems in the code domain, boosting
efficiency, automating repetitive tasks, and optimizing workflows.
Fact-Check-X 流程编排能力,依次组织各方答案汇总、各方答案聚合(未核验)、权威核验后的最终答案和各方答案测评,生成可打开、可审计、可迁移的阶段产物与完整报告包。
Quick Facts
mkdir -p ./skills/fact-check-x-unified && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/fact-check-x-unified/SKILL.md -o ./skills/fact-check-x-unified/SKILL.md Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).
Skill Content
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
# Fact-Check-X 统一入口
本技能只做编排,不内嵌三个业务层。它按以下顺序调用兄弟技能:
1. `llm-answer-reference-compare`:多平台回答、引用与现场存证采集。
2. `fact-check-x-knowledge-compare`:本地知识点结构化对比,可选。
3. `fact-check-x-authoritative-verify`:逐知识点并发权威核验与平台表现报告。
所有语义拆解和证据裁决由当前承载技能的智能体完成。脚本不调用任何模型 API。
依赖定位
四个技能放在同一目录时可直接运行。也可设置:
export FACTCHECK_SKILLS_DIR="<四个技能的父目录>"检查依赖:
python3 scripts/fact_check_x.py locate完整流程
先采集 `results.json`,然后准备知识点对比:
python3 scripts/fact_check_x.py prepare-comparison \
--results <results.json> \
--run-dir <run>命令会同步生成“各方答案汇总”,在运行目录顶层生成 `01-capture-report.html`。每个 `deliverables` 条目同时返回已验证存在的本机 `path`、标准 `fileUri` 和可直接展示的 `markdownLink`。调用方必须原样展示 `markdownLink`,不得自行拼接 Windows 路径或把 `path` 直接塞进 Markdown;产物不存在时命令会在当前阶段失败。
默认交互模式下,程序会把阶段状态写入 `stage-checkpoints.json`。调用方发送本阶段产物并收到用户“继续下一步”后,必须使用 `checkpoint.acknowledgement.token` 执行:
python3 scripts/fact_check_x.py acknowledge-stage \
--run-dir <run> --stage <checkpoint.stage> \
--token <checkpoint.acknowledgement.token> --decision continue未确认时,下一阶段命令会直接失败。即使用户最初要求完整连续执行,也必须依次展示每个阶段产物并取得确认;不存在可绕过确认的自动推进模式。
当前智能体读取 `<run>/comparison-task.json`,写入 `<run>/comparison-analysis.json`,再执行:
`comparison-task.json` 是自包含的紧凑工作集。阶段确认后只允许“读取任务包一次、写入分析一次、执行验收一次”,最多三次工具调用;不得读取技能源码、契约或完整 `results.json` 探路,不得打印或转储完整任务包。`capturedText` 只是有界原文预览,完整正文由程序在验收时从 `results.json` 校验和重建。
拆解时,原子性同时约束知识点和各平台 `claim`。一个原句包含多个独立义务、条件、对象、数值或后果时必须拆点,每个 `claim` 只保留当前事实;平台独有的实质新增事实也要另起无锚点知识点,不能并入宽泛知识点后复用深知晓锚点免查。每个知识点同时标明 `claimType=fact|recommendation`:纯操作建议可标为 `recommendation`,不因缺少逐句脚标而判引用不忠实;建议中包含的制度事实、条件、数字或时效必须拆成独立 `fact`。
python3 scripts/fact_check_x.py complete-comparison \
--results <results.json> \
--run-dir <run>命令会在运行目录顶层生成 `02-comparison-report.html`,并通过 `deliverables[].markdownLink` 返回可点击链接;调用方必须原样展示。报告必须包含明确标为“未核验”的综合草案。默认交互模式下,用户确认继续后才能进入权威核验。
生成每个知识点的独立云端请求并并发取证:
python3 scripts/fact_check_x.py prepare-authority --run-dir <run>
python3 scripts/fact_check_x.py search-authority --run-dir <run> --max-workers 12深知晓采集同时保留回答内逐句脚标和“知识专库”中的回答级来源;相同 URL 合并为 `inline_and_global`。回答级来源只有经当前知识点逐条语义匹配且原文可定位时才可支持该事实,不得整库继承。知识点已有深知晓/深知晓(深度溯源)本次回答所附的官方材料,或其他平台本次回答所附的 `gov.cn` 材料,且原文确实支持当前事实主张时,直接复用为官方证据,不调用可信搜索。纯操作建议同样不调用可信搜索;除此之外,已有材料不足以裁决的事实知识点才是非免查知识点。
若存在非免查知识点但本机尚无可信搜索配置,`prepare-authority` 和 `search-authority` 会返回 `status=configuration_required`、`userPrompt` 与 `configuration.command` 并以非零状态退出。调用方先展示登录提示,再前台执行该命令。用户只需在自动打开的深知 MaaS 页面完成登录;组件会自动复用已有完整 Key,没有时创建 `Fact-Check-X` 专用 Key,验证后保存到 `~/.fact-check-x/credentials/trusted-search-key`。Codex、Claude Code、WorkBuddy 等载体共享该配置,检测到已有 Key 时直接跳过登录。配置成功后调用方自动重跑 `prepare-authority`,不得要求用户复制 Key、编辑 shell 配置、回复“已配置”,也不得改用深知晓来源或普通搜索绕过。
只有可信搜索返回 401/403 时才把现有 Key 视为失效并进入自动配置。超时、断网或服务异常保留现有配置并自动重试;重试后仍失败则停留在搜索阶段返回技术错误,不要求用户重新登录,也不转成人工事实复核。
`prepare-authority` 会写入 `authority-gate.json`。只有可信搜索批次正常完成、门禁状态变为 `searched` 后,`finalize-authority` 才允许运行;手工写 evidence 或 result 不能绕过。
当前智能体逐个读取 `authority/requests` 与 `authority/evidence`,把裁决写入 `authority/assessments/<知识点ID>.json`,然后:
免查模式下,`trustedAnchor.officialAnswer` 是当前事实知识点的权威结论;锚点证据列表用于来源追溯。无论来自深知晓还是 `gov.cn`,都必须确认已捕获正文实际支持该结论,不得仅凭官方属性自动判定。`trustedAnchor.claimEvidenceMap` 记录各平台已经逐主张绑定的官方原文;命中该映射的平台直接复用本次回答自带证据,不得因另一轮可信搜索未召回同一材料而降为证据不足。其他平台主张与 `officialAnswer` 语义一致或可由其直接推出时,裁决为 `supported` 并引用有效锚点证据 ID。仅当平台主张增加了权威结论不能支持的实质事实,或确实无法判定时,才使用 `insufficient`。知识点对比阶段的引用忠实性与本阶段的事实正确性分别保留,不能因平台自身引用不足而拒绝判断已经被权威结论证实的主张。`recommendation` 作为“操作建议”单独展示,不进入事实准确率或幻觉率;若权威证据证明建议会误导,仍可判为 `contradicted`。
{
"authoritativeFinding": "由权威证据支持的知识点结论",
"verdicts": {
"<平台ID>": {
"verdict": "supported",
"reason": "主张与 E1 一致",
"evidenceIds": ["E1"]
}
}
}`verdict` 只能使用 `supported`、`contradicted` 或 `insufficient`,证据 ID 必须存在于当前 evidence 文件中。旧式顶层 `verdict`、`officialAnswer`、`platf
🎯 Best For
- Claude users
- Software engineers
- Development teams
- Tech leads
💡 Use Cases
- Code quality improvement
- Best practice enforcement
📖 How to Use This Skill
- 1
Install the Skill
Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.
- 2
Load into Your AI Assistant
Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.
- 3
Apply fact-check-x-unified to Your Work
Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.
- 4
Review and Refine
Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.
❓ Frequently Asked Questions
Is fact-check-x-unified compatible with Cursor and VS Code?
Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.
Do I need specific dependencies for fact-check-x-unified?
Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.
How do I install fact-check-x-unified?
Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/fact-check-x-unified/SKILL.md, ready to use.
Can I customize this skill for my team?
Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.
⚠️ Common Mistakes to Avoid
Skipping validation
Always test AI-generated code changes, even for simple refactors.
Missing dependency updates
Check if the skill requires updated dependencies or new packages.