Vault orphans

From laurigates/claude-plugins · View interactive version

Vault orphans is an AI agent skill from the GitHub repository laurigates/claude-plugins. Triage orphaned notes (zero in/out wikilinks) in an Obsidian vault. Use when finding orphans, linking them into a MOC, or reconnecting Zettelkasten notes.

How to use this skill

Skill file

Orphan Triage

When to Use This Skill

| Use this skill when... | Use the alternative instead when... |

|---|---|

| Triaging orphan notes (zero incoming, zero outgoing wikilinks) for archive vs. reconnect | Building a new MOC hub the orphans should link into — use vault-mocs |

| Distinguishing expected orphans (inbox, daily notes) from meaningful ones | Discovering the orphan list itself via the running CLI — use search-discovery |

| Suggesting archival paths for stale isolated Zettelkasten notes | Classifying or consolidating work-namespace redirect stubs — use vault-stubs |

An "orphan" is a note with no incoming wikilinks AND no outgoing wikilinks — disconnected from the knowledge graph. Some orphans are expected; others are the most productive places to add structure.

Classes of Orphan

| Class | Where | Treat as |

|-------|-------|----------|

| Inbox items | Inbox/*.md | Expected; process via /process-inbox |

| Daily notes | Notes/YYYY-MM-DD.md, work/notes/… | Expected; they link out but rarely in |

| Standalone references | Zettelkasten/*.md with 0↔0 | Meaningful — add linkage |

| Kanban board notes | Kanban/*.md | Usually acceptable; boards are self-contained |

| Archive / logs | under Archive/ subfolders | Expected; stale by design |

The vault-agent graph analyzer classifies each automatically.

Offline Fallback (App Closed)

The detection methodology above is unchanged — only the data source changes when Obsidian (and its obsidian CLI / live link index) is closed. The obsidian CLI and vault-agent analyzers are the live-index path; parsing the .md corpus directly with Glob/Grep is the deterministic headless default, and for batch/scheduled audits it is often the better choice (reproducible, free of app/index state). vault-frontmatter already operates this way.

Parse the corpus directly:

Build the link graph from the resolved wikilinks: a note is an orphan when no resolved link targets it (zero incoming) and it emits no link that resolves (zero outgoing). The class table above (Inbox / daily / Archive) is path-derived and works identically offline.

Triage Workflow

For each meaningful orphan:

  1. Read the note — is the content still relevant, or is this old/dead content?
  2. Identify its primary category — by tag (e.g., 🛠️/neovim → Neovim MOC) or by title.
  3. Pick ONE action:

Never Do

Linking Heuristics

When adding a note to a MOC, match on:

  1. Primary tag category — a note tagged 🛠️/neovim belongs in the Neovim MOC.
  2. Content topic — read the first paragraph; pick the MOC that covers that subject.
  3. Existing cluster — if notes A, B, C all link to each other but none link from a MOC, add the whole cluster to the MOC under one section heading.

MOC Section Placement

MOCs typically have sections like ## Core Concepts, ## Tools, ## Specific Configurations. Pick the most specific section that fits; create a new ## Something section only if 3+ notes fall under the same new heading.

Batch Pattern

Never modify 100+ MOC links in one commit — that's unreviewable. Use one commit per MOC:

feat(mocs): link 12 orphaned CLI tool notes into new CLI Tools MOC

Safety

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.