init-project
Configure this project for Obsidian PKM — connects the repo to a vault project folder and writes CLAUDE.md integration directives
Configure Vault PKM plugin — set vault path, API keys, and verify setup
$ npx -y skills add AdrianV101/obsidian-pkm-plugin --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/setupContext preview
What this command does when you run it.
Configure Vault PKM plugin — set vault path, API keys, and verify setup
name: setup description: Configure Vault PKM plugin — set vault path, API keys, and verify setup allowed-tools: [Bash, Read, Write, Edit, Glob, Grep, AskUserQuestion]
You are configuring the Vault PKM plugin. Walk the user through these steps:
Ask the user for their Obsidian vault path. Validate that:
If the path is valid, add it to `~/.claude/settings.json` under the `env` block:
{
"env": {
"VAULT_PATH": "/absolute/path/to/vault"
}
}Read the file first, merge with existing env vars (don't overwrite other settings), and write back. Verify the MCP server can connect after setting it.
Ask if they want semantic search features (vault_semantic_search, vault_suggest_links). If yes:
{
"env": {
"VAULT_PATH": "/path/to/vault",
"VAULT_PKM_OPENAI_KEY": "sk-your-key-here"
}
}Ask the user if they want to auto-approve all PKM vault tools (so they don't get prompted for each tool call). If yes, add this to the `permissions.allow` array in `~/.claude/settings.json`:
mcp__plugin_vault-pkm_vault-pkm__*
Read the file first, merge with existing permissions (don't overwrite), and write back. This allows all vault_read, vault_write, vault_search, etc. tools to run without per-call confirmation.
Check if the vault has templates: 1. Check if templates exist: `ls "$VAULT_PATH/05-Templates/" 2>/dev/null` 2. If missing, tell the user to run `npx obsidian-pkm init` in their terminal to scaffold the vault with templates and PARA folder structure. This is a separate interactive tool that handles vault scaffolding.
Ask the user to verify by requesting a vault operation. For example, tell them to ask Claude: "List the folders in my vault." This calls `vault_list`, which exercises the full MCP server connection and vault path configuration.
Check if the old `pkm-mcp-server` is installed: 1. Run `npm list -g pkm-mcp-server --depth=0 2>/dev/null` 2. Check for stale hooks: `ls ~/.claude/hooks/pkm/ 2>/dev/null`
If found:
> **IMPORTANT:** Restart Claude Code now (`/quit` then relaunch) before using any vault tools. The MCP server needs to restart to pick up the new environment variables.
Confirm setup is complete. Tell the user:
Give Claude persistent, structured memory across conversations using your Obsidian vault. Read, write, search, and navigate your knowledge base — all from within Claude Code.
Repo: AdrianV101/obsidian-pkm-plugin
Configure this project for Obsidian PKM — connects the repo to a vault project folder and writes CLAUDE.md integration directives