# Setup script for AgriciDaniel/claude-obsidian on Windows (PowerShell), from https://gitmanual.com/AgriciDaniel/claude-obsidian # Read it before you run it: the commands come from the repo's own README and files. # Run: powershell -ExecutionPolicy Bypass -File .\setup.ps1 $ErrorActionPreference = "Stop" function Write-Step($t) { Write-Host "`n==> $t" -ForegroundColor Cyan } # Windows ships a python that only opens the Microsoft Store; it doesn't count. function Have($c) { $cmd = Get-Command $c -ErrorAction SilentlyContinue; [bool]$cmd -and $cmd.Source -notlike '*\WindowsApps\*' } # New installs change PATH; pick it up without opening a new window. function Update-Path { $env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User") } # Stop when a program fails, like bash's set -e. Dot-sourced, so cd and venv activation carry on to the next step. function Invoke-Step([scriptblock]$Block) { $global:LASTEXITCODE = 0; . $Block; if ($LASTEXITCODE) { throw "Failed with exit code $LASTEXITCODE" } } Write-Step '1/2 Clone the repository' if (-not (Test-Path 'claude-obsidian')) { Invoke-Step { git clone https://github.com/AgriciDaniel/claude-obsidian.git } } Set-Location 'claude-obsidian' Write-Step '2/2 Follow the README: Install' # Run these in Git Bash (installed with Git) or WSL — not PowerShell. Do the README instructions above first. Invoke-Step { claude plugin marketplace add AgriciDaniel/claude-obsidian } Invoke-Step { claude plugin install claude-obsidian@agricidaniel-claude-obsidian } # start Claude Code in your vault folder Invoke-Step { claude } # set up the vault (shows you a preview first) Invoke-Step { /claude-obsidian:wiki } # turn what is in inbox/ into linked notes Invoke-Step { /claude-obsidian:wiki-ingest } # ask a question, answered from your notes Invoke-Step { /claude-obsidian:wiki-query } # keep a good answer as a note Invoke-Step { /claude-obsidian:save } # health check: dead links, orphans, gaps Invoke-Step { /claude-obsidian:wiki-lint } # (needs Git Bash or WSL on Windows) bash scripts/setup-multi-agent.sh --host codex # preview, writes nothing # (needs Git Bash or WSL on Windows) bash scripts/setup-multi-agent.sh --host codex --apply # link the skills Invoke-Step { claude plugin marketplace update agricidaniel-claude-obsidian } Invoke-Step { claude plugin update claude-obsidian@agricidaniel-claude-obsidian } Write-Host 'Set up AgriciDaniel/claude-obsidian.' Write-Host 'Manual: https://gitmanual.com/AgriciDaniel/claude-obsidian'