moc

Regenerates MOC.md with structure counts, focus-note context, and live Dataview sections.

23|2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/onebrain-ai/onebrain --skill moc-onebrain-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moc
Source: https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/moc
Command: npx skills add https://github.com/onebrain-ai/onebrain --skill moc-onebrain-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the tedious work of manually maintaining a high-level vault overview by automatically rebuilding a single Map of Content (MOC.md) with up-to-date counts and navigation.

Core Features & Use Cases

  • Creates or refreshes Vault Portal: Generates/updates MOC.md at the vault root with an Agent Summary section, live Dataview blocks, and a preserved user-controlled Pinned section.
  • Provides a live dashboard-like overview: Summarizes Projects, Areas, Knowledge, Resources, Bookmarks, Tasks, and Recently Modified using Dataview queries and filesystem scanning.
  • Keeps user edits safe: Preserves the content under the existing “## 📌 Pinned” section by reading it before rewriting the rest of the file.

Quick Start

Run the moc skill to regenerate MOC.md at your vault root so your vault overview reflects the latest structure and activity.

Frequently Asked Questions about moc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate a Map of Content for my Obsidian vault?

To automatically generate a Map of Content for your Obsidian vault, you can use a tool that scans your markdown files and rebuilds MOC.md with updated structure counts and live Dataview sections. This eliminates manual maintenance of your vault overview.

What is the best way to create a dashboard overview of projects and tasks in Obsidian?

The best way to create a dashboard overview of projects and tasks in Obsidian is to regenerate a root MOC.md file using Dataview queries and filesystem scanning. This provides a live summary of recently modified items, tasks, and resources.

Can I refresh my vault overview without losing my pinned notes in MOC.md?

Yes, you can refresh your vault overview without losing pinned notes. The regeneration process specifically identifies and preserves the content under your existing Pinned section before rewriting the rest of the MOC.md file.

Does the MOC regeneration require a specific folder configuration?

Yes, MOC regeneration requires reading an onebrain.yml file for folder configuration. This setup ensures the tool accurately scans markdown files and produces correct structure counts for your vault portal.

Why does my vault overview show incorrect file counts after manually updating folders?

Your vault overview shows incorrect file counts because the MOC.md file has not been regenerated. Running the regeneration process scans the markdown files with fresh glob counts to ensure accurate data reflection.