← 返回
未分类 中文

Claude Doc Doctor

Say 'lint my docs' to scan your markdown KB for broken links, orphan pages, and missing metadata — then auto-fix them.
说“lint my docs”,即可扫描 Markdown 知识库,查找失效链接、孤立页面和缺失元数据,并自动修复。
singggggyee singggggyee 来源
未分类 clawhub v4.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 414
下载
💾 0
安装
1
版本
#latest

概述

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

CheckWhat it findsAuto-fixable?
------------------------------------
Broken links[[wiki-links]] pointing to nothingYes — fuzzy-matches the right target
Orphan pagesFiles no other page links toSuggests where to add links
Missing frontmatterNo title, tags, or metadataYes — generates from content
Thin articlesUnder 100 wordsSuggests outlines
Bad filenamesSpaces, non-kebab-caseYes — renames + updates all references
InconsistencyMixed tag casing, date formatsYes — normalizes

Links


Below are instructions for Claude Code. You can ignore this section.

Instructions

  1. Find the target. User-specified path, or scan for docs/, wiki/, notes/, content/. If user says "memory", target ~/.claude/.
  1. Run the linter.

```bash

kb-lint --version 2>/dev/null || pip install kb-lint

kb-lint --format json --severity info 2>&1

```

If kb-lint unavailable, check files manually for: broken [[wiki-links]], missing frontmatter, thin articles (<100 words), orphans, bad filenames.

  1. Show a health dashboard. Score out of 100, issues grouped by category and severity, most critical first.
  1. 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 created date 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
  1. 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 inline comments and per-check severity overrides.

版本历史

共 1 个版本

  • v4.0.1 当前
    2026-05-03 08:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Claude Usage Analyzer

singggggyee
分析 Claude Code token 使用情况。显示 token 流向、最高成本项目以及减少浪费的方法。在用户询问 token 使用、费用或...时使用。
★ 2 📥 473

Claude Config Linter

singggggyee
检查 Claude Code 配置中的令牌浪费问题,包括 CLAUDE.md、hooks、skills 和 commands,并提供健康评分及可操作的修复建议。
★ 0 📥 430

Agent Rule Pilot

singggggyee
Say 'sync my agent configs' to write coding rules once and sync to Claude Code, Cursor, Copilot, Windsurf, and 4 more ag
★ 0 📥 361