doc-harness

doc-harness is a skill for Claude Code from cilidinezy-commits/doc-harness. It costs 146 tokens per session (1,671 once invoked), scanned A, original, MIT.

A file-based project record system that helps people and AI agents understand and resume ongoing work. It uses documents for current status, file lists, work history, project rules, and optional coordination between projects.

In plain words
What is it for?
Use it to initialize, audit, synchronize, or save the state of a long-running project and its documentation.
Why use it?
It keeps project knowledge available in the files themselves, so work can continue after context is lost or a new session starts.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the doc-harness-zh plugin — 1 skill shipped together

Good fit Use it to initialize, audit, synchronize, or save the state of a long-running project and its documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cilidinezy-commits/doc-harness/skill-zh
Install

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.

Any agent
npx skills add cilidinezy-commits/doc-harness --skill skill-zh
Clone the repo
git clone --depth 1 https://github.com/cilidinezy-commits/doc-harness

Made for: Claude Code.

Or install doc-harness-zh, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for doc-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/cilidinezy-commits/doc-harness/skill-zh/github.svg)](https://agentmods.dev/skills/cilidinezy-commits/doc-harness/skill-zh)
Your own site
<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.

agentmods 80×15 button for doc-harness

Your own site · 80×15
<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>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 409c438e9464, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 28 executable files (tools/batch-register.ps1, tools/cite-check.ps1, tools/conformance.ps1, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skill-zh/SKILL.md · 89 lines

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 中途采纳模式。然后显示本帮助。

Read the full file on GitHub · 89 lines

Files

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.

Changes

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.

  1. 2mo ago Changed · +21 lines 409c438e9464
  2. 2mo ago Changed · -40 lines · -45 tokens per session 2c3bd376fd93
  3. 3mo ago Changed · +191 tokens per session 65e09174f134
  4. 3mo ago First seen · 108 lines · 0 tokens per session scan A 82345fcbcc88

Subscribe to this mod's changes

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.

Related

doc-harness compared with skills from other repositories

doc-harness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-harnesscilidinezy-commits/doc-harnessSkill42mo agoMITA146Claude Code
jiaojieJordanwei1/jiaojie-skillSkill933mo agoMITA186Codex
wiki-retrieveAgriciDaniel/claude-obsidianSkill17kyesterdayMITA99Claude Code
Migratedanielmiessler/LifeOSSkill21k16d agoMITA104Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k16d agoMITA184Claude Code
Profiledanielmiessler/LifeOSSkill21k16d agoMITA108Claude Code, Codex
wiki-dashboardAr9av/obsidian-wikiSkill3.9ktodayMITA42Claude Code