/obsidian-wiki:wiki-switchfrom obsidian-wiki
Lists, creates, or switches between named Obsidian vault profiles by managing symlinks in a global config directory. Use when changing the active vault or managing multi-vault setups.
Ships in obsidian-wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Global config dir. Every path below is relative to the global config dir, resolved per the
Config Resolution Protocol in llm-wiki/SKILL.md: $XDG_CONFIG_HOME/obsidian-wiki (default
~/.config/obsidian-wiki), or the legacy ~/.obsidian-wiki if that already exists on disk. Resolve
it once per invocation with:
CONFIG_DIR="$( [[ -d "$HOME/.obsidian-wiki" && ! -e "${XDG_CONFIG_HOME:-$HOME/.config}/obsidian-wiki" ]] && echo "$HOME/.obsidian-wiki" || echo "${XDG_CONFIG_HOME:-$HOME/.config}/obsidian-wiki" )"
Each vault is a complete config file at $CONFIG_DIR/config.<name>. The active vault is
whichever file $CONFIG_DIR/config symlinks to. Switching vaults means re-pointing that symlink.
Switch vs. inline targeting. /wiki-switch <name> changes your persistent default (re-points
the symlink, affecting all future requests). To touch a different vault for just one request without
changing your default, use the inline @name override in any request (e.g. @work save this,
wiki-query @personal about X). The @name override is handled by the Config Resolution Protocol
in llm-wiki/SKILL.md, not by this skill — it resolves $CONFIG_DIR/config.<name> for that one
invocation and never re-points the symlink.
Parse the invocation and route to the right section:
| Invocation | Action |
|---|---|
/wiki-switch <name> | → Switch |
/wiki-switch list | → List |
/wiki-switch show [name] | → Show |
/wiki-switch new <name> | → New |
/wiki-switch (no args) | → List (treat as list) |
@<name> … (inline, in any request) | → Not this skill — the Config Resolution Protocol resolves that vault for one invocation without re-pointing the symlink |
Activate a named vault profile.
$CONFIG_DIR/config.<name> exists. If not, tell the user the vault doesn't exist and list what's available (run List).ln -sf "$CONFIG_DIR/config.<name>" "$CONFIG_DIR/config"
OBSIDIAN_VAULT_PATH from the newly active config.Switched to vault: <name>
Vault path: <value of OBSIDIAN_VAULT_PATH from the config>
Show all registered vault profiles and which is active.
$CONFIG_DIR/config.* (exclude config itself — that's the symlink).readlink "$CONFIG_DIR/config"#) as a human description of the vault. Fall back to the file's suffix as the label if no comment exists.Vaults:
personal My personal research wiki ← active
work Work projects wiki
Mark the active one with ← active. If the symlink is broken or config doesn't exist, show (none active).Print the full config for a vault.
$CONFIG_DIR/config.<name>.$CONFIG_DIR/config (the active vault).API_KEY or SECRET — show *** instead of the value).Scaffold a new vault config from the current active config as a template.
$CONFIG_DIR/config.<name> doesn't already exist. Abort if it does.cp "$CONFIG_DIR/config" "$CONFIG_DIR/config.<name>"
# --- Section name --- comment headers to group fields into sections (e.g., # --- Vault-specific ---, # --- Vault-independent ---, # --- Secrets ---). Use these sections to determine what to ask about:
$CONFIG_DIR/config.<name>.# Obsidian Wiki — <name> vault).Created: $CONFIG_DIR/config.<name>
Run `/wiki-switch <name>` to activate it, then run `wiki-setup` to initialise the new vault.
Do not switch automatically — let the user decide when to activate.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
obsidian, vault-management, config-profiles, symlink-switching
npx claudepluginhub ar9av/obsidian-wiki --plugin obsidian-wiki42 skills in this plugin
/claude-history-ingestIngest Claude Code conversation/session history into Obsidian as distilled knowledge. Use for importing or mining past Claude sessions, .claude data, project/session history, or audit logs.
/code-understandMap the load-bearing files, symbols, callers, and dependencies of an unfamiliar codebase before making changes. Use for architecture orientation, impact analysis, what-would-break questions, or finding callers. Uses CodeGraph when available and a dependency-free builtin fallback.
/codex-history-ingestIngest Codex CLI conversation/session history into Obsidian as distilled knowledge. Use for importing or mining ~/.codex sessions, rollout files, indexes, or transcript logs; use wiki-agent for targeted topic-only recall.
/copilot-history-ingestIngest GitHub Copilot CLI/session history into Obsidian as distilled knowledge. Use for importing or mining Copilot history; not for general Copilot help, simple session search, or backup.
/cross-linkerFind and add missing cross-references between wiki pages. Use when pages are disconnected or after large ingestion. This modifies pages to add links; use wiki-lint for report-oriented structural auditing.
/daily-updateRun or configure the daily wiki maintenance cycle: check source freshness, refresh the index and hot.md, and manage its scheduled 9 AM launchd/systemd/cron reminder. Use for daily or morning wiki refresh or scheduler setup and verification.
Other plugins' skills for the same job