moclisted
Install: claude install-skill onebrain-ai/onebrain
# Vault Portal
Creates or updates `MOC.md` at the vault root : a hybrid Map of Content with:
- **AI zone:** agent-written summary callout (note counts, focus note)
- **Dataview zone:** live queries for Tasks, Recently Modified, Projects, Areas, Knowledge, Resources, Bookmarks
- **Static zone:** user-maintained Pinned section (never overwritten by the agent)
Usage:
- `/moc` : create or refresh MOC.md and open it in Obsidian
---
## Step 1: Read vault configuration
Read `onebrain.yml` from the current working directory. If it cannot be read or parsed, stop immediately and tell the user:
> "onebrain.yml exists but could not be parsed : aborting. Check onebrain.yml for syntax errors and try again. Error: [error]."
Store `moc_path = {vault_root}/MOC.md`.
---
## Step 2: Scan vault for summary data
Collect the following using Glob to count `.md` files:
- **projects_count** : `.md` files under `[projects_folder]/` (recursive)
- **areas_count** : `.md` files under `[areas_folder]/` (recursive)
- **knowledge_count** : `.md` files under `[knowledge_folder]/` (recursive)
- **resources_count** : `.md` files under `[resources_folder]/` (recursive)
- **inbox_count** : `.md` files directly in `[inbox_folder]/` (non-recursive, direct children only)
- **focus_note** : the single most recently modified `.md` file across projects, areas, knowledge, and resources folders. Store its display name (filename without `.md` extension) and its vault-relative path for use as a wikilink.
If a fo