Token导航 LogoToken导航

Agent Skill · 研究检索

doc-claim-validator(文档声明验证器)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

doc-claim-validator 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 48,042。

总安装 706周安装 30GitHub Stars 15下载 247核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:doc-claim-validator(文档声明验证器)
来源仓库:https://github.com/nickcrew/claude-ctx-plugin
仓库路径:skills/doc-claim-validator
安装命令:
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill doc-claim-validator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill doc-claim-validator

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

验证文档声明是否真实反映代码现状。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。适用于 API、配置与行为描述的准确性审计。提取可测试声明并与代码库比对,定位过时信息。需在重大变更或发布前运行,补充结构性检查不足。

doc-claim-validator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/doc-claim-validator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill doc-claim-v…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

doc-claim-validator 怎么安装?

在终端执行 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill doc-claim-validator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

doc-claim-validator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

doc-claim-validator 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill doc-claim-validator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

doc-claim-validator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

doc-claim-validator 用的人多吗?

公开数据是累计安装 706 次,近一周安装 30 次,下载 247 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

doc-claim-validator 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
doc-claim-validator

文档声明验证器 · 本页

70615执行命令未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Documentation Claim Validator

Verify that what documentation *says* is actually *true* by extracting testable claims and checking them against the codebase. Complements doc-maintenance (which handles structural health) by handling semantic accuracy.

When to Use

  • After significant code changes (refactors, renames, API changes)
  • Before releases — catch docs that describe removed or changed behavior
  • When onboarding devs report "the docs are wrong"
  • As a periodic trust audit on project documentation
  • After running doc-maintenance to go deeper than structural checks

Quick Reference

ResourcePurposeLoad when
scripts/extract_claims.pyDeterministic claim extraction from markdownAlways (Phase 1)
scripts/verify_claims.pyAutomated verification against codebaseAlways (Phase 2)
references/claim-taxonomy.mdFull taxonomy of claim types with examplesTriaging unclear claims

Workflow Overview

Phase 1: Extract    → Pull verifiable claims from docs (deterministic script)
Phase 2: Verify     → Check claims against codebase (automated + AI)
Phase 3: Report     → Classify failures by severity and type
Phase 4: Remediate  → Fix or flag broken claims

Phase 1: Extract Claims

Run the extraction script to parse all markdown files and pull out verifiable assertions:

python3 skills/doc-claim-validator/scripts/extract_claims.py [--json] [--root PATH] [--scope docs|manual|all]

The script extracts these claim types from markdown:

TypeWhat it capturesExample in docs
file_pathInline code matching file path patterns` src/auth/login.ts `
commandCode blocks or inline code with shell commands` npm run build `
code_refFunction, class, method references in inline code` authenticate() `
importImport/require statements in code blocksimport {Router} from 'express'
configConfiguration keys, env vars, settings` MAX_RETRIES=3 `
urlExternal links (http/https)[docs](https://example.com)
dependencyPackage/library name claims"Uses Redis for caching"
behavioralAssertions about what code does"The system retries 3 times"

The first 6 types are extracted deterministically. The last 2 (dependency, behavioral) require AI analysis and are handled in Phase 2.

Output: A structured list of claims with source file, line number, claim type, and the literal text of the claim.


Phase 2: Verify Claims

Step 2a — Automated verification

Run the verification script on the extracted claims:

python3 skills/doc-claim-validator/scripts/verify_claims.py [--json] [--root PATH] [--claims-file PATH] [--check-staleness]

Pass --check-staleness to enable git-based drift analysis (see below).

The script checks each claim type differently:

Claim typeVerification methodPass condition
file_pathos.path.exists()File exists at referenced path
commandshutil.which() + script checkBinary exists or script file exists
code_refgrep -r for function/class nameSymbol found in codebase
importCheck module exists in project or depsModule resolvable
configGrep for config key in sourceKey found in config files or code
urlHTTP HEAD request (optional, off by default)Returns 2xx/3xx

Pass --check-urls to enable URL verification (slow, requires network).

Step 2b — AI-assisted verification

After the automated pass, dispatch haiku agents to verify claims the script cannot:

Agent 1 — Dependency claim verifier (subagent_type: "Explore", model: "haiku"): Read package.json, requirements.txt, go.mod, Cargo.toml, or equivalent dependency manifests. Cross-reference any doc claims about libraries, frameworks, or services used. Report claims that reference dependencies not in the project.

Agent 2 — Behavioral claim verifier (subagent_type: "Explore", model: "haiku"): For each behavioral claim (e.g., "retries 3 times", "caches for 5 minutes", "validates input before processing"), find the relevant code and verify the claim is accurate. Report mismatches between documented behavior and actual implementation.

Agent 3 — Code example verifier (subagent_type: "Explore", model: "haiku"): For code blocks in docs that show usage examples, verify the function signatures, parameter names, return types, and import paths match the current codebase. Report examples that would fail if copy-pasted.

Launch all three agents in parallel.

Step 2c — Git staleness scoring

For claims that pass existence checks, compute a drift score to surface likely-stale claims:

python3 skills/doc-claim-validator/scripts/verify_claims.py --check-staleness

For each passing claim, the script:

  1. Gets the doc file's last git modification timestamp
  2. Gets the target file(s) last git modification timestamp
  3. Counts how many commits touched the target *after* the doc was last edited
  4. Assigns a drift score: low (1-3 commits), medium (4-9), high (10+)

High-drift claims are the best candidates for AI review — the target changed heavily but the doc didn't, so the doc is probably describing outdated behavior.

The staleness report is appended as a ranked table, sorted by score descending.


Phase 3: Report

Merge automated and AI findings into a single report. Classify each failed claim:

Severity

LevelMeaningExample
P0User-facing doc claims something that would break if followedTutorial shows deleted API endpoint
P1Dev doc references nonexistent code constructREADME references auth.validate() which was renamed
P2Behavioral claim no longer accurate"Retries 3 times" but retry logic was removed
P3Dependency/import claim outdated"Uses Express" but migrated to Fastify
P4Minor inaccuracy, cosmeticConfig key renamed but behavior unchanged

Failure Categories

CategoryDescription
missing_targetReferenced file, function, or symbol doesn't exist
wrong_signatureFunction exists but signature differs from doc
stale_behaviorBehavioral claim doesn't match implementation
dead_dependencyDoc references a dependency not in the project
broken_exampleCode example would fail if executed
dead_urlExternal link returns 4xx/5xx
phantom_configConfig option referenced in docs doesn't exist in code

Phase 4: Remediate

For each failed claim, decide the action:

ActionWhenHow
Update docCode is correct, doc is staleEdit doc to match code
Flag for reviewUnclear if code or doc is wrongCreate issue for human review
Remove claimReferenced feature was deletedRemove or rewrite section
Update exampleCode example is outdatedRewrite example against current code

Route remediation to the appropriate agent per doc-maintenance conventions:

  • reference-builder for API/CLI reference docs
  • technical-writer for architecture and developer docs
  • learning-guide for user-facing tutorials and guides

Integration with doc-maintenance

This skill is designed to run after doc-maintenance:

doc-maintenance  →  Structural health (links, orphans, folders, staleness)
doc-claim-validator  →  Semantic accuracy (do claims match reality?)

The two skills share the same severity scale and remediation agent routing. Results from both can be combined into a single documentation health report.


Anti-Patterns

  • Do not auto-fix behavioral claims — they require human judgment about intent
  • Do not treat every inline code reference as a file path (` true ` is not a file)
  • Do not validate claims in archived docs (docs/archive/) — they're historical
  • Do not fail on optional/conditional features — mark as "conditional" instead
  • Do not check URLs by default — it's slow and flaky; opt-in only
  • Do not validate code blocks marked with <!-- no-verify --> comment

Bundled Resources

Scripts

  • scripts/extract_claims.py — Deterministic claim extraction from markdown files
  • scripts/verify_claims.py — Automated verification of extracted claims against codebase

References

  • references/claim-taxonomy.md — Full taxonomy of claim types with extraction patterns and examples

平台分布

Codex

33.26%
按下载量换算82

Claude

29.84%
按下载量换算74

Cursor

19.63%
按下载量换算48

Gemini CLI

10.33%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill doc-claim-validator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills