doc-hygiene

doc-hygiene is a skill for Claude Code from i-stack/ai-coding-kit. It costs 123 tokens per session (649 once invoked), scanned A, original, MIT.

A documentation rule for Markdown files that says the document should describe only the current state, not the history of how it changed. Process details belong in a changelog or evolution record instead.

In plain words
What is it for?
Use it when writing or updating Markdown documentation, especially files under skills-engineering. It also defines when related reference material must be read.
Why use it?
It keeps reference documentation focused on what readers need now. It prevents migration stories, ownership corrections, and other change history from becoming part of the lasting instructions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skills-engineering plugin — 13 skills shipped together

Good fit Use it when writing or updating Markdown documentation, especially files under skills-engineering. It also defines when related reference material must be read.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/i-stack/ai-coding-kit/doc-hygiene
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 i-stack/ai-coding-kit --skill doc-hygiene
Clone the repo
git clone --depth 1 https://github.com/i-stack/ai-coding-kit

Made for: Claude Code.

Or install skills-engineering, the plugin that ships this one along with the rest of its 13 skills.

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-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/i-stack/ai-coding-kit/doc-hygiene/github.svg)](https://agentmods.dev/skills/i-stack/ai-coding-kit/doc-hygiene)
Your own site
<a href="https://agentmods.dev/skills/i-stack/ai-coding-kit/doc-hygiene"><img src="https://agentmods.dev/badge/skills/i-stack/ai-coding-kit/doc-hygiene/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-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/i-stack/ai-coding-kit/doc-hygiene"><img src="https://agentmods.dev/badge/skills/i-stack/ai-coding-kit/doc-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 649 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.00123 $0.00649
Opus 5.5 $0.00049 $0.00260
Sonnet 5.5 $0.00025 $0.00130
Haiku 4.5 $0.00012 $0.00065

Measured 24d ago against content hash ed97e59886e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doc-hygiene 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 24d 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.

skills-engineering/doc-hygiene/SKILL.md · 45 lines

What it actually says

Doc Hygiene(文档卫生)

强制入口

命中本 skill 时,必须先完整阅读 references/doc_hygiene.md 并按其中条款执行。不得以摘要代替全文。

核心铁律(一句话)

文档只描述「现在是什么」,不描述「怎么变成这样的」。

过程叙事(迁移/owner 纠正/此前承载/待平移/抽象归属倒置…)是变更记录的内容,不是文档正文的内容。

规则索引

rule_id owner scope phase precedence conflicts_with merges_into field_owner
DH-001 doc-hygiene global structure 500 [] [] {}
DH-002 doc-hygiene global structure 500 [] [] {}
DH-003 doc-hygiene global structure 500 [] [] {}

(条文见 references/doc_hygiene.md;元数据语义见 cognitive-reasoning/references/rule_index.md)

何时加载

  • 依赖触发:writing-docs.md 建议文档写作/更新任务在 frontmatter 中 depends_on: [doc-hygiene](CI 不强制校验;实际落地路径为 invocation.md 关键词触发行 + 约定)。
  • 显式触发:用户写「更新文档」「加个说明」「记录这个结论」或任何产生/修改 .md 的操作。
  • 跳过:纯代码、纯脚本、不涉及文档正文的改动。

与 writing-docs.md 的关系

本 skill 是 .agents/writing-docs.md「变更约定」的纪律强化:writing-docs 规定变更要走演进流程(proposal→validate→promote),本 skill 规定流程的产物(文档)里不许出现流程本身。二者正交,同时生效。

Files

What ships with it

4 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. 24d ago First seen · 45 lines · 123 tokens per session scan A ed97e59886e1

Subscribe to this mod's changes

doc-hygiene is a skill published in the GitHub repository i-stack/ai-coding-kit (3 stars, last pushed 11d ago), licensed MIT. It adds 123 tokens to every session and 649 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-11-06.

Related

doc-hygiene compared with skills from other repositories

doc-hygiene next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-hygienei-stack/ai-coding-kitSkill311d agoMITA123Claude Code
agent-creatorhotovo/aider-deskSkill1.5k9d agoApache-2.0A60Claude Code, Codex
writing-testshotovo/aider-deskSkill1.5k9d agoApache-2.0A48Claude Code, Codex
githits-mcpgithits-com/githits-cliSkill144todayApache-2.0A48Claude Code
ppt-design-skillsunchaokun/PPT-Design-SkillSkill5312mo agoMITA35Codex
hunk-reviewkodustech/kodus-aiSkill1.7ktodaynoneA69Claude Code, Codex
kodus-review-settingskodustech/kodus-aiSkill1.7ktodaynoneA92Claude Code, Codex