vault-lint

vault-lint is a skill for Claude Code from Howie126313/obsidian-vault-kit. It costs 63 tokens per session (1,255 once invoked), scanned A, original, Apache-2.0.

A health checker for an Obsidian vault, which is a folder of linked Markdown notes. It looks for broken links, unlinked notes, inconsistent indexes, missing cross-references, and invalid frontmatter, the metadata at the top of a note.

In plain words
What is it for?
Use it to audit an Obsidian vault, find broken or orphaned notes, check index files, identify missing references, and validate note metadata.
Why use it?
It finds problems that can make a note collection difficult to navigate or maintain. The checks reveal missing connections and inconsistent note data.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the obsidian-vault-kit plugin — 6 skills shipped together

Good fit Use it to audit an Obsidian vault, find broken or orphaned notes, check index files, identify missing references, and validate note metadata.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/howie126313/obsidian-vault-kit/vault-lint
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.

Any agent
npx skills add Howie126313/obsidian-vault-kit --skill vault-lint
Clone the repo
git clone --depth 1 https://github.com/Howie126313/obsidian-vault-kit

Made for: Claude Code.

Or install obsidian-vault-kit, the plugin that ships this one along with the rest of its 6 skills.

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-lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/howie126313/obsidian-vault-kit/vault-lint/github.svg)](https://agentmods.dev/skills/howie126313/obsidian-vault-kit/vault-lint)
Your own site
<a href="https://agentmods.dev/skills/howie126313/obsidian-vault-kit/vault-lint"><img src="https://agentmods.dev/badge/skills/howie126313/obsidian-vault-kit/vault-lint/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 vault-lint

Your own site · 80×15
<a href="https://agentmods.dev/skills/howie126313/obsidian-vault-kit/vault-lint"><img src="https://agentmods.dev/badge/skills/howie126313/obsidian-vault-kit/vault-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,255 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.00063 $0.01255
Opus 5 $0.00032 $0.00628
Sonnet 5 $0.00013 $0.00251
Haiku 4.5 $0.00006 $0.00126

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

Security

Grade A, and why

vault-lint 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.

skills/vault-lint/SKILL.md · 147 lines

How it starts

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

Vault Lint — Knowledge Base Health Check

Inspired by Karpathy's "Lint" philosophy: periodically scan the vault to surface inconsistencies, broken links, orphan pages, and data gaps.

Workflow

Step 1: Environment Detection

1a. Detect vault root — follow ../../_shared/common-steps.md "Vault Detection" section.

1b. Scan all article files:

Glob("**/*.md", path="$VAULT_ROOT")

Exclude .claude/, .git/, .playwright-mcp/, reviews/, node_modules/ directories. Build the file list $ALL_ARTICLES.

Step 2: Six Checks

Check 1: Broken Links

Scan all articles for [[wikilink]] and [[wikilink|alias]]:

Grep("\\[\\[.*?\\]\\]", path="$VAULT_ROOT", glob="**/*.md", output_mode="content")

For each wikilink:

  1. Extract the link target (the part before |)
  2. Look for a matching file in $ALL_ARTICLES (filename without .md extension)
  3. No match → record as broken link, note the source file and line number
Check 2: Orphan Pages

For each file in $ALL_ARTICLES:

  1. Extract the filename (without path and extension)
  2. Search all other articles for [[filename]] or [[filename|
  3. No inbound links → record as orphan page

Exclude index.md, README.md, CLAUDE.md (these naturally have no inbound links).

Check 3: index.md Consistency
  1. Read $VAULT_ROOT/index.md
  2. Compare against $ALL_ARTICLES:
    • Entry in index.md but file doesn't exist → ghost entry
    • File exists but no entry in index.md → missing entry
  3. Check whether total_articles count in the index.md header is accurate
Check 4: Cross-Reference Suggestions

For each article:

  1. Extract 3-5 core keywords (from title and tags)
  2. Search other articles for these keywords
  3. If article A frequently mentions core concepts of article B but has no [[B]] link → suggest adding a cross-reference

This check is time-intensive; limit to 10 most recently modified articles per run.

Check 5: Summary Quality

Read the full file on GitHub · 147 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 · 147 lines · 63 tokens per session scan A 312f6d5c9d37

Subscribe to this mod's changes

vault-lint is a skill published in the GitHub repository Howie126313/obsidian-vault-kit (3 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 1,255 once invoked, about $0.0003 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.