Maintain Obsidian Vault
Core rule
Treat the Obsidian vault as the source of truth. Preserve existing information. Never delete, merge, rename, or archive notes without explicit user approval. Never edit credential-like files structurally.
Keep generated content deterministic and separate from handwritten content. Use stable filenames and metadata so Obsidian, external Markdown tooling, and RAG pipelines can address notes consistently.
Standard workflow
- Inventory Markdown files with
rg --files -g '*.md', excluding generated dependency folders. - Run
scripts/vault_audit.py <vault-root>before editing. - Detect available vault tooling before relying on it. Use the filesystem and
vault_audit.pyworkflow when optional Obsidian CLI or other helpers are unavailable; do not assume an Obsidian CLI installation. - Read root governance notes if present:
Vault Indexing Policy.mdCanonical Terminology.mdDocument Lifecycle.mdRepository Improvement Report.md
- Read the target notes and nearby directory context before changing links or metadata.
- Apply minimal edits:
- add or repair YAML frontmatter
- add semantic wikilinks where they improve navigation
- add
## See alsosections for genuinely related concepts - add hub/index pages only when they connect existing knowledge
- add placeholder concept pages only when repeated concepts have no canonical note
- For any approved rename, inventory inbound wikilinks first, repair every affected reference, and validate that no links were broken. Prefer leaving the filename stable when a rename has no clear benefit.
- Validate with
scripts/vault_audit.py <vault-root> --json <report.json>and fix unresolved wikilinks introduced by the work. - Report what changed, what was intentionally skipped, and remaining risks.
Exclusions
Do not index or structurally edit:
node_modules/**.venv/**.pytest_cache/**.git/**.obsidian/**.next/**- generated caches and build output
- files whose names suggest secrets:
key,token,secret,password,credential,oauth,login
If a secret-like file already contains generated frontmatter or See also, ask before changing it unless the user explicitly requested cleanup.
Frontmatter policy
For permanent authored Markdown, ensure frontmatter has at least:
---
title: "Document Title"
type: project
status: active
tags:
- example
---
Use existing repository evidence only. Do not fabricate owners, dates, infrastructure, project status, or technical claims. Keep frontmatter keys stable. Prefer predictable scalar values and existing repository conventions so Obsidian search, Dataview/Bases-style views, and external Markdown/RAG tooling can consume notes consistently.
Allowed type values:
architecturetechnologyprojectguidereferencedecisionprocessspecificationbusinessmeetingresearchtemplateindexarchive
Preferred status values:
draftactiveplaceholdersupersededarchiveunknown
Linking policy
Prefer concept relationships over keyword relationships.
Good links connect:
- project to company hub
- project to architecture note
- implementation note to technology concept
- duplicate draft to canonical note
- source evidence to project hub
Avoid linking every occurrence of a word. Usually link once in a section or in See also.
Use path-based wikilinks when duplicate filenames or ambiguous titles exist:
[[Company/Bauart/BauartURS/PROJECT_KNOWLEDGE|BauartURS]]
Placeholder concept pages
Create placeholder pages only when a concept is referenced repeatedly and has no canonical note.
Required placeholder wording:
Generated placeholder.
Keep placeholder definitions conservative and supported by repository references.
Maintenance report
When completing a maintenance pass, update or create a report section covering:
- files changed
- new hubs or placeholders
- unresolved duplicates
- stale/generated artifacts
- secret-like files skipped
- unresolved risks
- validation results
Generated sections must be reproducible across repeated runs. Mark their boundaries clearly, update only the generated region, and preserve handwritten content outside it.
References
Read references/vault-maintenance.md when planning larger maintenance passes or designing recurring review routines.