$npx -y skills add rolandwonglonam/rw-research-skill --skill rw-claim-audit逐条核验论文、报告或研究笔记中的事实性主张是否被指定来源原文支持,保存主张位置、来源指针、原文定位、判断和阻断状态。Use when the user asks for“检查引用是否支持这句话”“做 claim-to-source audit”“核验数字、趋势或因果说法”“投稿前查主张”,or requests the rw-claim-audit workflow.
| 1 | # RW Claim Audit |
| 2 | |
| 3 | 检查来源是否支持具体主张。引用存在、格式正确和支持主张是 3 个不同问题。 |
| 4 | |
| 5 | ## 启动 |
| 6 | |
| 7 | 1. 读取 `references/method.md` 和 `references/verdicts.md`。 |
| 8 | 2. 确认文稿版本、允许使用的来源和能否访问全文。 |
| 9 | 3. 用 `assets/claim-audit-template.json` 建立记录,或运行 `scripts/claim_audit.py init`。 |
| 10 | 4. 逐条回到原始来源,保存来源指针和页码、段落、表、图或补充材料位置。 |
| 11 | 5. 运行 `validate`、`summary` 和 `gate`。 |
| 12 | 6. 交付前读取 `references/acceptance.md`。 |
| 13 | |
| 14 | ## 工作阶段 |
| 15 | |
| 16 | 1. 提取数字、类别、趋势、比较、因果、方法和作者解释类主张。 |
| 17 | 2. 为每条主张记录文稿位置和主张范围。 |
| 18 | 3. 找到被引来源中的对应位置;只有摘要时标明访问边界。 |
| 19 | 4. 比较人群、时间、变量、方向、数值和不确定性。 |
| 20 | 5. 给出 verdict,并说明差异会怎样改变结论。 |
| 21 | 6. 对阻断项收窄、删除或更换来源,再重新核验。 |
| 22 | |
| 23 | ## 命令 |
| 24 | |
| 25 | ```bash |
| 26 | python3 scripts/claim_audit.py init claim-audit.json --document-id DOC-001 --document-path manuscript.md |
| 27 | python3 scripts/claim_audit.py add-claim claim-audit.json --id CLM-001 --text "Claim text" --location "Results, paragraph 3" --claim-type quantitative |
| 28 | python3 scripts/claim_audit.py set-verdict claim-audit.json --claim-id CLM-001 --verdict VERIFIED --source-id SRC-001 --source-pointer paper.pdf --locator "p. 4, Results" --support-note "人群、数字和时间点一致" |
| 29 | python3 scripts/claim_audit.py validate claim-audit.json |
| 30 | python3 scripts/claim_audit.py summary claim-audit.json |
| 31 | python3 scripts/claim_audit.py gate claim-audit.json |
| 32 | ``` |
| 33 | |
| 34 | `gate`:PASS 返回 0,REVIEW 返回 1,BLOCK 返回 2。 |
| 35 | |
| 36 | ## 运行规则 |
| 37 | |
| 38 | - DOI 或文献存在只能证明来源存在。 |
| 39 | - `VERIFIED` 必须有具体 locator 和支持说明。 |
| 40 | - 来源支持范围小于句子范围时,收窄句子。 |
| 41 | - 摘要不能支持摘要未报告的细节。 |
| 42 | - 作者解释、测得结果和当前推断分开核验。 |
| 43 | - 数字同时核对分母、单位、时间点、人群和分析集。 |
| 44 | - 因果措辞需要与设计和来源措辞相符。 |
| 45 | - 无法访问全文时使用 `UNVERIFIABLE_ACCESS`,不能写成 `VERIFIED`。 |
| 46 | - 不自动修改文稿;先输出核验结果和修复动作。 |
| 47 | |
| 48 | ## 输出 |
| 49 | |
| 50 | - Claim Audit JSON。 |
| 51 | - verdict 计数和 PASS/REVIEW/BLOCK 状态。 |
| 52 | - 每条问题的文稿位置、来源位置、差异和修复动作。 |
| 53 | |
| 54 | ## 停止条件 |
| 55 | |
| 56 | - 没有文稿版本或主张位置时,不开始批量核验。 |
| 57 | - 找不到来源原文时,不给 `VERIFIED`。 |
| 58 | - `DISTORTED` 或 `UNSUPPORTED` 未处理时,状态保持 BLOCK。 |
| 59 | |
| 60 | ## 接续 |
| 61 | |
| 62 | - 提取原文:`rw-paper-extractor`。 |
| 63 | - 调整论文:`rw-phd-write`。 |
| 64 | - 核对引用身份和格式:`rw-citation-audit`。 |
| 65 | - 审查结论:`rw-research-referee`。 |
| 66 | - 局部修改:`rw-revision-patch`。 |