wiki-lint

GitHub

对 Obsidian 知识库执行只读健康检查,检测死链、孤立页面及元数据问题。不自动修复,仅报告结果并指导后续审查与修复流程。

skills/wiki-lint/SKILL.md AgriciDaniel/claude-obsidian

Trigger Scenarios

需要审计知识库健康状况 查找死链接或孤立文件 检查元数据完整性

Install

npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -g -y
More Options

Use without installing

npx skills use AgriciDaniel/claude-obsidian@wiki-lint

指定 Agent (Claude Code)

npx skills add AgriciDaniel/claude-obsidian --skill wiki-lint -a claude-code -g -y

安装 repo 全部 skill

npx skills add AgriciDaniel/claude-obsidian --all -g -y

预览 repo 内 skill

npx skills add AgriciDaniel/claude-obsidian --list

SKILL.md

Frontmatter
{
    "name": "wiki-lint",
    "description": "Run a deterministic, read-only health check on an Obsidian wiki. Use for lint, vault health check, audit wiki health, find orphans, find dead links, frontmatter audit, provenance audit, or wiki audit. Reports graph, link, frontmatter, provenance-ledger, empty-section, and stale-index findings; it does not reason broadly or repair files."
}

Lint the wiki

Use the portable lint engine as the source of truth. Lint observes vault state; it does not create reports, dashboards, canvases, stubs, or fixes.

Resolve the installed product root from this skill's own location, not from the vault or current working directory:

PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"

Run

Resolve the user vault, then run one of:

python3 "$CORE" lint --vault "$VAULT"
python3 "$CORE" lint --vault "$VAULT" --format markdown

Use --strict only when a nonzero exit for findings is useful in automation. The command remains read-only either way.

The deterministic parser understands Obsidian wikilinks and embeds, Markdown links, aliases, heading and block fragments, escaped aliases, and code fences. It reports such categories as dead or ambiguous links, orphan pages, required frontmatter gaps (including title), empty sections, stale index entries, and source/claim ledger contract violations. Report only the checks and counts present in its output; do not claim that it performed semantic, stylistic, or prose-level contradiction analysis when it did not.

Explain findings

  1. Preserve the engine's paths, line numbers, targets, categories, and counts.
  2. Group findings by likely impact: broken navigation, ambiguous resolution, metadata quality, then maintainability.
  3. Explain that an orphan may be intentional and an ambiguous basename needs a path-qualified link; do not infer intent from the finding alone.
  4. Treat allowlisted findings as policy, not as proof that the target exists.
  5. Separate deterministic facts from suggested remediation.

Do not write the Markdown rendering into the vault. Return it in chat or stdout.

Repair is a separate operation

Never auto-fix a lint result. After the user chooses specific findings to repair:

  1. Re-read each target and record its expected SHA-256.
  2. Draft only the selected changes; do not delete or merge pages without explicit consent.
  3. Build one repair bundle with a new operation ID.
  4. Inspect the bundle and show exact changed paths.
  5. Apply only after that separate review.
  6. Re-run lint read-only and compare the relevant findings.

Follow the operation transaction contract. Lint itself never applies that transaction and never commits Git.

Checkpoint

Observe the deterministic report, think about root causes rather than finding count, verify proposed repairs against current hashes, and grow by improving the workflow that produced repeated findings.

Version History

  • 1c1bc49 Current 2026-08-19 22:45

    v2.0.0 移除旧版传输层逻辑,改为基于绝对路径的确定性 Python 引擎,聚焦只读 lint 检查,不再负责生成报告文件或处理传输策略。

  • cb93ff6 2026-07-25 04:50

Same Skill Collection

skills/autoresearch/SKILL.md
skills/canvas/SKILL.md
skills/defuddle/SKILL.md
skills/obsidian-bases/SKILL.md
skills/obsidian-markdown/SKILL.md
skills/save/SKILL.md
skills/think/SKILL.md
skills/wiki-cli/SKILL.md
skills/wiki-fold/SKILL.md
skills/wiki-ingest/SKILL.md
skills/wiki-mode/SKILL.md
skills/wiki-query/SKILL.md
skills/wiki-retrieve/SKILL.md
skills/wiki/SKILL.md

Metadata

Files
0
Version
ad67087
Hash
e268098b
Indexed
2026-07-25 04:50

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 08:15
浙ICP备14020137号-1 $お客様$