/install doc-doctor
Doc Doctor
Your markdown docs have broken links, orphan pages, missing metadata, and you don't know it. This skill finds them all and fixes them for you.
Quick start
Just say:
- "lint my docs" — scan your project's markdown files
- "check my KB" — get a health score out of 100
- "fix my wiki" — auto-fix broken links, missing frontmatter, bad filenames
- "lint my memory" — audit your Claude Code memory files
What it checks
| Check | What it finds | Auto-fixable? |
|---|---|---|
| Broken links | [[wiki-links]] pointing to nothing |
Yes — fuzzy-matches the right target |
| Orphan pages | Files no other page links to | Suggests where to add links |
| Missing frontmatter | No title, tags, or metadata | Yes — generates from content |
| Thin articles | Under 100 words | Suggests outlines |
| Bad filenames | Spaces, non-kebab-case | Yes — renames + updates all references |
| Inconsistency | Mixed tag casing, date formats | Yes — normalizes |
Links
- GitHub: SingggggYee/kb-lint
- PyPI:
pip install kb-lint
Below are instructions for Claude Code. You can ignore this section.
Instructions
-
Find the target. User-specified path, or scan for
docs/,wiki/,notes/,content/. If user says "memory", target~/.claude/. -
Run the linter.
kb-lint --version 2>/dev/null || pip install kb-lint kb-lint \x3Cpath> --format json --severity info 2>&1If kb-lint unavailable, check files manually for: broken
[[wiki-links]], missing frontmatter, thin articles (\x3C100 words), orphans, bad filenames. -
Show a health dashboard. Score out of 100, issues grouped by category and severity, most critical first.
-
Offer to fix. Go beyond the CLI:
- Broken links: fuzzy-match the intended target, confirm with user
- Frontmatter: generate meaningful title/tags/confidence from content, get
createddate from git history - Orphans: suggest which articles should link to the orphan
- Thin articles: suggest an outline, never fabricate content
- Filenames: rename to kebab-case, update all references
-
Verify. Re-run linter, show before/after score.
Claude Code memory mode: For ~/.claude/ targets, also check MEMORY.md index accuracy, validate memory frontmatter, flag stale entries (>90 days), find duplicates.
Rules: Never fabricate content. Always show changes before applying. Respect \x3C!-- kb-lint-disable --> inline comments and per-check severity overrides.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install doc-doctor - 安装完成后,直接呼叫该 Skill 的名称或使用
/doc-doctor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claude Doc Doctor 是什么?
Say 'lint my docs' to scan your markdown KB for broken links, orphan pages, and missing metadata — then auto-fix them. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 149 次。
如何安装 Claude Doc Doctor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install doc-doctor」即可一键安装,无需额外配置。
Claude Doc Doctor 是免费的吗?
是的,Claude Doc Doctor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Claude Doc Doctor 支持哪些平台?
Claude Doc Doctor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux)。
谁开发了 Claude Doc Doctor?
由 SingYee(@singggggyee)开发并维护,当前版本 v4.0.1。