Audit Vault
Parse the argument to determine which mode to run:
full(or no argument) — run all checkstags— only check tag validityfrontmatter— only check frontmatter compliancelinks— only check broken wikilinksorphans— only check orphan notes and empty files
Execution
Based on the mode, run the appropriate script:
fullor no argument:bash ~/.claude/skills/audit-vault/scripts/audit_all.shtags:bash ~/.claude/skills/audit-vault/scripts/check_tags.shfrontmatter:bash ~/.claude/skills/audit-vault/scripts/check_frontmatter.shlinks:bash ~/.claude/skills/audit-vault/scripts/check_links.shorphans:bash ~/.claude/skills/audit-vault/scripts/check_orphans.sh
Presenting Results
After running the script(s), present results as a table grouped by severity:
| Severity | Category | Issue | File |
|---|
Severity levels:
- Critical — Broken wikilinks, missing frontmatter entirely, invalid tags
- Improvement — Missing optional frontmatter fields (author, published, etc.), orphan notes, missing
description,type, orstatusin 30_notes/ frontmatter - Cosmetic — Near-empty files, minor metadata gaps, quoted tags, missing
summaryon long notes
For each issue found, suggest a specific fix (e.g., "Add source: field to frontmatter", "Create target note or remove link").
If no issues are found, confirm the vault is healthy.
Troubleshooting
- Script fails with "No such file or directory": The vault path in the script may not match the actual vault location. Verify the path.
- False positives for broken wikilinks: Links may point to aliases or notes with special characters. Cross-check flagged links in Obsidian.
- Permission denied errors: iCloud Drive may be syncing. Wait a moment and retry.