Vault mocs

From laurigates/claude-plugins · View interactive version

Vault mocs is an AI agent skill from the GitHub repository laurigates/claude-plugins. Map-of-Content (MOC) curation for Obsidian vaults. Use when creating a MOC for a tag, extending with orphans, fixing legacy MOC tags, or analyzing coverage.

How to use this skill

Skill file

MOC Curation

When to Use This Skill

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

|---|---|

| Creating or extending a Map of Content hub for a tag category | Reconnecting individual orphaned notes without building a hub β€” use vault-orphans |

| Migrating legacy πŸ—ΊοΈ MOC tags to canonical πŸ“/moc | Renaming or consolidating non-MOC tags across the vault β€” use vault-tags |

| Auditing MOC coverage and linking orphans into existing hubs | Repairing broken [[...]] references inside an existing MOC β€” use vault-wikilinks |

A Map of Content (MOC) is a structured hub note that organizes related content via wikilinks. It's the primary navigation surface of a mature Obsidian vault β€” more useful than tags, more discoverable than search.

Canonical MOC Shape

---
tags: [πŸ“/moc]
---

# Neovim MOC

Central hub for Neovim configuration, plugins, and workflows.

## Core

- [[Neovim]] β€” base configuration
- [[Lazy.nvim]] β€” plugin management

## Plugins

- [[nvim-treesitter]]
- [[Mason LSP]]

## Keybindings and Workflow

- [[Neovim Keybindings]]
- [[Neovim Session Management]]

Rules:

  1. Tag is exactly πŸ“/moc β€” not πŸ—ΊοΈ (legacy), not MOC (flat), not πŸ“/MOC (wrong case).
  2. File lives in Zettelkasten/ (personal) or work/MOC/ (work).
  3. Filename is {Subject} MOC.md β€” suffix, not prefix.
  4. Body has a one-paragraph description, then ## section headings, then bullet-list wikilinks.
  5. Never has id: or other legacy frontmatter.

Legacy MOC Fixups

| Issue | Fix |

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

| tags: πŸ—ΊοΈ | Rewrite to tags: [πŸ“/moc] |

| tags: [πŸ—Ί, πŸ“/moc] | Deduplicate to tags: [πŸ“/moc] |

| MOC in work/z/ instead of work/MOC/ | Move file |

| Uses [[Kanban/Foo]] path-qualified links | Rewrite to [[Foo]] when basename unique |

Coverage Analysis

For each tag category (πŸ› οΈ/, πŸ”Œ/, πŸ’»/, etc.), the vault-agent mocs.analyze_mocs analyzer reports how many tagged notes are NOT linked from any MOC. High uncovered counts indicate:

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:

Coverage analysis offline: for each tag category, count notes whose parsed frontmatter tags place them in the category but which no πŸ“/moc-tagged note links to (via the resolution cascade). That is the same uncovered count mocs.analyze_mocs produces from the live index.

Creating a New MOC

Thresholds (heuristic):

If all three hold, create Zettelkasten/{Category} MOC.md:

---
tags: [πŸ“/moc]
---

# {Category} MOC

{One-paragraph framing of the category.}

## {Section}

- [[Note1]]
- [[Note2]]

Pick 2–4 ## sections that reflect natural groupings within the notes β€” don't force a deep hierarchy.

Extending an Existing MOC

When the analyzer reports orphaned notes that belong in an existing MOC:

  1. Read the MOC and find the most appropriate ## section (or create a new one if 3+ notes fit a new grouping).
  2. Add wikilinks one per bullet, alphabetical within the section.
  3. Keep descriptions brief β€” one short phrase per link at most.

Don't add a "See also" or "Random" section as a dumping ground. If a note doesn't fit any section, reconsider whether it belongs in this MOC at all.

Never Do

Commit Messages

| Action | Commit |

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

| New MOC | feat(mocs): add {Category} MOC covering N notes |

| Fixup tag | fix(mocs): πŸ—ΊοΈ β†’ πŸ“/moc on work MOCs |

| Add orphans | feat(mocs): link 12 notes into Neovim MOC |

| Rewrite path-qualified link | fix(mocs): unqualify [[Kanban/X]] β†’ [[X]] across 6 MOCs |

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.