obsidian-init
Original:🇺🇸 English
Translated
3 scripts
Initialize and onboard a new project repository as an Obsidian Vault. Covers prerequisite installation, vault configuration, exclusion filters, and validation. Use when setting up Obsidian for the first time in a project.
4installs
Added on
NPX Install
npx skill4agent add richfrem/agent-plugins-skills obsidian-initTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Obsidian Init (Vault Onboarding)
Status: Active
Author: Richard Fremmerlid
Domain: Obsidian Integration
Purpose
This skill is the entry point for any project adopting Obsidian. It handles:
- Verifying (and guiding installation of) prerequisites
- Initializing the vault configuration
- Setting up exclusion filters
- Validating the vault is ready for agent operations
Phase 1: Prerequisites Installation
1.1 Obsidian Desktop Application (Required)
The Obsidian desktop app must be installed on the host machine. It is the visual
interface for browsing, editing, and viewing the Graph and Canvas.
macOS (Homebrew):
bash
brew install --cask obsidianManual Download:
Verify:
bash
ls /Applications/Obsidian.app1.2 Obsidian CLI v1.12+ (Recommended)
The official CLI communicates with a running Obsidian instance via IPC singleton lock.
It enables programmatic vault operations (read, search, backlinks, properties).
npm (global install):
bash
npm install -g obsidian-cliVerify:
bash
obsidian --versionNote: The CLI requires an active Obsidian Desktop instance to communicate with. It operates in "silent" mode by default. For headless/CI environments where Obsidian is not running, our(fromvault_ops.py) handles direct filesystem operations without requiring the CLI.obsidian-vault-crud
1.3 ruamel.yaml (Required for CRUD Operations)
Lossless YAML frontmatter handling requires :
ruamel.yamlbash
pip install ruamel.yaml1.4 Optional Community Plugins
For advanced vault features, install these from within the Obsidian app:
| Plugin | Purpose | Required For |
|---|---|---|
| Dataview | Database-style queries over frontmatter | Structured metadata queries |
| Canvas (built-in) | Visual boards with JSON Canvas spec | |
| Bases | Table/grid/card views from YAML | |
Phase 2: Vault Initialization
Interactive Init
bash
python plugins/obsidian-integration/skills/obsidian-init/scripts/init_vault.py --vault-root <path>With Custom Exclusions
bash
python plugins/obsidian-integration/skills/obsidian-init/scripts/init_vault.py \
--vault-root <path> \
--exclude "custom_dir/" "*.tmp"Validate Only (No Changes)
bash
python plugins/obsidian-integration/skills/obsidian-init/scripts/init_vault.py --vault-root <path> --validate-onlyWhat It Does
- Validates the target directory exists and contains files
.md - Creates the configuration directory (if not present)
.obsidian/ - Writes with sensible exclusion filters for developer repos
app.json - Updates to exclude
.gitignore(user-specific config).obsidian/ - Reports next steps for opening the vault in the Obsidian app
Phase 3: Exclusion Configuration
Default Exclusions
| Pattern | Reason |
|---|---|
| NPM dependencies |
| Git worktree isolation |
| ChromaDB binary data |
| Git internals |
| Python virtual environments |
| Python bytecode cache |
| Data/config files (not knowledge) |
| Export payloads |
| Machine-generated bundle |
| Machine-generated bundle |
| Machine-generated bundle |
| Audit/review bundles |
| Context digests |
| Export artifacts |
Why Exclude Machine-Generated Files?
These are giant concatenated snapshots produced by bundler/distiller scripts.
Indexing them in Obsidian would pollute the graph with thousands of false
backlinks pointing into machine-generated text, not human-authored knowledge.
Phase 4: Post-Init Steps
- Open Obsidian → Click "Open Folder as Vault" → Select vault root
- Verify indexing → Check that ,
01_PROTOCOLS/, etc. appear in sidebarADRs/ - Test wikilinks → Click any to confirm navigation works
[[link]] - Set VAULT_PATH →
export VAULT_PATH=/path/to/vault
Portability Note
This skill is project-agnostic. It works on any Git repository with markdown
files. The exclusion filters are sensible defaults for developer projects. When
reusing this plugin in other projects, simply run the init script with the new
project's root path.
Quick Reference: Full Install Sequence
bash
# 1. Install prerequisites
brew install --cask obsidian # Desktop app
npm install -g obsidian-cli # CLI tools
pip install ruamel.yaml # Lossless YAML
# 2. Initialize vault
python plugins/obsidian-integration/skills/obsidian-init/scripts/init_vault.py \
--vault-root /path/to/your/project
# 3. Set environment variable
export VAULT_PATH=/path/to/your/project
# 4. Open in Obsidian app
open /Applications/Obsidian.app