✨

Claude Doc Doctor

Claude Doc Doctor · v4.0.1
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(BAD_NAME)。我们仍保留下载,方便你自行查看内容。
安全 unknown 级 作者 singggggyee 公开目录收录
581 下载 0 安装 2.9k 收藏 2 浏览

简介

Claude Doc Doctor

原始描述

Say 'lint my docs' to scan your markdown KB for broken links, orphan pages, and missing metadata — then auto-fix them.

通过你的 Agent 添加

安装目录:claude-doc-doctor/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/claude-doc-doctor/
Codex CLI~/.codex/skills/claude-doc-doctor/
DeepSeek Harness~/.agents/skills/claude-doc-doctor/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: Doc Doctor description: "Say 'lint my docs' to scan your markdown KB for broken links, orphan pages, and missing metadata — then auto-fix them." version: 3.0.0 metadata: openclaw: requires: bins: - python3 emoji: "🔍" homepage: https://github.com/SingggggYee/kb-lint os: - macos - linux install: - kind: uv package: kb-lint

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


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/.

  2. Run the linter.

    kb-lint --version 2>/dev/null || pip install kb-lint
    kb-lint <path> --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.

  3. Show a health dashboard. Score out of 100, issues grouped by category and severity, most critical first.

  4. 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
  5. 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 <!-- kb-lint-disable --> inline comments and per-check severity overrides.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill