Vault system

From mycelium-hq/ai-brain-starter · View interactive version

Vault system is an AI agent skill from the GitHub repository mycelium-hq/ai-brain-starter. Use when maintaining the vault ITSELF as a system, not its content: knowledge-graph build/rebuild/query (graphify), second-brain mapping, vault diagnose/audit/hygiene, drift detection, extract rules from vault, backfill journals, setup vault types, consolidate memory (index over cap), Obsidian tooli

How to use this skill

Skill file

Vault system

Routes vault meta-maintenance — the vault AS a system (its markdown corpus, knowledge graph, drift monitors, rule extraction, substrate sync). Not the content; the substrate that makes the content queryable and auditable.

Distinct from:

This is the SUBSTRATE layer. It maintains what every other skill uses.

Step 1. Identify the maintenance moment

| Trigger | Skill / tool |

|---|---|

| Knowledge graph stale or never built for a corpus | graphify |

| Existing graph query (find concept / path / cluster) | your graph-query tool, or Obsidian graph view |

| Typed-file metadata extraction (books, meetings, people, articles, goals) | second-brain-mapping |

| Vault self-check (CLAUDE.md / Meta folder / skills / hooks / MCPs / journal index) | diagnose |

| Files edited many times in a short window (drift hotspot) | a drift-detection pass → a Drift Audit note |

| Recurring corruption pattern needs codification | codify it into a new rule file in your rules dir |

| Journals missing body / frontmatter context | backfill-journal-body-context |

| Vault types not yet set up (new vault or refresh) | setup-vault-types |

| Memory index getting long (truncation cliff) | consolidate-memory |

| Obsidian Bases / JSON Canvas / Markdown / CLI work | the matching obsidian:* skill |

If unclear → ask ONE question. Don't guess.

Step 2. Pre-flight

  1. Vault location: resolve the vault root (a VAULT_PATH / VAULT_ROOT env var, or the current directory).
  2. Graph state: check whether a graph report exists and how fresh it is before answering graph questions.
  3. Drift state: check the latest drift-audit output.
  4. Rules state: list the rules directory.
  5. Memory state: check the memory index length (keep it under the truncation cliff).
  6. Git in a large vault: NEVER git add -A / . / unscoped git status on a big vault — full-tree walks are slow and lock-contending. Use explicit paths.

Step 3. Route by work-type

Knowledge graph

Second-brain mapping

Diagnostics + drift

Rule extraction + memory

Journal hygiene

Vault setup + onboarding

Obsidian tooling

Step 4. Post-flight (gates "done")

  1. Graph rebuilt + report regenerated if graphify ran.
  2. Memory index under the truncation cliff post-consolidation.
  3. Drift hotspots resolved if the Drift Audit surfaced any.
  4. New rules indexed in the rules directory.
  5. Vault committed with explicit paths (never raw git add -A in a large vault).

Common mistakes

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.