/oh-my-obsidian:session-save [topic]from oh-my-obsidian
Saves the current Claude Code session summary to an Obsidian vault with auto-detected topic, category, and related documents. Also supports git commit.
Ships in oh-my-obsidian. Installing the plugin adds it to Claude Code.
echo "${OBSIDIAN_VAULT:-not set}"date +%Y-%m-%dgit branch --show-current 2>/dev/null || echo "N/A"Save the current session's work summary to the Obsidian vault.
If this command is used for an automatic hook request, follow the Automatic mode
contract in skills/session-save/SKILL.md: call the shared helper with supplied
session/turn ids, retain prior records, and never manually Write or commit.
The manual steps below apply only to an explicit user-requested standalone save.
If user provided a topic via {{ARGUMENTS}}, use it. Otherwise infer from the conversation context.
Create a markdown document with:
Before writing the note, search the vault for related documents using grep/glob. Add any found documents as wikilinks in the 관련 문서 section.
grep -ril "keyword1\|keyword2" "$OBSIDIAN_VAULT" --include="*.md"
Write records, including troubleshooting, to:
$OBSIDIAN_VAULT/작업기록/{세션기록|의사결정|트러블슈팅|회의록}/YYYY-MM/YYYY-MM-DD/{topic-slug}.md
Template:
---
date: YYYY-MM-DD HH:mm
topic: {topic}
category: 작업기록
type: {session-log|decision|troubleshooting|meeting-notes}
services: [{affected services}]
related_docs: [{auto-discovered wikilinks}]
status: done
participants: Claude + User
---
# {topic}
## 요약
{session summary}
## 주요 결정
- {decision 1}
- {decision 2}
## 다음 단계
- [ ] {action item 1}
- [ ] {action item 2}
## 관련 문서
- [[{discovered-doc}]] -- (auto-discovered)
## 관련 파일
- {file paths}
Helper command with structural relationship flags:
node "${CLAUDE_PLUGIN_ROOT}/plugins/oh-my-obsidian/scripts/vault-ops.mjs" session-save \
--topic "<topic>" \
--detail "<summary>" \
--category "세션기록" \
--type "session-log" \
--service "<service>" \
--related-doc "<vault-relative-path>"
If vault is a git repo:
cd "$OBSIDIAN_VAULT"
git add "{created relative path}"
git commit -m "작업기록: {topic}"
Print: "✅ 작업기록 저장 완료: 작업기록/{filename}"
What the command file sets; muted values are Claude Code's defaults
obsidian, session-logging, note-taking, knowledge-management
7-day visitors to each command page
npx claudepluginhub hongdangmoo49/oh-my-obsidian --plugin oh-my-obsidian8 commands in this plugin
Other plugins' commands for the same job