obsidian-mind: Command for Claude Code

.claude/commands/om-vault-audit.md

om-vault-audit is a command for Claude Code from breferrari/obsidian-mind. It costs 0 tokens per session (1,502 once invoked), scanned A, original, MIT.

A deep health check for an Obsidian vault, which is a folder of linked notes and related files. It checks structure, metadata, links, indexes, and Bases, which are Obsidian data views.

In plain words
What is it for?
It is for reviewing a vault after major changes or periodically, checking folder and frontmatter rules, finding orphan notes and backlinks, and validating indexes and Bases.
Why use it?
It finds misplaced or stale notes, broken links, missing links, and inconsistent information, and separates issues it can fix from those needing a decision.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is breferrari/obsidian-mind's own configuration. It tells Claude Code how to work on obsidian-mind itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-mind configures →

Part of the obsidian plugin — 8 skills, 20 commands, 10 agents, 5 hooks, 1 MCP server shipped together

About the project

Obsidian Mind is an Obsidian vault that stores notes, links, indexes, and other accumulated context so AI coding agents can retain memory across sessions. It is designed for Claude Code and also supports Codex CLI and Gemini CLI through shared hooks, commands, and vault data. Its catalogue add-ons package the vault’s commands, agents, skills, hooks, instructions, settings, plugin, and MCP integration.

breferrari/obsidian-mind · 4,619 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to breferrari/obsidian-mind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/breferrari/obsidian-mind/main/.claude/commands/om-vault-audit.md
Clone the repo
git clone --depth 1 https://github.com/breferrari/obsidian-mind

Made for: Claude Code.

Or install obsidian, the plugin that ships this one along with the rest of its 8 skills, 20 commands, 10 agents, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for om-vault-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/breferrari/obsidian-mind/om-vault-audit/github.svg)](https://agentmods.dev/commands/breferrari/obsidian-mind/om-vault-audit)
Your own site
<a href="https://agentmods.dev/commands/breferrari/obsidian-mind/om-vault-audit"><img src="https://agentmods.dev/badge/commands/breferrari/obsidian-mind/om-vault-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for om-vault-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/breferrari/obsidian-mind/om-vault-audit"><img src="https://agentmods.dev/badge/commands/breferrari/obsidian-mind/om-vault-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01502
Opus 5 $0.00000 $0.00751
Sonnet 5 $0.00000 $0.00300
Haiku 4.5 $0.00000 $0.00150

Measured 9d ago against content hash 966adfdf35e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

om-vault-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/om-vault-audit.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vault Audit

Deep structural audit of the vault. Checks indexes, folder placement, frontmatter, links, Bases, and consistency. Fix what can be fixed, flag what needs user input.

When to use: After substantial sessions, after reorganization, or periodically to maintain vault health. For lighter end-of-session checks, use /om-wrap-up instead.

Usage

/om-vault-audit

Subagents

This command orchestrates two subagents for deep analysis:

  • vault-librarian — orphan detection, broken links, frontmatter validation, stale notes, index consistency
  • cross-linker — finds missing wikilinks, orphan notes, broken backlinks

Launch vault-librarian first for the structural audit, then cross-linker for link quality.

Workflow

1. Check Folder Structure

Verify the vault matches the expected layout:

  • Home.md exists at vault root
  • bases/ contains all .base files (none scattered elsewhere)
  • work/active/ contains only notes with status: active
  • work/archive/2025/ and work/archive/2026/ contain only status: completed notes
  • work/incidents/ contains only notes tagged incident
  • work/1-1/ contains only 1:1 meeting notes
  • org/people/ contains only notes tagged person
  • org/teams/ contains only notes tagged team
  • templates/ contains only template files (with {{placeholders}})
  • thinking/ is clean (no leftover drafts that should have been promoted)
  • Nothing unexpected at vault root (allowed: Home.md, CLAUDE.md, vault-manifest.json, CHANGELOG.md, CONTRIBUTING.md, README.md, LICENSE, .gitignore — no user notes)

2. Check Indexes

Read and verify each index file:

  • Home.md — do embedded Base views reference existing Bases? Are quick links valid?
  • work/Index.md — are active projects still active? Are completed items in the right section? Any missing notes?
  • brain/Memories.md — is the "Recent Context" section current? Any stale claims?
  • org/People & Context.md — are roles, peer selections, and project assignments current?
  • perf/Brag Doc.md — do PR counts and project descriptions match reality?
  • brain/Skills.md — are all slash commands registered? Workflows still valid?

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 142 lines · 0 tokens per session scan A 966adfdf35e7

Subscribe to this mod's changes

om-vault-audit is a command published in the GitHub repository breferrari/obsidian-mind (4,619 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,502 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.