From vault-sync
Set up a shared knowledge vault (global or per-project) - clone repo, create config, configure MCP server, verify connection
How this skill is triggered — by the user, by Claude, or both
Slash command
/vault-sync:setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are guiding the developer through a one-time setup of their shared knowledge vault. Follow these steps in order.
You are guiding the developer through a one-time setup of their shared knowledge vault. Follow these steps in order.
Check the arguments passed to this skill:
--project is present → follow the Per-Project Setup flow belowAsk the developer for the following, one at a time:
~/.lore/vaults/<current-repo-name>/.Confirm all values before proceeding.
If a remote URL was provided:
git clone <remote-url> <vault-path>
If local-only:
mkdir -p <vault-path> && cd <vault-path> && git init
.lore/config.jsonWrite .lore/config.json in the current project root:
{
"vault_path": "<vault-path>",
"vault_remote": "<remote-url-or-omit>",
"author": "<author>"
}
Ask: "Configure project-scoped MCP for Claude Code, Cursor, both, or neither? (If you have a global vault-mcp registration, 'neither' is fine — dynamic resolution will handle it.)"
If Claude Code: create/update .mcp.json with vault-mcp pointing to the project vault.
If Cursor: create/update .cursor/mcp.json similarly.
If both: create both files.
Ask: "Should .lore/ be gitignored? (Yes for solo projects, No for team repos where everyone shares the vault pointer.)"
If yes, add .lore/ to .gitignore.
Run vault-query to confirm the vault is accessible, then print:
Per-project vault configured:
Vault: <vault-path>
Config: .lore/config.json
Available commands:
/vault-note Create a new note
/promote-to-vault Promote notes after branch merge
/vault-cleanup Discard notes from abandoned branches
Ask the developer for the following, one at a time. Accept defaults where provided:
[email protected]:org/team-vault.git). Required, no default.~/obsidian/team-vault. Accept the default if the user presses Enter or says "default".author field in note frontmatter. Required.Confirm all three values with the user before proceeding.
Run the following bash command to clone the vault repo to the specified local path:
git clone <vault-repo-url> <local-path>
If the directory already exists, run git -C <local-path> pull instead and inform the user the vault was already cloned.
If the clone fails, report the error output verbatim and stop — do not continue to later steps.
Call the vault-init MCP tool with:
vault_path: the resolved absolute path to the cloned vault (expand ~ if needed)author: the GitHub username provided in Step 1If vault-init returns an error, show the error and stop.
Ask: "Would you like to install the smart-connections MCP server for semantic search across the vault? (y/n)"
If yes, run:
pip install smart-connections-mcp
Inform the user they may need to restart Claude Code for the MCP server to be picked up.
Call vault-query with no filters to confirm the MCP connection is working. If it returns successfully (even with zero notes), print:
Setup complete. Vault is connected and ready.
If it returns an error, print the error and suggest checking the vault_path and that the MCP server process is running.
Print a summary of available commands now that setup is complete:
Available vault commands:
/vault-note Create a new note capturing a discovery or decision
/promote-to-vault Review and promote exploratory notes after a branch merges
/vault-cleanup Find and discard notes from abandoned branches
Remind the user: notes created during feature branch work are marked status: exploratory and are promoted to established after the branch merges and is reviewed with /promote-to-vault.
npx claudepluginhub mahuebel/lore --plugin vault-syncInitializes any folder as a Bedrock-powered Obsidian vault by creating entity directories, copying templates, configuring language/domain taxonomy, scaffolding example entities, and checking dependencies. Use for 'bedrock setup' or new vault bootstrapping.
Scaffolds an agent-ready Obsidian Zettelkasten vault with directories, templates, CLAUDE.md, MCP config, and git init.
Initializes TwinMind vault in current directory: creates TwinMind.md config, vault dirs (System, Cards, PARA, Sources, Atlas), initial files from templates. Checks existing setups; for new knowledge vaults.