wiki-switch
ar9av/obsidian-wiki
Switch between multiple Obsidian wiki vault profiles with named configs.
What is wiki-switch?
Manage and activate different Obsidian vault configurations using named profiles. Use this skill to switch your active vault, list available vaults, view vault configs, or create new vault profiles. Useful when working with multiple separate wikis or knowledge bases.
- Switch the active vault by re-pointing a symlink to a named config file
- List all registered vault profiles and identify which is currently active
- Display the full configuration for any vault (with secrets redacted)
- Create new vault profiles by scaffolding from the active config as a template
- Support inline @name overrides to target a different vault for a single request without changing defaults
How to install wiki-switch
npx skills add https://github.com/ar9av/obsidian-wiki --skill wiki-switch- Obsidian wiki skill (llm-wiki) installed and configured
- At least one existing vault config file at $CONFIG_DIR/config
How to use wiki-switch
- 1.Run `/wiki-switch list` to see all available vault profiles and the active one
- 2.Run `/wiki-switch <name>` to switch to a different vault profile
- 3.Run `/wiki-switch show [name]` to view the configuration for a vault
- 4.Run `/wiki-switch new <name>` to create a new vault profile from the current config
- 5.Use `@<name>` inline in any request to target a vault for one invocation without changing your default
Use cases
- Switch between a personal research wiki and a work projects wiki
- Create a new vault profile for a client project without affecting your default vault
- View all available vault configurations to see what's set up
- Check which vault is currently active before running wiki operations
- Scaffold a new vault config by copying and customizing an existing one
- Users managing multiple Obsidian vaults or knowledge bases
- Teams sharing vault infrastructure with different profiles per context
- Knowledge workers switching between personal and professional wikis
wiki-switch FAQ
`/wiki-switch <name>` permanently changes your default vault by re-pointing the symlink. The `@name` override (e.g., `@work save this`) targets a different vault for just that one request without changing your default.
In the global config directory: `$XDG_CONFIG_HOME/obsidian-wiki` (default `~/.config/obsidian-wiki`), or the legacy `~/.obsidian-wiki` if it already exists. Each vault is a file named `config.<name>`.
Run `/wiki-switch new <name>`. The skill will copy your active config as a template, ask you to update vault-specific fields, and create `config.<name>`. Then run `/wiki-switch <name>` to activate it.
The skill will tell you the vault doesn't exist and list all available vaults so you can choose a valid one.
Yes. Lines containing `API_KEY` or `SECRET` are redacted and shown as `***` to protect sensitive credentials.
Full instructions (SKILL.md)
Source of truth, from ar9av/obsidian-wiki.
name: wiki-switch description: > Switch between multiple Obsidian wiki vault profiles. Use this skill when the user says "/wiki-switch NAME", "switch to my work wiki", "switch vault", "change wiki", "which wiki am I on", "list my wikis", "show my vaults", "create a new vault config", or "add a new wiki profile". The skill manages named config files at <global config dir>/config.NAME and activates one by symlinking it to <global config dir>/config.
Wiki Switch — Manage Multiple Vault Profiles
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.
Dispatch
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 |
Switch (default action)
Activate a named vault profile.
- Verify
$CONFIG_DIR/config.<name>exists. If not, tell the user the vault doesn't exist and list what's available (run List). - Run:
ln -sf "$CONFIG_DIR/config.<name>" "$CONFIG_DIR/config" - Read
OBSIDIAN_VAULT_PATHfrom the newly active config. - Confirm to the user:
Switched to vault: <name> Vault path: <value of OBSIDIAN_VAULT_PATH from the config>
List
Show all registered vault profiles and which is active.
- Find all files matching
$CONFIG_DIR/config.*(excludeconfigitself — that's the symlink). - Resolve the current symlink target:
readlink "$CONFIG_DIR/config" - For each config file, read the first non-empty comment line (lines starting with
#) as a human description of the vault. Fall back to the file's suffix as the label if no comment exists. - Display:
Mark the active one withVaults: personal My personal research wiki ← active work Work projects wiki← active. If the symlink is broken orconfigdoesn't exist, show(none active).
Show
Print the full config for a vault.
- If a name is given, read
$CONFIG_DIR/config.<name>. - If no name given, read
$CONFIG_DIR/config(the active vault). - If the file doesn't exist, tell the user and list what's available.
- Print the file contents verbatim (redact any lines containing
API_KEYorSECRET— show***instead of the value).
New
Scaffold a new vault config from the current active config as a template.
- Check
$CONFIG_DIR/config.<name>doesn't already exist. Abort if it does. - Copy the active config:
cp "$CONFIG_DIR/config" "$CONFIG_DIR/config.<name>" - Read the copied config. Config files use
# --- 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:- Fields in sections labeled "vault-specific", "paths", or similar → ask the user for new values
- Fields in sections labeled "vault-independent", "global", "shared" → keep as-is (copy over unchanged)
- Fields in sections labeled "secrets" → ask if the new vault uses the same credentials or different ones
- If there are no section headers, present all fields and let the user decide which to change
- Ask the user for updated values for the vault-specific fields. Use the current values as visible defaults — the user only needs to supply what differs.
- Write the updated values into
$CONFIG_DIR/config.<name>. - Update the top comment line to describe the new vault (e.g.,
# Obsidian Wiki — <name> vault). - Confirm:
Do not switch automatically — let the user decide when to activate.Created: $CONFIG_DIR/config.<name> Run `/wiki-switch <name>` to activate it, then run `wiki-setup` to initialise the new vault.
Related skills
More from ar9av/obsidian-wiki and the wider catalog.

wiki-synthesize
Discover and synthesize cross-cutting insights from concept pairs that co-occur across your Obsidian wiki.

wiki-update
Sync project knowledge into your Obsidian wiki from any codebase.

claude-history-ingest
Ingest Claude Code conversation history into your Obsidian wiki for knowledge mining.

codex-history-ingest
Mine your Codex CLI conversation history and distill it into an Obsidian wiki.

altimate-data-engineering-skills
Claude Code skills for analytics and data engineers working with dbt, Snowflake, and data pipelines

amee-joshi-data-engineering-portfolio
Reference portfolio demonstrating Azure data engineering patterns, Medallion architecture, and end-to-end analytics solutions