/obsidian-brain:vault-configfrom obsidian-brain
Interactive configuration menu for obsidian-brain settings. Use when: (1) /vault-config to view and change settings, (2) user wants to toggle log_raw_messages, (3) user wants to adjust session filtering thresholds.
Ships in obsidian-brain. 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.
Interactive menu for viewing and changing obsidian-brain configuration, one setting at a time.
Tools needed: Bash, Read, Write
Run this as a command of its own:
git rev-parse --show-toplevel
If it fails (not a git repo), run pwd instead. Keep the printed path; the steps below call it <REPO_ROOT>. Paste that literal path wherever a block below names '<REPO_ROOT>', in single quotes (write a ' inside it as '\''). Do not put git inside $(...): a worktree-isolated session refuses any command substitution whose text contains git (#521).
Run:
cd '<REPO_ROOT>'
python3 -c '
import sys, os, json
import glob, json, os, re, sys
def _ob_hooks():
try:
for _m in json.load(open(os.path.expanduser("~/.claude/plugins/known_marketplaces.json"))).values():
_s = _m.get("source") if isinstance(_m, dict) else None
if not (isinstance(_s, dict) and _s.get("source") == "directory"):
continue
_i = _m.get("installLocation") if isinstance(_m, dict) else None
if not (isinstance(_i, str) and os.path.isabs(_i)):
continue
_h = os.path.join(_i, "hooks")
if os.path.isfile(os.path.join(_h, "obsidian_utils.py")):
return _h
except Exception:
pass
_c = [_d for _d in glob.glob(os.path.expanduser("~/.claude/plugins/cache/*/obsidian-brain/*/hooks")) if re.fullmatch("[0-9]+([.][0-9]+)*", _d.split("/")[-2])]
return max(_c, key=lambda _p: ([int(_n) for _n in _p.split("/")[-2].split(".")], _p), default="hooks")
sys.path.insert(0, _ob_hooks())
from obsidian_utils import load_config
c = load_config()
if not c.get("vault_path"):
print("ERROR: not configured", file=sys.stderr)
sys.exit(1)
print(json.dumps(c, indent=2))
'
Parse the JSON output into a config dict.
If error, tell the user to run /obsidian-setup first. Stop.
Present the current settings as a numbered table:
Obsidian Brain Configuration
1. vault_path <value>
2. sessions_folder <value>
3. insights_folder <value>
4. wiki_folder <value> <- wiki pages from /vault-ask (#383; empty = off)
5. log_raw_messages <value> <- controls raw conversation logging
6. min_turns <value> <- minimum turns to log a session
7. min_duration_minutes <value> <- minimum duration to log
8. snapshot_on_compact <value> <- checkpoint note on /compact
9. snapshot_on_clear <value> <- checkpoint note on /clear
10. lessons_enabled <value> <- retro lesson rollup (#471)
11. lessons_recent_days <value> <- window for ranking lessons by recent sessions
12. lessons_concurrency <value> <- parallel Haiku calls during a lesson update
13. project_repos <value> <- project name -> GitHub owner/repo, for issue tracking
Enter a number to change, or 'done' to exit.
For any key not present in the config, show its default value: wiki_folder defaults to claude-wiki, log_raw_messages defaults to true, min_turns defaults to 3, min_duration_minutes defaults to 2, snapshot_on_compact defaults to true, snapshot_on_clear defaults to true, lessons_enabled defaults to true, lessons_recent_days defaults to 90, lessons_concurrency defaults to 8, project_repos defaults to {} (show each entry as project -> owner/repo, or (none)). lessons_enabled is read by the /retro lesson update, the /standup offer and /lessons (#474, #475), and project_repos by lesson-to-issue matching (#473). Issue traces already name their repo (owner/repo#N).
When rendering rows 8 or 9, if the value is False, append this warning inline on the same row:
⚠ Disables pre-clear/compact checkpoint. Recommended: True.
The warning only fires when the value is explicitly False — don't show it for the default true.
Wait for user input.
done or empty → Stop. Print "Configuration unchanged."Boolean settings (log_raw_messages, snapshot_on_compact, snapshot_on_clear, lessons_enabled): Toggle the value (true→false, false→true). If the user is about to set snapshot_on_compact or snapshot_on_clear to False, warn first:
⚠ Disabling this removes the pre-compact/clear checkpoint safety net. You will lose in-flight context on accidental
/clear. Proceed? (y/N)
Only toggle after explicit confirmation.
String settings (vault_path, sessions_folder, insights_folder, wiki_folder): Show current value, ask for new value.
Number settings (min_turns, min_duration_minutes, lessons_recent_days, lessons_concurrency): Show current value, ask for new value. Validate it's a positive integer. lessons_concurrency must be 1 to 16.
Map setting (project_repos): show each project -> owner/repo entry and ask whether to add, edit or remove one. The project name is the one the session notes use (project: in their frontmatter): the main repo's name, also inside a git worktree; the repo must match ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$. Build the whole new map, write it as JSON with the Write tool to ~/.claude/obsidian-brain/config-value-<8 random hex>.json (run mkdir -m 700 -p ~/.claude/obsidian-brain first), and pass - as $JSON_VALUE with that file on stdin in Step 5. Delete the file afterwards. Never put the map in a shell argument.
Run:
python3 -c '
import sys, os, json
config_path = os.path.expanduser("~/.claude/obsidian-brain-config.json")
with open(config_path, "r") as f:
config = json.load(f)
config[sys.argv[1]] = json.load(sys.stdin) if sys.argv[2] == "-" else json.loads(sys.argv[2])
import tempfile
fd, tmp = tempfile.mkstemp(dir=os.path.dirname(config_path), suffix=".tmp")
with os.fdopen(fd, "w") as f:
json.dump(config, f, indent=2)
f.write("\n")
os.chmod(tmp, 0o600)
os.rename(tmp, config_path)
print("OK")
' "$KEY" "$JSON_VALUE"
Where $KEY is the setting name and $JSON_VALUE is the new value as a JSON literal (e.g., "false", "3", '"/path/to/vault"').
If the changed key is sessions_folder, insights_folder or wiki_folder: the search index still holds the old folders' notes, so tell the user to run /vault-reindex, which re-indexes the new folders. For wiki_folder, first check the value: it must be a relative folder name with no .., ~ or dot-prefixed segment (an empty value turns the wiki folder off). /vault-reindex refuses an invalid value and names it.
Confirm the change, then go back to Step 1 to re-read the config, and redisplay the table (Step 2) from that fresh output. Do not redisplay from the dict you parsed before the write: Step 2's ⚠ rows key on the new value (#59).
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/check-itemsTriage open `- [ ]` items across your Obsidian vault with evidence-grounded AI classification. Auto-closes items shipped by merged PRs, surfaces items needing external action (e.g. `gh issue close`), hides stale items by default. Replaces the old token-overlap heuristic with a two-pass AI pipeline backed by a persistence cache. Use when: (1) sweeping a project for done work, (2) auditing what's still actionable, (3) recovering from /recall deferral fatigue./compressInteractively saves curated insights from the current Claude Code session to the Obsidian vault. Use when: (1) /compress command to save session insights, (2) /compress <topic> to extract a specific topic, (3) user wants to capture decisions, patterns, solutions, or error fixes from the current session./Other plugins' skills for the same job
npx claudepluginhub abhattacherjee/obsidian-brain --plugin obsidian-brain