---
name: Wiki Lint
slug: wiki-lint-4
category: Writing
description: Wiki Lint health-checks a knowledge base for orphan pages, broken links, contradictions, stale concepts, and missing cross-links. It also applies the 30-day confidence decay rule and reports items to fix.
github: "https://github.com/IssacW228/student-llm-wiki/tree/main/skills/wiki-lint"
stars: 176
forks: 4
install: "npx degit https://github.com/IssacW228/student-llm-wiki/tree/main/skills/wiki-lint ~/.claude/skills/wiki-lint"
installs_to: ~/.claude/skills/wiki-lint
source_path: skills/wiki-lint/SKILL.md
collection_size: 9
category_size: 1328
collection_url: "https://dirskills.com/collections/IssacW228/student-llm-wiki"
added: 2026-09-07T05:21:25.916Z
last_synced: 2026-09-07T05:21:25.916Z
canonical_url: "https://dirskills.com/skills/wiki-lint-4"
---

# Wiki Lint

Wiki Lint health-checks a knowledge base for orphan pages, broken links, contradictions, stale concepts, and missing cross-links. It also applies the 30-day confidence decay rule and reports items to fix.

**Install:**

```bash
npx degit https://github.com/IssacW228/student-llm-wiki/tree/main/skills/wiki-lint ~/.claude/skills/wiki-lint
```

## README

# Wiki Lint

健康检查知识库。
Health-check the knowledge base.

## 检查项 Checks

1. **孤立页 Orphans**: 没有任何 `[[链接]]` 指向的概念页
2. **断链 Broken links**: `[[链接]]` 指向不存在的页面
3. **矛盾 Contradictions**: 不同页面对同一概念的冲突描述。同时写入 `wiki/contradictions.md`（用 wiki-ingest 中的矛盾记录格式）并更新 `overview.md` 的矛盾摘要
4. **陈旧内容 Stale**: confidence:low 且长期未更新的页面
5. **Confidence 衰减 Decay**:
   - 若概念页 `last_reviewed` 距今 >30天，且期间未被新页面引用 → confidence 降一级（high→medium→low）
   - 列出所有降级的概念
6. **跨课程缺失 Missing links**: 同一概念出现在多门课但没有互链
7. **课程总览缺失 Missing overviews**: `index.md` 中每门课是否都有对应的 `wiki/courses/{course}-overview.md`；缺少则自动创建（用 wiki-ingest 中的课程总览页格式）
8. **术语表缺失 Glossary gaps**: 检查 `wiki/glossary.md` 中缺少哪些已有概念页的术语条目，补充完整

## 流程 Process

1. 读 `wiki/index.md` 获取所有页面列表
2. 按需读取页面检查（遵守token预算，分批检查）
3. 报告发现，**询问用户要修复哪些**（不要自动全改）
4. 修复后，批量维护（无需用户确认，直接更新）：
   - `wiki/courses/{course}-overview.md`（缺少的课程总览页直接新建）
   - `wiki/glossary.md`（补充缺失的术语条目）
   - `wiki/contradictions.md`（追加新发现的矛盾）
   - `wiki/connections-log.md`（补录缺失的跨课连接）
   - `wiki/overview.md`（同步更新矛盾摘要、连接摘要、课程列表）
   - `wiki/log.md`（追加格式: `## {YYYY-MM-DD} — lint: 孤立N 断链N 衰减N 矛盾N 补连N 补总览N 补术语N`）

## 报告格式 Report

```
🏝️ 孤立页 (N): ...
🔗 断链 (N): ...
⚡ 矛盾 (N): ...
📉 衰减降级 (N): [概念] high→medium (45天未复习)
🌉 缺失跨课连接 (N): [概念A] 和 [概念B] 应互链
📂 缺失课程总览 (N): wiki/courses/{course}-overview.md
📖 术语表缺失条目 (N): [概念名]
```
