vault-health

vault-health is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 74 tokens per session (3,432 once invoked), scanned A, original, MIT.

A maintenance workflow for an Obsidian vault, which is a folder of linked Markdown notes. It checks the vault’s links, filenames, graph structure, and compatibility with Obsidian.

In plain words
What is it for?
Use it to find and repair broken links, add or verify connections between notes, prevent filename collisions, manage orphan notes, and check that links work properly in Obsidian.
Why use it?
It helps prevent broken or ambiguous links, isolated notes, duplicate filenames, and unnecessary growth from automatically generated files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/brain-broken-link-fix
Any agent
npx skills add humanerd-drew/opencode-drewgent --skill brain-broken-link-fix
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

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 vault-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/brain-broken-link-fix.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/brain-broken-link-fix)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/brain-broken-link-fix"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/brain-broken-link-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00074 $0.03432
Opus 5 $0.00037 $0.01716
Sonnet 5 $0.00015 $0.00686
Haiku 4.5 $0.00007 $0.00343

Measured 5d ago against content hash aa1289957d73, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vault-health 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/vault-audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

@action/skills/brain-broken-link-fix/SKILL.md · 228 lines

How it starts

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

Vault Health

{{AGENT_NAME}}'s internal knowledge base (.{{AGENT_NAME_LOWER}}/) IS an Obsidian vault. This skill covers maintaining its health — broken link detection, backlink density, graph connectivity, auto-generated orphan management, and Obsidian compatibility.

Principles

  1. Prevention over detection. Fix the root cause so nothing needs ongoing management. "관리할 일이 안생기게 애초에 잘하던가." A rule/cronjob that only reports problems is not a solution — fix the source.
  2. Every file should have ≥1 inbound and ≥1 outbound wikilink. Orphans defeat the graph.
  3. Body wikilinks > frontmatter links:. Obsidian Graph View prioritizes body links. Frontmatter links should be mirrored in body.
  4. Bidirectional linking. If A links to B, B should link back to A (or be reachable via a hub node). After any linking pass, verify bidirectionality.
  5. Unique filenames are essential. Duplicate filenames (e.g., SOUL.md × 4, index.md × 29) cause broken wikilinks and ambiguous resolution. Every .md file in the vault should have a unique slug. Before creating a file, check for naming collisions. This is the vault's SEO: each resource gets one canonical name.
  6. Obsidian compatibility. .neuron files must be registered as markdown extensions. Template variables ({doc_name}) are acceptable orphans.
  7. Auto-generated orphans are by design. Telemetry/log files that are write-only (never read back) should be excluded from graph view or deleted. Their inbound link count is 0 and will stay 0 — that's correct.
  8. Operational files stay out of the graph. cron/output, source/, .trash/, _agent/, venv/ should be in Obsidian userIgnoreFilters. They are runtime artifacts, not knowledge.

Detection

# Dangling wikilinks (MEMORY.md targets that don't exist as files)
bash ~/.hermes/scripts/{{AGENT_NAME_LOWER}}_graph_gap_analysis.sh

# Full vault audit (Python — see references/vault-audit.py)
python3 references/vault-audit.py

3-Step Vault Health Protocol

Read the full file on GitHub · 228 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 228 lines · 74 tokens per session scan A aa1289957d73

Subscribe to this mod's changes

vault-health is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (2 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 3,432 once invoked, about $0.0004 per session on Opus 5. 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-31.

Related

Other skills, from other repositories

chief-of-staff

Personal Chief of Staff system for ADHD-ish operators. Vault-based, loop-driven, nervous-system-aware. Built and lived-in across daily sessions on real consulting, content, and long-running personal work.

jdpolasky/ai-chief-of-staff · 44 tokens

constellation-vault

Build the live object graph (Constellation) and export an Obsidian vault with verified wikilinks from a running ProtoOS world.

ANAMIZED/Proto-OS · 33 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

qmd

Search the vault using QMD semantic search. Use PROACTIVELY before reading files. Preference order: (1) MCP tools — mcpqmdquery, mcpqmdget, mcpqmdmultiget, mcpqmdstatus — if they appear in your tool menu, use them first; (2) CLI qmd --index ... as fallback; (3) Grep/Glob only when QMD is not installed. Trigger…

breferrari/obsidian-mind · 142 tokens

llm-wiki

The foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources…

Ar9av/obsidian-wiki · 113 tokens