vaultlisted
Install: claude install-skill magnusrodseth/dotfiles
# Vault Knowledge Capture
Extract valuable insights from conversations and store them in the user's Obsidian vault.
Can be invoked from ANY project on the machine.
## Configuration
Resolve the vault location first, then use `$VAULT` everywhere below:
```bash
if [ -d "$HOME/dev/personal/vault" ]; then
VAULT="$HOME/dev/personal/vault" # local machine (any cwd)
else
VAULT="${CLAUDE_PROJECT_DIR:-$PWD}" # cloud session: the repo IS the vault
fi
```
Expand `$HOME` to the user's actual home directory. The fallback matters in Claude Code cloud/web sessions, where the vault is cloned to a sandbox path and `$HOME/dev/personal/vault` does not exist. On a local machine the first branch always wins, so behaviour there is unchanged.
## Workflow
1. Read `$VAULT/CLAUDE.md` for current vault rules
2. Analyze conversation for knowledge to capture
3. Classify content type: learning | how-to-guide | brag | decision | note | resource | person | project | meeting
4. Read relevant template from `$VAULT/Templates/{Type}.md`
5. Search vault for existing related notes to link to (glob/grep `$VAULT`)
6. Write note to `$VAULT/{folder}/{Note Name}.md`
## Content Type to Folder
| Type | Path |
|------|------|
| learning | `$VAULT/Learning/` |
| how-to-guide | `$VAULT/Reference/` |
| brag | `$VAULT/Personal/` |
| decision | `$VAULT/Personal/` |
| note | `$VAULT/Notes/` |
| resource | `$VAULT/Reference/` |
| person | `$VAULT/Personal/People/` |
| project | `$VAULT/Projects/`