doc-harness

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

A document-based system for keeping project state understandable to both AI agents and people. It uses files for the project overview, current status, file catalogue, work history, and full operating rules.

In plain words
What is it for?
Use it to structure ongoing projects, record completed and current work, catalogue files, preserve decisions, and help multiple agents or people continue from the same state.
Why use it?
It gives a new session a written source of truth after context is lost, instead of relying on temporary conversation memory. This makes long-running work easier to resume and audit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to structure ongoing projects, record completed and current work, catalogue files, preserve decisions, and help multiple agents or people continue from the same state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cilidinezy-commits/doc-harness/kimi-skill
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 kimi-skill
Clone the repo
git clone --depth 1 https://github.com/cilidinezy-commits/doc-harness

Made for: Claude Code, Codex.

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/kimi-skill/github.svg)](https://agentmods.dev/skills/cilidinezy-commits/doc-harness/kimi-skill)
Your own site
<a href="https://agentmods.dev/skills/cilidinezy-commits/doc-harness/kimi-skill"><img src="https://agentmods.dev/badge/skills/cilidinezy-commits/doc-harness/kimi-skill/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/kimi-skill"><img src="https://agentmods.dev/badge/skills/cilidinezy-commits/doc-harness/kimi-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 272 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,159 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.00272 $0.02159
Opus 5 $0.00136 $0.01079
Sonnet 5 $0.00054 $0.00432
Haiku 4.5 $0.00027 $0.00216

Measured 9d ago against content hash e13fc1c59d66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

kimi-skill/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doc Harness — Document-Based Project Control

Doc Harness creates and maintains five status documents per project that enable any agent or human to understand and resume project work purely from reading files — no external memory needed.

Core principle: "Write It Down or Lose It" — all information in context is temporary. If it is not written to a file and registered in FILE_INDEX, it will be lost.


The Five Documents

Document Role Answers
CLAUDE.md Project entry point "What is this project? What are the rules? Where do I start?"
CURRENT_STATUS.md Active state "What just happened? What's happening now? What's next?"
FILE_INDEX.md File catalog "What files exist, what are they, and where are they?"
WORKLOG.md Permanent history "What exactly happened in phase 2, three weeks ago?"
DOC_HARNESS_SPEC.md Complete reference Full specification for unusual situations

Metaphor: A project in motion is like a moving car.

  • Tire Tracks (Recent Completed) — the road behind
  • Car Body (Current Work) — where you are right now
  • Headlights (Next Steps) — where you're going
  • Driving Manual (Working Principles) — rules for this road

Natural-Language Commands

Kimi has no slash commands. Use the table below to map user requests to the correct procedure.

User says Procedure See
"Set up doc-harness" / "init project docs" / "create status documentation" Init — create the five documents for a new or existing project references/init.md
"Check documentation health" / "audit project docs" / "run a health check" Check — audit file health and reflect on principles references/check.md
"Sync project state" / "update status docs" / "catch up documentation" Sync — repair drift, refresh dates, register missing files references/sync.md
"Save everything" / "flush context" / "prepare for compact" / "ensure nothing is lost" Flush — emergency save: extract all important context into documents. Runs five phases: (A) sync, (B) context inventory, (C) write and register, (D) verification, (E) flush marker. Phases B and C are the defining feature — they scan context for information that exists only in memory and write it to files. Without Phase B and C, flush has failed and is indistinguishable from sync. references/flush.md
"Resume this project" / "continue work" / "where were we" / "back to project" / "pick up where we left off" / "what's the current status" Resume — structured state recovery. Execute Recovery Chain, produce Recovery Report, verify understanding before continuing. Four phases: (A) Recovery Chain, (B) Recovery Report synthesis, (C) Understanding Verification, (D) Resume decision. references/resume.md
"Recall" / "remember" / "find in docs" / "search project docs" / "where did we discuss" / "why did we decide" / "what is the current plan" Recall — retrieve information from registered documents along the Doc Harness hierarchy references/recall.md

Read the full file on GitHub · 139 lines

Files

What ships with it

8 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. 9d ago First seen · 139 lines · 272 tokens per session scan A e13fc1c59d66

Subscribe to this mod's changes

doc-harness is a skill published in the GitHub repository cilidinezy-commits/doc-harness (4 stars, last pushed 9d ago), licensed MIT. It adds 272 tokens to every session and 2,159 once invoked, about $0.0014 per session on Opus 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.