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 cilidinezy-commits/doc-harness --skill skill-zhgit clone --depth 1 https://github.com/cilidinezy-commits/doc-harnessWrote 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/cilidinezy-commits/doc-harness/skill-zh)<a href="https://agentmods.dev/skills/cilidinezy-commits/doc-harness/skill-zh"><img src="https://agentmods.dev/badge/skills/cilidinezy-commits/doc-harness/skill-zh/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/cilidinezy-commits/doc-harness/skill-zh"><img src="https://agentmods.dev/badge/skills/cilidinezy-commits/doc-harness/skill-zh.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.00146 | $0.01671 |
| Opus 5.5 | $0.00058 | $0.00668 |
| Sonnet 5.5 | $0.00029 | $0.00334 |
| Haiku 4.5 | $0.00015 | $0.00167 |
Grade A, and why
doc-harness 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 2mo 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 — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Doc Harness — 基于文档的项目控制
Doc Harness 让项目仅凭文件即可恢复:任何新 agent 在上下文断裂后,读入口就能正确接手。
每个项目维护:
- CLAUDE.md —— 唯一权威入口:AGENT IDENTITY LOCK + 稳定锚(框架锚、铁律、底层原则)+ 操作规则。
- AGENTS.md —— 指向 CLAUDE.md 的薄指针(绝不过时复制)。
- events.log —— append-only 事件日志:历史与当前状态的单一来源。
- CURRENT_STATUS.md —— 由
events.log生成的投影(## NOW+ 活跃工作面 + 否定台账);绝不手工编辑。 - FILE_INDEX.md —— 文件目录;未注册文件是红项。
- DOC_HARNESS_SPEC.md —— 可选的规范参考副本。
可选:PHILOSOPHY.md(底层原则)、PARKING_LOT.md、RUNBOOK.md,以及跨项目 inbox//outbox/(可另配 MAIL_LEDGER.md)。
核心原则:接手优先于记录——新 agent 必须能仅凭文件正确接手。状态变化是一条 record 命令;确定性工具带(tools/)负责验证文档体系的完整性。
如何调用(与 agent 无关)
下面这些命令描述的是结果,不是某个平台的专有功能。具体怎么触发,取决于你用的 agent:
| Agent | 怎么调用 |
|---|---|
| Claude Code | /doc-harness check(插件斜杠命令) |
| Kimi CLI | /skill:doc-harness 载入本 skill,然后用自然语言说「检查这个项目的文档健康」 |
| 其它 agent | 自然语言即可——「恢复这个项目」「把文档状态冲刷一下」「当初为什么选 X?」 |
本 skill 不依赖任何 agent 的专有功能:它就是 Markdown,外加一套可选的 PowerShell 工具带。
命令
/doc-harness init [项目名] [描述]
为新项目创建文件(干净初始化或中途采纳)。 → 见 init.md。
/doc-harness check
审计健康:投影新鲜度(now_refreshed vs events.log)、未注册文件(红)、入口唯一、events.log 良好性、收件箱、操作规则版本、身份锁、超期结论(conclusion_until)、来源 class(class=root|decision|reported);然后反思锚与底层原则。
→ 见 check.md。
/doc-harness sync [--auto]
修复漂移:注册文件、向 events.log 追加缺失的状态事件、重新投影 CURRENT_STATUS、收件箱整理。interactive(默认)在状态变更前询问;auto 执行安全修复。
→ 见 sync.md。
/doc-harness flush [--auto]
压缩 / session 结束前的紧急保存:先 sync,再强制盘点上下文、写入并注册提取项、验证新 agent 能找到、最后追加状态事件并重新投影。 → 见 flush.md。
/doc-harness recall [查询]
检索信息:第 0 层稳定锚 → 第 1 层 ## NOW/活跃工作面 → 第 2 层 events.log(历史)→ 第 3 层 FILE_INDEX → 第 4 层文件。只读、带来源引用。机械 grep 用 tools/search.ps1。
→ 见 recall.md。
/doc-harness resume [--auto]
结构化、可验证的接手:身份 → 稳定锚 → 从 events.log 读当前状态(并校验新鲜)→ 先读清单 → 否定台账;再出恢复报告 + 5 问验证 + 继续/等待决策。上下文为空或用户说「恢复」时运行。
→ 见 resume.md。
/doc-harness(无参数)
检查目录:核心文件齐全 → 建议 check;完全没有 → 建议 init;部分存在 → 建议 init 中途采纳模式。然后显示本帮助。
What ships with it
40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 516 B
- check.md 4.6 KB
- flush.md 2.7 KB
- init.md 4.9 KB
- operational_rules.md 9.8 KB
- recall.md 2.7 KB
- resume.md 3.7 KB
- spec.md 19 KB
- sync.md 3.3 KB
- tools/batch-register.ps1 2.6 KB runs code
- tools/cite-check.ps1 1006 B runs code
- tools/conformance.ps1 3.5 KB runs code
- tools/dead-pointer.ps1 1.2 KB runs code
- tools/encoding-guard.ps1 1.6 KB runs code
- tools/entry-check.ps1 2.0 KB runs code
- tools/handoff-test.ps1 9.4 KB runs code
- tools/lib/doc-harness-config.json 202 B
- tools/lib/doc-state.ps1 7.3 KB runs code
- tools/lib/pshost.ps1 961 B runs code
- tools/log-migrate.ps1 4.2 KB runs code
- tools/mail-daemon.ps1 4.2 KB runs code
- tools/mail-ledger.ps1 721 B runs code
- tools/mail-poll.ps1 1.3 KB runs code
- tools/mail-process-template.md 646 B
- tools/mail-send.ps1 1.8 KB runs code
- tools/nested-git-guard.ps1 918 B runs code
- tools/now-verify.ps1 5.8 KB runs code
- tools/ops-embed.ps1 3.2 KB runs code
- tools/project.ps1 710 B runs code
- tools/publish-scan.ps1 2.5 KB runs code
- tools/README.md 8.7 KB
- tools/record.ps1 4.1 KB runs code
- tools/recurrence.ps1 1.1 KB runs code
- tools/search.ps1 2.2 KB runs code
- tools/skill-consistency.ps1 8.2 KB runs code
- tools/stale-check.ps1 1.1 KB runs code
- tools/stale-writer-guard.ps1 1.1 KB runs code
- tools/telemetry.ps1 566 B runs code
- tools/toolbelt-sync.ps1 2.1 KB runs code
- tools/unregistered.ps1 1.9 KB runs code
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.
- 2mo ago Changed · +21 lines 409c438e9464
- 2mo ago Changed · -40 lines · -45 tokens per session 2c3bd376fd93
- 3mo ago Changed · +191 tokens per session 65e09174f134
- 3mo ago First seen · 108 lines · 0 tokens per session scan A 82345fcbcc88
doc-harness is a skill published in the GitHub repository cilidinezy-commits/doc-harness (4 stars, last pushed 2mo ago), licensed MIT. It adds 146 tokens to every session and 1,671 once invoked, about $0.0006 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-31.
doc-harness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc-harnesscilidinezy-commits/doc-harness | Skill | 4 | 2mo ago | MIT | A | 146 | Claude Code |
| jiaojieJordanwei1/jiaojie-skill | Skill | 93 | 3mo ago | MIT | A | 186 | Codex |
| wiki-retrieveAgriciDaniel/claude-obsidian | Skill | 17k | yesterday | MIT | A | 99 | Claude Code |
| Migratedanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 104 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 184 | Claude Code |
| Profiledanielmiessler/LifeOS | Skill | 21k | 16d ago | MIT | A | 108 | Claude Code, Codex |
| wiki-dashboardAr9av/obsidian-wiki | Skill | 3.9k | today | MIT | A | 42 | Claude Code |