当前位置: 首页 > Skill >

knowledge-health-checker

knowledge-health-checker

knowledge-health-checker

审计并提升 Markdown 知识库的健康状况,覆盖 Obsidian、Logseq、Notion 导出、文档文件夹及 Wiki 仓库。检测空占位笔记...

1.0.1 2026.11.22 823
获取Skill文件查看使用说明
作 者:江言 许可证: 更新时间:2026.11.22
本文目录展开

Knowledge Health Checker

Knowledge Health Checker audits a Markdown-based knowledge base as a living system, not a folder full of files.

It detects whether the knowledge garden is:

  • connected or fragmented
  • dense or hollow
  • current or stale
  • navigable or full of dead links
  • safe to auto-fix or requiring human review

The goal is not only to find problems, but to produce a prioritized, safe, actionable health report.

When to Use

Use this skill for:

  • Obsidian vault cleanup
  • Logseq / Notion Markdown export review
  • documentation repository health checks
  • wiki linting before migration or publishing
  • broken link detection
  • empty placeholder / TODO note detection
  • orphan note and graph fragmentation analysis
  • content density and structure quality review
  • periodic knowledge-base maintenance

Do not use it for semantic fact-checking. This skill checks structure, links, density, freshness, and maintainability, not whether every claim is true.

Core Principle

A healthy knowledge base has four properties:

  1. Substance — notes contain enough content to be useful.
  2. Connectivity — important notes are linked into the graph.
  3. Navigability — links, headings, and structure help readers move through knowledge.
  4. Maintainability — stale, broken, duplicate, or low-value content is visible and repairable.

A knowledge base can be large and still unhealthy. Size is not health.

Default Workflow

Step 1: Confirm scope and safety

Before scanning, identify:

Target path:
Formats: markdown / wiki links / relative links
External URL check: yes/no
Generate fix script: yes/no
Auto-apply fixes: no by default
Exclude directories:
Estimated file count:

Safe default:

scan only → report only → generate fix plan → user reviews → user applies

Never delete, rename, rewrite, or auto-apply fixes without explicit confirmation.

Step 2: Build file and heading index

Index:

  • .md files
  • normalized filenames and aliases
  • headings / anchors
  • relative paths
  • wiki links such as [[note]] and [[note#heading]]
  • markdown links such as [text](path.md)

Exclude by default:

.git/
node_modules/
__pycache__/
.obsidian/
.trash/
dist/
build/

Step 3: Detect hollow or low-value notes

Flag likely hollow notes when they match one or more:

  • fewer than 200 characters
  • no heading
  • only TODO / placeholder text
  • image-heavy with very little explanation
  • template content not filled in
  • empty exported page from Notion/Logseq

Classify severity:

Severity Meaning Typical action
P0 Empty or pure placeholder delete, archive, or fill immediately
P1 Too thin to be useful expand with definition, context, examples
P2 Usable but weak improve structure or add links

Step 4: Detect broken links

Check:

  • wiki file links: [[filename]]
  • wiki heading links: [[filename#heading]]
  • local markdown links: [text](../path/file.md)
  • image/embed paths
  • optional external URLs, only with user confirmation because it can be slow/noisy

For each broken link, report:

source file
link text
target
link type
probable fix if a similar file exists

Step 5: Analyze content density and structure

Measure:

  • word/character count
  • heading depth and hierarchy
  • list/table/code-block usage
  • internal link count
  • external link count
  • last modified time
  • very long files that may need splitting
  • files with no inbound or outbound links

Suggested ranges:

Signal Healthy range Warning
Short note 300+ words or intentionally atomic <200 characters
Long note still navigable with headings >3000 words without structure
Internal links at least 1-3 for durable notes zero links = possible orphan
Freshness depends on domain stale if >90 days and marked active

Step 6: Analyze knowledge graph health

Build a graph:

node = markdown file
edge = internal link

Report:

  • total nodes
  • total edges
  • orphan nodes
  • central nodes
  • weakly connected components
  • one-way links
  • fragmented topic clusters

A perfect graph is not required. The goal is to identify the highest-value repair points.

Step 7: Score health

Default scoring:

Dimension Weight Good state
Hollow note rate 25% few or no empty placeholders
Broken link rate 30% no broken internal links
Content density 25% most notes have useful substance and structure
Network connectivity 20% important notes are connected; few accidental orphans

Health score:

health = weighted score from 0 to 100

Use labels:

Score Label
90-100 Excellent
75-89 Healthy
60-74 Needs maintenance
40-59 Fragile
0-39 Critical

Step 8: Generate report and fix plan

Return a concise summary first. For large scans, provide a full report path.

Fix plans must be safe:

  • generate proposed changes
  • group by risk
  • include reason for each fix
  • require user review before applying destructive changes

Never silently delete or rewrite knowledge files.

Output Format

Use this format:

## Knowledge Health Summary
- Target:
- Files scanned:
- Health score:
- Label:
- Top risks:

## Findings
| Category | Count | Severity | Notes |
|---|---:|---|---|
| Hollow notes |  |  |  |
| Broken links |  |  |  |
| Orphan notes |  |  |  |
| Overlong notes |  |  |  |
| Stale active notes |  |  |  |

## Highest-Impact Fixes
1. P0:
2. P1:
3. P2:

## Safe Fix Plan
- Auto-safe fixes:
- Needs human review:
- Do not auto-apply:

## Artifacts
- Report:
- Fix script:
- Raw JSON:

For small knowledge bases, include concrete file examples. For large ones, include top 10 examples per category and write full details to a report file.

Safe Fix Policy

Classify fixes by risk:

Risk Examples Permission
Low generate report, list broken links, suggest links no extra confirmation
Medium create fix script, add missing backlinks in draft output ask before writing files
High delete notes, rename files, rewrite links globally, split files explicit confirmation required

Default behavior: report and propose, do not mutate.

Bundled Scripts

Use these when available:

  • scripts/health_check.py — core scanner for hollow files, broken links, density, and graph stats.
  • scripts/report_generator.py — HTML report generation.
  • scripts/auto_fix.py — fix-plan or repair-script generation.

Run scripts from the skill directory or pass absolute paths. If a script lacks CLI ergonomics, inspect it and adapt safely rather than guessing destructive behavior.

Example Commands

Basic scan:

python3 scripts/health_check.py /path/to/knowledge-base

Generate a report from scan results if supported:

python3 scripts/report_generator.py results.json --output health-report.html

Generate a fix plan, not auto-apply:

python3 scripts/auto_fix.py results.json --dry-run

If the bundled script does not support these exact flags, read the script first and use its actual interface.

Test Prompts

Use test-prompts.json for Darwin-style regression evaluation. Good test coverage should include:

  • small Markdown folder with broken links
  • Obsidian-style wiki links and missing headings
  • placeholder-heavy exported notes
  • a large graph with orphan clusters
  • request for safe fix plan without auto-apply

Anti-Patterns

Avoid:

  • equating more notes with better knowledge
  • deleting or rewriting files without confirmation
  • checking external URLs by default on large vaults
  • treating all orphan notes as bad; some are intentionally private/draft
  • creating huge reports with no prioritized next action
  • producing a repair script without explaining risk
  • ignoring non-English filenames and encodings

Quality Bar

A good knowledge health check must be:

  • safe: no destructive changes without confirmation
  • specific: names files and link targets
  • prioritized: P0/P1/P2, not a flat dump
  • actionable: includes exact repair suggestions
  • scalable: summarizes large vaults without flooding context
  • portable: works for Obsidian, Logseq, Notion exports, and plain Markdown

If the output only says “you have broken links” without showing where, why it matters, and what to do next, it failed.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
Linux内核提权风险待核实,先查版本与补丁

CVE-2026-78901在摘要中被称为Linux内核ext4本地提权漏洞,CVSS评分7.8,但上游正文暂未核实。本文提供通用只读排查命令,帮运维和开发者核对当前运行内核、发行版补丁及升级生效状态。

2026.12.02 1,000
Skill 文件
  • SKILL.md
    • Knowledge Health Checker
    • When to Use
    • Core Principle
    • Default Workflow
      • Step 1: Confirm scope and safety
      • Step 2: Build file and heading index
      • Step 3: Detect hollow or low-value notes
      • Step 4: Detect broken links
      • Step 5: Analyze content density and structure
      • Step 6: Analyze knowledge graph health
      • Step 7: Score health
      • Step 8: Generate report and fix plan
    • Output Format
    • Safe Fix Policy
    • Bundled Scripts
    • Example Commands
    • Test Prompts
    • Anti-Patterns
    • Quality Bar
  • 项目或源文件

相关 Skill

更多
publish-knowledge-health-checker publish-knowledge-health-checker 知识库健康检查器——超越市面水平的质量诊断工具。检测空壳文件、断链、内容密度和知识网络完整性,生成可视化健康报告卡片,提供自动修复建议。支持Obsidian、Notion、Logseq、Markdown等多格式。触发词:知识库检查、wiki健康、断链检测、空壳文件、知识库质量、lint wiki、know...
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...