Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ZhangShenao/harness9 --skill sync-docsgit clone --depth 1 https://github.com/ZhangShenao/harness9Wrote 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/zhangshenao/harness9/sync-docs)<a href="https://agentmods.dev/skills/zhangshenao/harness9/sync-docs"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/sync-docs/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/zhangshenao/harness9/sync-docs"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/sync-docs.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.00043 | $0.01424 |
| Opus 5.5 | $0.00017 | $0.00570 |
| Sonnet 5.5 | $0.00009 | $0.00285 |
| Haiku 4.5 | $0.00004 | $0.00142 |
Grade A, and why
sync-docs 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 14d 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 — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sync Docs(文档同步管线)
DSH 斜杠命令:输入
/sync-docs会把本技能全文注入当前回合,/sync-docs之后的文本作为参数;模型也可按描述自动加载。
Overview
维护 docs/核心功能/(中文,唯一信息源)与 docs/core-features-en/(英文镜像)的完整同步:
- Phase 1: 代码变更 → 中文文档更新(基于
docs/doc-map.json模块映射 + git diff) - Phase 2: 中文文档 → 英文镜像同步(MISSING / STALE 扫描)
- Phase 3: 统一收尾报告
CI 中有对应的机械式漂移检测(scripts/check-doc-drift.sh,warn 模式),本命令是其 LLM 辅助的落地执行手段:提 PR 前先跑本命令补文档。
When to Run
- 修改了任何
internal/、cmd/、skills/源码之后、提交 PR 之前 - 创建或修改了
docs/核心功能/下任何文件之后 - 用户执行
/sync-docs(/sync-docs后的文本为可选 diff 范围参数,如/sync-docs HEAD~3)
Phase 1: 代码变更 → 中文文档
- 确定变更范围:用户显式指定时以用户为准;否则优先工作区未提交改动(
git status --porcelain+git diff),无未提交改动时用git diff --name-only master...HEAD。 - 过滤出变更的源码路径(忽略
*_test.go与生成产物)。 - 读取
docs/doc-map.json,对每个映射条目:paths中任一模式命中变更文件、且docs非空时,将其docs列入候选更新清单。映射表之外的模块不强制;若发现明显的未登记模块→文档对应关系,在报告中建议补充映射表。 - 对每个候选文档:
- 通读文档全文 + 相关代码 diff
- 判断需要更新的内容:新增功能 / 新增接口与类型 / 行为变更 / 删除的内容 / 过时的代码片段与文件结构描述
- 直接编辑中文文档,保持现有章节结构与写作风格;无实质影响的变更(注释措辞、测试内部调整)可跳过并在报告中说明理由
- 候选清单为空时,报告"代码变更无需文档同步",直接进入 Phase 3。
Phase 2: 中文 → 英文镜像
2.1 Scan for mismatches
Run this check to identify missing or stale English docs:
for f in docs/核心功能/*.md; do
name=$(basename "$f")
en_path="docs/core-features-en/$name"
if [ ! -f "$en_path" ]; then
echo "MISSING: $en_path"
elif [ "$f" -nt "$en_path" ]; then
echo "STALE: $en_path (Chinese version is newer)"
fi
done
Classify results:
- MISSING: English doc does not exist--must be created
- STALE: English doc exists but Chinese version was modified more recently--should be reviewed and updated
- OK: Both exist and English is not older than Chinese
If all docs are OK, report success and go to Phase 3.
2.2 For each MISSING doc: create the English version
read the Chinese doc in full. Then create the English counterpart at docs/core-features-en/<same-filename> following these rules:
Translation principles:
- The English version is an independently written technical document, not a machine translation
- Content and structure must align with the Chinese version (same sections, same code blocks, same tables)
- Follow English technical writing conventions: active voice, concise sentences, no unnecessary hedging
- Code blocks, Go struct definitions, and CLI examples remain identical (they are language-neutral)
- Chinese-specific UI strings shown in examples (e.g., TUI output) should be translated to English equivalents
- Comments in code blocks: translate Chinese comments to English
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.
- 14d ago First seen · 105 lines · 43 tokens per session scan A 446631eb829d
sync-docs is a skill published in the GitHub repository ZhangShenao/harness9 (166 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,424 once invoked, about $0.0002 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-11-22.
sync-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-docsZhangShenao/harness9 | Skill | 166 | yesterday | MIT | A | 43 | Claude Code, Codex |
| merge-batchdiegosouzapw/OmniRoute | Skill | 92k | today | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | 2d ago | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.8k | today | MIT | A | 20 | Claude Code, Codex |
| comet-githubrpamis/comet | Skill | 3.3k | today | MIT | A | 72 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 5d ago | MIT | A | 51 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | yesterday | MIT | A | 51 | Claude Code, Codex |