agentleFS
thoreinsteinthoreinstein/obsidian-rag/skills/link-audit/SKILL.md

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".

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
  1. Very specific:

    Call obsidian_get_broken_links (optionally with subfolder argument).

    line 15
  2. Very specific:

    Call obsidian_list_notes to enumerate all notes in scope.

    line 22
  3. Distinctive:

    If the user asks for deeper suggestions:

    line 29
  4. Very specific:

    If strong matches exist (low distance score), suggest [[wikilink]] connections.

    line 32
  5. Distinctive:

    Never make edits without per-change user confirmation

    line 42
  6. Very specific:

    Run /index first if obsidian_get_broken_links seems incomplete

    line 43

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Vault Link Audit

Comprehensive audit of link health: broken wikilinks, orphaned notes, and semantic suggestions.

Phase 1 — Broken Links

  1. Call obsidian_get_broken_links (optionally with subfolder argument).
  2. Present broken links grouped by originating file.
  3. For each, suggest: delete the link, create a stub note, or correct the target name.
  4. Offer to fix each with obsidian_replace_in_note (wrong name → correct name).

Phase 2 — Orphaned Notes

  1. Call obsidian_list_notes to enumerate all notes in scope.
  2. For each candidate orphan, call obsidian_get_backlinks.
  3. Notes with zero backlinks AND not in Daily Notes/ are orphan candidates.
  4. 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:

  1. For each orphan, call obsidian_rag_query with the orphan title as query, limit: 5.
  2. 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 /index first if obsidian_get_broken_links seems incomplete

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.