doc-lint

doc-lint is a skill for Claude Code, Codex from xyy277/doc77. It costs 39 tokens per session (343 once invoked), scanned A, original, MIT.

A documentation checker for Markdown files. It reviews headings, lists, code blocks, tables, links, terminology, spelling, grammar, and punctuation.

In plain words
What is it for?
Use it to review project documentation for structure, link validity, consistent terms, and common writing mistakes.
Why use it?
It helps find broken links and inconsistent formatting or wording before documentation is published. Each issue includes its file, line number, description, severity, and a suggested fix.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/xyy277/doc77/doc-lint
Any agent
npx skills add xyy277/doc77 --skill doc-lint
Clone the repo
git clone --depth 1 https://github.com/xyy277/doc77

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyy277/doc77/doc-lint.svg)](https://agentmods.dev/skills/xyy277/doc77/doc-lint)
Your own site
<a href="https://agentmods.dev/skills/xyy277/doc77/doc-lint"><img src="https://agentmods.dev/badge/skills/xyy277/doc77/doc-lint.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00039 $0.00343
Opus 5 $0.00019 $0.00171
Sonnet 5 $0.00008 $0.00069
Haiku 4.5 $0.00004 $0.00034

Measured 6d ago against content hash d7ca4f9a7dda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

doc-lint 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 6d 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.

packages/ai/src/skills/builtin/skills/doc-lint/SKILL.md · 42 lines

What it actually says

文档规范检查技能

检查项目

格式规范

  • Markdown 标题层级是否连续(不跳级)
  • 列表缩进是否一致(2 空格或 4 空格)
  • 代码块是否有语言标注
  • 表格格式是否正确
  • 空行:标题前后各一空行,列表项之间不留空行

链接检查

  • 内部链接指向的文件是否存在
  • 锚点链接格式是否正确(小写、连字符分隔)
  • 外部 URL 格式是否合法

术语一致性

  • 同一概念是否全文使用统一译法
  • 缩写首次出现是否给出全称
  • 中英文混排时中英文之间是否有空格

拼写和语法

  • 常见拼写错误检测
  • 标点符号:中文用全角,英文用半角
  • 句末标点是否一致

输出格式

按严重程度分级:

  • 🔴 错误:必须修复(格式错误、断链)
  • 🟡 警告:建议修复(不一致、不规范)
  • 🔵 提示:可选优化(风格建议)

每条包含:文件路径、行号、问题描述、修复建议。

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. 6d ago First seen · 42 lines · 39 tokens per session scan A d7ca4f9a7dda

Subscribe to this mod's changes

doc-lint is a skill published in the GitHub repository xyy277/doc77 (8 stars, last pushed 18d ago), licensed MIT. It adds 39 tokens to every session and 343 once invoked, about $0.0002 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.