Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/zuoyebang/aiweavenpx agentmods add skills/zuoyebang/aiweave/doc-sync-checkWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zuoyebang/aiweave/doc-sync-check)<a href="https://agentmods.dev/skills/zuoyebang/aiweave/doc-sync-check"><img src="https://agentmods.dev/badge/skills/zuoyebang/aiweave/doc-sync-check/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zuoyebang/aiweave/doc-sync-check"><img src="https://agentmods.dev/badge/skills/zuoyebang/aiweave/doc-sync-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00116 | $0.03254 |
| Opus 5.5 | $0.00046 | $0.01302 |
| Sonnet 5.5 | $0.00023 | $0.00651 |
| Haiku 4.5 | $0.00012 | $0.00325 |
Grade A, and why
doc-sync-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.
检查文档与代码的一致性。范围:$ARGUMENTS(空或 all 则全量)。
公共步骤模板见 skills-spec/01_skill_authoring_guide.md §A-§E。本 Skill 不生成代码,故第 5 步测试同步不适用,但仍需读 §A-§C。
第 0 步:🚫 模块特殊规则(§A 之扩展)
当前阶段的 🚫 模块(BUILD_STATUS.md §0):
- 代码侧:相关代码文件不存在是预期,不报"代码缺失"
- 文档侧:相关 md 完整保留是预期,不报"文档多余"
- 输出时把 🚫 项独立成"已知跳过项"小节
第 1 步:读取范围判定表(公共必读见 §B)
读 CLAUDE.md「范围判定表」——它是"代码路径 ↔ 文档路径"的完整双向映射。
第 2 步:9 维度检查
维度 1:代码存在但文档缺失(最严重)
- 扫描
controllers/http/{audience}/下所有 .go → 检查docs/api/对应文档 - 扫描
service/下所有 public 方法 → 检查docs/service/service_design.md - 扫描
models/下所有 struct → 检查docs/schema/database_design.md,逐字段对比 - 扫描
middleware/→ 检查docs/architecture/middleware.md - 扫描
router/command.go注册的命令 → 检查docs/service/scheduled_tasks_design.md - 扫描
helpers/导出函数 → 检查docs/architecture/helpers_api.md
维度 2:文档存在但代码缺失
- 扫描
docs/api/中接口 → 检查对应 controller - 扫描
docs/service/service_design.md方法 → 检查对应 service - 扫描
docs/schema/database_design.md表 → 检查对应 model
维度 3:INDEX.md 完整性
扫描 docs/ 下所有 .md(递归)→ 检查 docs/INDEX.md 是否登记
维度 4:路由一致性
- 读
docs/architecture/routing.md§5 完整路由表 - 读
router/下 .go 文件,提取实际注册路由 - 双向对比
维度 5:Redis Key 一致性
- 从
docs/cache/cache_design.md和docs/schema/database_design.md§4 提取所有 Key 模式 - 在
service/和controllers/中搜索 Redis 操作 - 检查 Key 名称一致性
维度 6:错误码一致性
- 从
components/error.go/service_error.go提取所有定义 - 与
docs/architecture/status_codes.md对比
维度 7:测试覆盖
- 扫描
controllers/http/下已实现的 handler - 检查
test/cases/{audience}/是否有对应测试文件 - 输出"代码已实现但测试缺失"列表 → 🔴
维度 8:规范主体业务名泄漏(仅当 scope 含 aiweave 或 all 时启用)
此维度审计
aiweave/docs-spec/*与aiweave/skills-spec/*的"规范主体 vs 参考示例"双轨结构是否被违反。详细规则见PRINCIPLES.md §12 占位符规则。
⚠️ 本维度自身豁免声明(§12.6 #6 meta 内容):本节下方第 2 步的"业务名关键词清单"、第 5 步的"误报抑制规则"是 audit 规则的 meta 内容——这些清单行不参与自身的维度 8 审计。AI 在扫描
templates/skills/doc-sync-check/SKILL.md时应主动跳过本节内的关键词清单与对照表(按行匹配"Register / Login"类清单格式即可识别)。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 154 lines · 116 tokens per session scan A bdfa56b2a21b
doc-sync-check is a skill published in the GitHub repository zuoyebang/aiweave (20 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 116 tokens to every session and 3,254 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
build-teaql-app
Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…
context-exclusion
Maintain .agent-no-read.md markers for approved generated directories using deterministic scripts. Use when configuring generated-code context exclusion or restoring markers after regeneration, not for ordinary ignore rules or OS permissions.
build-executor
Execute an active direct request or approved planned change. Native continuous implementation is the default; existing legacy changes retain their recorded contract obligations.
contract-builder
Maintain an execution contract only for an existing legacy change that requires one. New direct/planned changes do not invoke this skill when a contract is absent.
code-reviewer
Review completed implementation batches for spec compliance and code quality. Invoke after execution batches complete, before merging, or when a review gate is reached in the workflow.
bug-investigator
Use when encountering any bug, test failure, or unexpected behavior during spec-superflow execution, before proposing fixes. Invoked automatically when build-executor hits a blockage.