From oh-my-obsidian
Saves Claude Code session context to Obsidian vault as structured Markdown notes in categories like session-log, decision, troubleshooting. Extracts summary, decisions, file changes, next steps, links related docs via grep, and git commits.
npx claudepluginhub hongdangmoo49/oh-my-obsidian --plugin oh-my-obsidianThis skill is limited to using the following tools:
Activate when the user explicitly asks to save, record, or document the current session's work.
Saves conversations, answers, or insights as structured notes in Obsidian wiki vault. Analyzes content for note type (synthesis, concept, etc.), creates frontmatter, files in folder, updates index, log, and hot cache.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Activate when the user explicitly asks to save, record, or document the current session's work. Also activate when the stop hook prompts and the user agrees to save.
Check Environment
Verify $OBSIDIAN_VAULT is set. If not, inform user and suggest /oh-my-obsidian:setup.
Analyze Session Review the conversation and extract:
Auto-Categorize
Determine the best category and derive the type field:
type: session-log: General work logs, coding sessionstype: decision: Architectural choices, design decisionstype: troubleshooting: Bug fixes, error resolutiontype: meeting-notes: Meeting summaries (if multiple participants mentioned)Discover Related Documents 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"
Generate Document
Create at: $OBSIDIAN_VAULT/작업기록/{세션기록|의사결정|트러블슈팅}/YYYY-MM-DD_{slug}.md
Template:
---
date: YYYY-MM-DDTHH:mm
topic: {inferred topic}
category: {auto-detected category}
type: {session-log|decision|troubleshooting|meeting-notes}
services: [{affected services}]
related_docs: [{auto-discovered wikilinks}]
status: done
tags: [auto-generated tags]
---
# {topic}
## 요약
{1-2 sentence summary}
## 상세 내용
{detailed notes from session}
## 주요 결정
- {decision 1}
- {decision 2}
## 변경된 파일
- `{file path}` — {what changed}
## 다음 단계
- [ ] {action item}
## 관련 문서
- [[{discovered-doc}]] -- (auto-discovered)
Git Commit
cd "$OBSIDIAN_VAULT"
git add "{category}/YYYY-MM-DD_{slug}.md"
git commit -m "docs: {category} — {topic}"
Confirm Print: "✅ 저장 완료: {category}/{filename}" If the user said "session-save skip", exit silently without saving.
Helper command with structural relationship flags:
node scripts/vault-ops.mjs session-save \
--topic "<topic>" \
--detail "<summary>" \
--category "세션기록" \
--type "session-log" \
--service "<service>" \
--related-doc "<vault-relative-path>"