vault-lint
Skill18 starsChanged 12 days agoApache-2.0View on GitHub
Audits graph health, validates Open Knowledge Format (OKF v0.3/v0.2) frontmatter compliance, detects broken links, finds orphaned notes, repairs escaped table pipes, upgrades vaults to OKF v0.3, and verifies freshness across the central Obsidian Vault ($OBSIDIAN_VAULT_PATH or ~/ObsidianVault). Use when the user invokes /vault-lint or /lint, asks to lint the vault, check vault health, audit the vault, repair vault links, migrate a vault to OKF v0.3, or after major batch ingestions and refactors. Don't use for ingesting new raw documents (use ingest) or launching the interactive 3D WebGL graph server (use vault-graph).
7 other projects use a version of this.
Adopted by
Most recently taken up by
- arielnishri-svg/claude-skillstheir own version, first seen Nov 29, 2026
- jamejialicona-cmyk/vault-startertheir own version, first seen Sep 22, 2026
- Lucioway/way-stacktheir own version, first seen Aug 31, 2026
- slogsdon/skills-vault-knowledgetheir own version, first seen Aug 12, 2026
- tograf/sidebraintheir own version, first seen Jun 21, 2026
- hootbu/llm-wiki-mindtheir own version, first seen May 1, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Howie126313/obsidian-vault-kit★ 3same name
- jamejialicona-cmyk/vault-starter★ 2same name
- arielnishri-svg/claude-skills★ 1same name
- hootbu/llm-wiki-mind★ 1same name
- tograf/sidebrain★ 1same name
- Lucioway/way-stack★ 0same name
- slogsdon/skills-vault-knowledge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- distill-sessionSkill
- ingestSkill
- knowledge-compilerSkill
- vault-correctSkill
- vault-graphSkill
- vault-pullSkill
- vault-querySkill
- vault-shareSkill
- wikiskillSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 101
Table Pipe Invariant Violations: Run --fix to repair escaped pipe characters inside markdown table links (replace [[Target\|Alias]] with …
- Very specific: line 102
Legacy Sources Migration: Run --fix --migrate-sources to deterministically upgrade legacy string sources: entries into {id, resource} …
- Very specific: line 103
Human Trust-Tier Approval: Run --approve-human <wiki-note-path> after manual review to stamp verified: [{ by: human:<id>, at: <UTC> }].
- Very specific: line 104
Orphan & Wanted Pages Resolution: Add reciprocal connections in corresponding concept or source summaries, or create high-priority notes …
- Very specific: line 105
Cross-Synthesis Creation: When recommended by the 4-signal engine, suggest or create wiki/synthesis/ notes bridging high-affinity topics.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🧹 Vault Lint & Health-Check Skill (/vault-lint)
This skill performs automated graph validation, OKF v0.3/v0.2 frontmatter schema verification, one-command v0.2 -> v0.3 migration, orphan detection, and link health checks across the central Knowledge Compiler Obsidian Vault ($OBSIDIAN_VAULT_PATH, defaults to ~/ObsidianVault).
🚀 Triggers & Commands
/vault-lintor/lint- Natural language triggers:
- "Check vault health"
- "Lint the Obsidian vault"
- "Find broken links or orphan notes in the vault"
- "Verify OKF schema compliance"
⚡ Execution Workflow
┌─────────────────────────────────────────────────────────────────────────────┐
│ VAULT LINT EXECUTION PIPELINE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ [Step 1: Automated Graph & Schema Scan] │
│ Run vault_lint.py across $OBSIDIAN_VAULT_PATH or ~/ObsidianVault │
│ │ │
│ ▼ │
│ [Step 2: Diagnostic Evaluation] │
│ Analyze broken links, orphan notes, schema defects & stale_after dates │
│ │ │
│ ▼ │
│ [Step 3: Automated Remediation] │
│ Auto-repair broken link aliases, index missing notes, fix escaped pipes │
│ │ │
│ ▼ │
│ [Step 4: Audit Trail Logging] │
│ Append audit summary to ObsidianVault/log.md │
│ │
└─────────────────────────────────────────────────────────────────────────────┘1. Run Automated Linter, Strict Mode, Migration & Human Approval
Execute the OKF v0.3/v0.2 vault linter script via run_command (OKF v0.3 bundle root ., compiled concepts in wiki/):
# Standard health & OKF conformance audit (plus optional upstream spec check)
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --check-okf-upstream
# Strict CI / conformance mode (fails with exit 1 on stale_notes, orphan_notes, missing_from_index, legacy_sources_notes)
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --strict --json
# Repair escaped table pipes AND opt-in migrate legacy string sources to OKF {id, resource} objects
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --fix --migrate-sources
# Upgrade an OKF v0.2 vault to OKF v0.3 (root index.md okf_version: "0.3", frontmatter-free log.md & wiki/**/index.md, leading '/' bundle paths, x-kc-* epistemic keys)
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --fix --migrate-v03
# Also rewrite resolved Obsidian [[wikilinks]] to portable OKF v0.3 RFC 3986 relative Markdown links and x-kc-* bundle-root paths
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --fix --migrate-v03 --portable-links
# Stamp explicit human verification onto a reviewed wiki/ note (Trust Tier: human-reviewed)
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" \
--approve-human wiki/concepts/MyNote.md --actor human:<username>
# Detect synthesis drift & plain-text unlinked mentions (fail strictly on stale_syntheses via --strict-drift)
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --mentions --strict-drift
# Two-phase deduplication: (1) generate read-only manifest, review & flip "approved": true, (2) apply with SHA-256 CAS
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --dedup-manifest /tmp/dedup_manifest.json
python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" --apply-manifest /tmp/dedup_manifest.json- Pass
--check-okf-upstreamwhenever checking whether a newer version of the official Open Knowledge Format specification has been published atgithub.com/open-knowledge-format/open-knowledge-format(SPEC.md, currentlyv0.3).
Exit Codes
0: Conformant (is_healthy == Trueand zero warnings when--strictis active).1: Conformance errors (missing_frontmatter, missingtype,<= 16 KiBor YAML anchor/alias violations, invalidAttested Computationorsourcesdict entries),broken_links,table_invariant_violations, or warnings under--strict.2: Invalid or missing vault path, missingwiki/bundle root, or invalid--approve-humantarget (outsidewiki/, symlink, traversal,raw/, or root file).
2. Inspect Audit Heuristics & Graph Intelligence
The linter verifies critical health metrics and computes graph structural insights:
- Broken Links (
🔗) &wanted_pages: Unresolved[[Target]]wikilinks where the destination markdown file does not exist, aggregated and ranked inwanted_pagesby inbound reference count (inbound_countdescending). - Table Pipe Invariants (
⚠️): Verifies no escaped pipe characters exist inside tables ([[Target|Alias]]required). - Orphan Notes (
🏝️): Notes with 0 inbound wikilinks from other notes orindex.md. - Dead-End Notes (
🛑): Notes with 0 outbound links. - Freshness & Stale Claims (
⏳): Flags any notes instale_noteswherecurrent_time >= stale_after(warning by default; fails under--strict). - Unindexed Wiki Notes (
📑): Markdown notes inwiki/that are omitted fromindex.md. - OKF v0.2 Bundle Compliance & Trust Tiers (
📐): Validates every non-reserved note inwiki/(typerequired, YAML<= 16 KiBwithout&/*anchors/aliases,sourcesvalidation withlegacy_sources_notesnotice, footnote checks, andAttested Computationcontracts) and computestrust_tier_counts(unverified,machine-confirmed,human-reviewed). Also validates root Workspace Profile files (index.md,log.md,GEMINI.md). - 4-Signal Graph Relevance Engine (
🧠):- Bridge Hubs: High-degree nodes bridging $\ge 2$ distinct knowledge domains.
- Cluster Cohesion: Calculates subgraph density $\frac{2E}{V(V-1)}$ across directories to spot sparse conceptual clusters.
- Cross-Synthesis Recommendations: Uses composite multi-signal scoring ($W = 3.0 \cdot \text{Direct} + 4.0 \cdot \text{SourceOverlap} + 1.5 \cdot \text{Adamic-Adar} + 1.0 \cdot \text{TypeAffinity}$) to recommend missing cross-domain syntheses.
3. Automated Remediation
- Missing Index Entries: Automatically add missing notes into the appropriate section in
index.md. - Table Pipe Invariant Violations: Run
--fixto repair escaped pipe characters inside markdown table links (replace[[Target\|Alias]]with[[Target|Alias]]). - Legacy Sources Migration: Run
--fix --migrate-sourcesto deterministically upgrade legacy stringsources:entries into{id, resource}mappings. - Human Trust-Tier Approval: Run
--approve-human <wiki-note-path>after manual review to stampverified: [{ by: human:<id>, at: <UTC> }]. - Orphan & Wanted Pages Resolution: Add reciprocal connections in corresponding concept or source summaries, or create high-priority notes listed in
wanted_pages. - Cross-Synthesis Creation: When recommended by the 4-signal engine, suggest or create
wiki/synthesis/notes bridging high-affinity topics.
4. Append Audit Entry to log.md
Prepend a lint audit entry to ${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}/log.md:
## [YYYY-MM-DD] lint | Vault Health & 4-Signal Graph Audit
- Scanned N notes across wiki/, raw/, and index.md.
- Graph connections: N resolved links, 0 broken links.
- OKF compliance: 100%.
- Bridge Hubs identified: <list of key hubs>.
- Remediations: <list of auto-repaired links or index entries>.🛡️ Critical Invariants
- Table Wikilink Invariant: Inside markdown tables, never escape the pipe character (always use
[[Target|Alias]], never[[Target\|Alias]]).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

