Use when user asks to save, export, or store session content (analysis results, benchmarks, specs, designs) to their Obsidian vault. Triggers on "저장해줘", "vault에 넣어줘", "정리해서 저장", "save this", "export to vault", "/save-doc".
Save session content to the Obsidian vault workspace as structured markdown.
Determine what to save from the current session:
If unclear, ask: "어떤 내용을 저장할까요?"
Base directory: $DOCS_DIR/
Load env and scan existing structure:
. ~/.claude/env && find "$DOCS_DIR/" -maxdepth 4 -type d 2>/dev/null
Also scan existing files in the likely target folder to match their style:
. ~/.claude/env && ls "$DOCS_DIR/TARGET_FOLDER/" 2>/dev/null
Path inference — scan existing structure, don't hardcode:
mkdir -p)Filename: YYYY-MM-DD-short-descriptive-title.md (lowercase, hyphens)
ALWAYS confirm before saving. Never save without explicit approval.
Present to user:
저장 경로: workspace/cochl/security/benchmark/2026-03-20-onnx-vs-trt-cosine.md
내용: ONNX vs TRT-FP16 cosine similarity 비교 결과 (120 파일, 114-dim)
이대로 저장할까요?
Wait for user confirmation. If user says different path, use that.
Follow the existing document pattern:
# Title
**Date:** YYYY-MM-DD
**Key metadata fields relevant to content**
## Section headers matching content structure
Content organized with tables, code blocks as appropriate
Formatting rules:
Resolve the full path first, then save with the Write tool:
. ~/.claude/env && mkdir -p "$DOCS_DIR/PARENT_DIR" && echo "$DOCS_DIR/PATH"
Then use the Write tool to create the file at the resolved absolute path.
After saving, report:
저장 완료: workspace/cochl/security/benchmark/2026-03-20-onnx-vs-trt-cosine.md