Vault Lint Operation
When this skill is invoked, perform the following autonomous health-check on the user's Obsidian Vault:
Phase 1: Structural Integrity
- Read
{{VAULT_PATH}}/wiki/index.mdand extract all listed page references. - List all actual
.mdfiles inside{{VAULT_PATH}}/wiki/(including subdirectories:entities/,concepts/,synthesis/). - Identify:
- Stale index entries: Pages listed in
index.mdthat no longer exist on disk. - Unlisted pages: Pages on disk that are not cataloged in
index.md.
- Stale index entries: Pages listed in
Phase 2: Link Integrity
- Scan all
.mdfiles inside{{VAULT_PATH}}/wiki/for[[wikilinks]]. - Identify:
- Broken wikilinks: Links pointing to pages that do not exist.
- Orphan pages: Pages with zero inbound wikilinks from other pages.
Phase 3: Content Health
- Scan
wiki/concepts/andwiki/entities/pages for YAML frontmatter. - Identify:
- Missing frontmatter: Pages lacking
title,tags, ordatefields. - Empty pages: Files with no meaningful content beyond the frontmatter.
- Missing frontmatter: Pages lacking
Phase 4: Report
Generate a structured markdown report with:
- Total pages scanned.
- Issues found per category (stale, unlisted, broken links, orphans, missing frontmatter).
- Suggested fixes for each issue.
- Ask the user: "Would you like me to auto-fix these issues?"
If the user approves fixes:
- Remove stale entries from
index.md. - Add unlisted pages to
index.md. - Add missing frontmatter to pages that lack it.
- Append a
lintentry to{{VAULT_PATH}}/wiki/changelog.md.