link-audit
Skill2 starsChanged 8 months agoMITView on GitHub
Use when the user wants to audit vault link health, find broken wikilinks, orphaned notes, or semantic clusters. Triggers on "link audit", "broken links", "orphaned notes", "link health", "graph cleanup", or "find orphans".
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compoundSkill
- cross-linkerSkill
- indexSkill
- journalSkill
- linksSkill
- moc-updateSkill
- obsidian-companionSkill
- researchSkill
- searchSkill
- vault-lintSkill
- vaultSkill
- wiki-ingestSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Call obsidian_get_broken_links (optionally with subfolder argument).
- Very specific: line 22
Call obsidian_list_notes to enumerate all notes in scope.
- Distinctive: line 29
If the user asks for deeper suggestions:
- Very specific: line 32
If strong matches exist (low distance score), suggest [[wikilink]] connections.
- Distinctive: line 42
Never make edits without per-change user confirmation
- Very specific: line 43
Run /index first if obsidian_get_broken_links seems incomplete
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vault Link Audit
Comprehensive audit of link health: broken wikilinks, orphaned notes, and semantic suggestions.
Phase 1 — Broken Links
- Call
obsidian_get_broken_links(optionally withsubfolderargument). - Present broken links grouped by originating file.
- For each, suggest: delete the link, create a stub note, or correct the target name.
- Offer to fix each with
obsidian_replace_in_note(wrong name → correct name).
Phase 2 — Orphaned Notes
- Call
obsidian_list_notesto enumerate all notes in scope. - For each candidate orphan, call
obsidian_get_backlinks. - Notes with zero backlinks AND not in
Daily Notes/are orphan candidates. - Present orphan list with options: link from a relevant note, move to archive, or delete.
Phase 3 — Semantic Suggestions (Optional)
If the user asks for deeper suggestions:
- For each orphan, call
obsidian_rag_querywith the orphan title as query,limit: 5. - If strong matches exist (low distance score), suggest
[[wikilink]]connections.
Arguments
Optional subfolder: /link-audit Engineering/
Tips
- For large vaults, always scope to a subfolder first (Phase 2 on full vault is slow)
- Broken links in
Daily Notes/are usually harmless — offer to skip them - Never make edits without per-change user confirmation
- Run
/indexfirst ifobsidian_get_broken_linksseems incomplete
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

