No slash command · from obsidian-plugin
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.
Ships in obsidian-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
---
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:
📝/moc — not 🗺️ (legacy), not MOC (flat), not 📝/MOC (wrong case).Zettelkasten/ (personal) or work/MOC/ (work).{Subject} MOC.md — suffix, not prefix.## section headings, then bullet-list wikilinks.id: or other legacy frontmatter.| 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 |
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:
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:
--- fences; extract tags, aliases, context. See vault-frontmatter for YAML-block mechanics.[[Target]], [[Target|Alias]], [[Target#Heading]], [[folder/Target]], and ![[embed]]. Resolve each target to a note by basename, then relative path, then alias (from frontmatter), all case-insensitive. Resolve ![[embed]] against attachments as well as notes — the attachment folder is per-vault configurable, so read it from .obsidian/app.json (attachmentFolderPath) and fall back to the vault root / Files/ only when that key is unset.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.
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.
When the analyzer reports orphaned notes that belong in an existing MOC:
## section (or create a new one if 3+ notes fit a new grouping).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.
📝/moc tag to a note that isn't actually a MOC — it pollutes MOC inventories.vault-wikilinks rewrite patterns).| 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 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
obsidian, map-of-content, moc, vault-curation, knowledge-management
npx claudepluginhub laurigates/claude-plugins --plugin obsidian-plugin21 skills in this plugin
/basesObsidian Bases (database-over-notes): list base files/views, create items, run view queries with json/csv/tsv/md output. Use when user mentions Bases or .base files./bookmarksObsidian bookmarks: list and add file/folder/heading/saved-search/URL bookmarks. Use when starring or saving notes for quick access./command-paletteRun, list, and inspect Obsidian commands and hotkeys from the CLI. Use when triggering a command, enumerating commands, or checking hotkey bindings.Other plugins' skills for the same job