/save-conversation-to-obsidian:save-conversation-to-obsidianfrom Save Conversation to Obsidian
Saves a structured summary of the current AI conversation as a Markdown note in the user's Obsidian vault. Supports multiple sync backends and fallback to downloadable/copyable Markdown.
Ships in Save Conversation to Obsidian. 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.
Read when SKILL.md points to them.
Use this skill when the user asks to save, log, archive or summarize "this conversation / chat / session" into Obsidian or their vault, for example "save this to Obsidian", "put a summary of this chat in my vault", "/save-conversation-to-obsidian".
This skill is model-agnostic. Claude, ChatGPT, Gemini, a coding agent or any other assistant may run it. Tool names below are examples; use whatever file, shell, connector and search tools your environment actually has.
The job has two parts that must never block each other:
The skill ships without any personal settings. Look for the user's configuration in this order and use the first complete one:
obsidian-conversation-config.save-conversation-config.md in the vault root (readable only on routes with vault access, see Step 1).If a configuration is found, use it silently. Don't re-ask anything it answers. If a single value you need is missing, ask only for that value.
If no configuration exists, run the first-run setup below before doing anything else, then continue with Step 1 in the same turn.
Tell the user in one or two sentences what the skill does and that a few one-time questions follow (about two minutes). Then ask in at most three rounds. Group questions, offer sensible defaults, and use multiple-choice question widgets if your interface has them. Infer what you can (timezone, language, device) and ask the user only to confirm.
Round 1: vault and sync (required)
C:\Users\me\Obsidian\MyVault or ~/Documents/MyVault. On Android the path is often /storage/emulated/0/Documents/<Vault>; on iOS it's usually in iCloud Drive › Obsidian. "I don't know" is an acceptable answer for mobile./Obsidian/MyVault).Round 2: where notes go
Conversations/ in the vault root. Offer to change it.Projects/<Name>/), ask for that parent folder and the name of the subfolder for conversations (default Conversations). Notes from a chat that belongs to a project (Claude Project, ChatGPT Project, Gemini Gem, a repo) then go to <projects parent>/<Project>/<subfolder>/. Everything else goes to the default folder.Round 3: optional features (offer the defaults in one question)
Write route. Check which routes from Step 1 work right now and tell the user in plain words which one will be used. If the user works on a phone and no route better than download is available, explain the Make option once (see Step 1, route C):
"On phones, AI apps can't write into your vault folder directly. If your vault syncs through OneDrive, Google Drive or Dropbox, a free Make.com account plus the Make connector in this app lets me save notes straight into it. Want me to walk you through the setup (about 15 minutes)? Otherwise I'll give you a download or copyable Markdown each time."
If they say yes, read references/make-setup.md and guide them step by step with it. If they decline, record make.declined: true and don't offer again.
Save the configuration. Show the finished YAML (every field is explained in references/config-schema.md) and store it everywhere that is available, telling the user where:
obsidian-conversation-config, if the assistant has memory and the user agrees. Keep it compact.save-conversation-config.md in the vault root, if a write route works (put the YAML inside a fenced yaml block).Never store passwords, tokens or API keys. The configuration holds only names, paths and switches; Make connections authenticate through their own login.
Use the first route that works. Don't retry a route that failed more than once; move on and tell the user which route was used in the end.
flowchart TD
S["Note ready"] --> A{"Local file access<br>to the vault?"}
A -->|yes| RA["A: write file directly"]
A -->|no| B{"Linked computer<br>with the vault?"}
B -->|yes| RB["B: write on that computer"]
B -->|no| C{"Make scenario or verified<br>storage connector?"}
C -->|yes| RC["C: write into cloud drive"]
C -->|no| D{"Can offer a<br>file download?"}
D -->|yes| RD["D: .md download"]
D -->|no| RE["E: copyable Markdown"]
A. Local file access. The assistant runs on the device that holds the vault and can read and write files there: coding agents (Claude Code, Codex CLI, Gemini CLI and similar), desktop apps with folder access, an agent running in Termux on Android. Write under that device's vault_roots entry.
B. Linked computer. The assistant runs elsewhere but has a bridge to a computer that holds the vault, for example a Claude session linked to the desktop app, or a filesystem MCP server. Find the vault on that computer (a connected folder or vault_roots), write there, and let the vault's sync carry the note to the other devices. If the computer can't be reached (asleep, app closed), move on to route C.
C. Cloud drive. For vaults synced through OneDrive, Google Drive or Dropbox. Write into sync.cloud_path, and the drive's sync delivers the note to every device.
make.enabled is true and a Make tool is available, call the scenario named in make.scenario. If you can't see it, look through the available tools or Make's scenario list for "obsidian", "vault" or "api shell". Two interface variants exist, listed in make.variant:
vault-bridge (inputs action, folder, filename, content; outputs status, name, items, message):
action: "list", folder: "<vault-relative folder>". The result is folder names in items.action: "write", folder, filename, content. status is ok (with the created name), exists (pick the next free name, see Step 5, and retry) or error (read message).sync.cloud_path itself.onedrive-api-shell (inputs path, method, header, qs, body; output data; forwards Microsoft Graph calls):
GET /v1.0/me/drive/root:<cloud_path>/<folder>:/children with qs $select=name,folder.PUT /v1.0/me/drive/root:<cloud_path>/<folder>/<filename>:/content, header Content-Type: text/markdown; charset=utf-8, qs @microsoft.graph.conflictBehavior=fail, body = the note text. A 409 conflict means the name is taken.%20. Pass the filename with normal spaces. Always check the returned item name. If it contains a literal %20, rename it right away: PATCH /v1.0/me/drive/items/<id> with body {"name":"<correct name>"}. If Graph reports an empty JSON payload, pass the PATCH body as a JSON string instead of an object.sync.connector_verified: true). It must create a plain .md file with the exact name in the exact folder, not a converted Google Doc or Word file. Check the result after writing.references/make-setup.md; read it only when setting up or debugging a scenario.make.enabled is true, tell the user the Make connector isn't enabled in this chat, then continue with route D.D. Download. If the assistant can hand the user a file, create <filename>.md with the full note and give the exact target path for the user's current device, e.g. /storage/emulated/0/Documents/MyVault/Conversations/2026-09-27 Topic.md. Skip live checks this route can't do (folder listing, tag search, vault links) and say so. Use folders.known_projects for routing.
E. Copyable Markdown (always works). Output the whole note in one fenced block that opens with four backticks plus markdown and closes with four backticks, so the three-backtick code fences inside the note survive. Above it, name the target folder and filename. On a phone, add one line: "Copy the block, create a new note with this name in Obsidian, paste."
After a download or copy (D or E), and if a better route could be set up but make.declined isn't true, mention the Make option in one sentence, at most once per conversation.
folders.projects_root is empty, use folders.default and go to Step 3.folders.default.folders.projects_root, live if the route allows it (A, B, or C with a list action). Otherwise use folders.known_projects. If a live listing differs from known_projects, update the stored configuration where you can and mention it.SketchAlchemy.<projects_root>/<Folder>/<folders.project_subfolder>/; otherwise → folders.default. Create missing folders if the route allows it.-conversation:
claude-conversationchatgpt-conversationgemini-conversationcopilot-conversation; Mistral Le Chat → mistral-conversation; Perplexity → perplexity-conversation; DeepSeek → deepseek-conversation<product>-conversationclaude-opus-5-5, gpt-5). If unsure, write unknown; don't guess.Use the current local time in timezone (or the user's timezone from context). Use a clock tool if one exists.
My Project → my-project).grep -rliE "(#<tag>\b|^\s*-\s*<tag>\s*$|tags:.*\b<tag>\b)" --include="*.md" "<vault>" | head -3
Use the spelling found in the vault. Without that kind of access, leave the project tag out.note.extra_tags.https://github.com/<owner>/<repo>/commit/<sha> (GitLab: /-/commit/). Unpushed commits get no link and the status local.note.usage is on)/cost command, a usage panel, API usage data).pricing.cache in the configuration (or the assistant's memory) holds the model's prices with a checked date less than pricing.max_age_days (default 7) days old, use them and cite the page with that date.pricing.cache where the configuration lives (memory or the config note), so the next notes can reuse them.unknown only after an actual fetch attempt failed, and say in the note which attempt failed.Summarize the whole conversation, not just the last turns, in the language most of it was held in. Be concrete: files, tools, numbers, decisions. Leave out chit-chat and dead ends, unless a dead end is worth remembering ("tried X, failed because Y").
# H1 (the topic). Main sections are ##, subsections ### (#### only if really needed). Don't skip levels.[[...]]) only to notes confirmed to exist. Never invent links or URLs.note.diagrams is on)Where a picture explains something better than prose, add a Mermaid diagram next to the text it illustrates. The text must still carry the essential information on its own.
| Content | Diagram type |
|---|---|
| Workflow, pipeline, process steps | flowchart LR / flowchart TD |
| Decision tree, routing rules, if/else logic | flowchart TD with {decision} diamonds and labelled edges |
| Structure, components, folder or dependency relations | flowchart with subgraphs, classDiagram or erDiagram |
| Interaction between systems over time | sequenceDiagram |
| States and transitions | stateDiagram-v2 |
| Schedule or phases | gantt or timeline |
Skip diagrams for trivial or two-step content. Usually 0–3 per note, each at most ~15 nodes.
Rendering rules for Obsidian:
mermaid block.architecture-beta) may not render.A["Download (.md)"]. Use <br> for line breaks.end as an ID.%%{init}%% theme overrides.subgraph has an end.---
title: <Topic>
date: YYYY-MM-DDTHH:mm
type: conversation-summary
assistant: <Claude | ChatGPT | Gemini | ...>
model: <model id or unknown>
source-project: <project/workspace name, or "none">
tokens-estimate: <e.g. ~180k> # only if note.usage
cost-estimate: <e.g. ~$2.40 (API-equivalent) | unknown> # only if note.usage
tags:
- <assistant>-conversation
- <project tag, only if it exists in the vault>
- <0-2 topical tags, lowercase-kebab>
---
# <Topic>
## Summary
<One paragraph (4-8 sentences): the goal, what was done, how it ended, and what is still open.>
## Key decisions
- **<Decision>** — <short reason>
## Action items
- [ ] <next step>
## Workflow
<One or two sentences, plus a diagram if it helps.>
## Commands
### <Purpose>
```bash
<command>
```
## Code & configuration
### <What it is>
```<language>
<snippet that was the actual result>
```
## Files
### Created
- `<path>` — <what it is>
### Modified
- `<path>` — <what changed>
## Commits
| Commit | Message | Repo / branch | Status |
| --- | --- | --- | --- |
| [`abc1234`](https://github.com/owner/repo/commit/<sha>) | <subject> | owner/repo · main | pushed |
## Links
### Vault notes
- [[<existing note>]] — <why relevant>
### External
- [<Title>](<url>) — <why relevant>
## Session usage
| Metric | Value |
| --- | --- |
| Model | <model> |
| Input tokens (est.) | <~n> |
| Output tokens (est.) | <~n> |
| Cost (est.) | <~$n, API-equivalent / unknown> |
| Basis | <usage report or chars÷4 heuristic; pricing source and date> |
YYYY-MM-DD <Topic>.md (topic of 3–6 words, title case) unless note.filename says otherwise. Remove characters that Windows, macOS, Android or Obsidian reject: \ / : * ? " < > | # ^ [ ]. 2, 3, and so on.EOF):
mkdir -p "<vault>/<dest>" && cat > "<vault>/<dest>/<file>.md" <<'EOF'
...note...
EOF
Reply in one or two lines: the vault-relative path, the route used (local, linked computer, Make/cloud drive, download or copy), whether it went to a project folder or the default folder, and the usage estimate if enabled. If it landed in the default folder because no project matched, add that the user can move it or name the project next time.
Fill in the values, or let the assistant fill them in during first-run setup. Empty values mean "not set". Every field is explained in references/config-schema.md.
obsidian-conversation-config:
vault_name: ""
timezone: ""
vault_roots:
windows: ""
macos: ""
linux: ""
android: ""
ios: ""
sync:
method: "" # onedrive | google-drive | dropbox | icloud | obsidian-sync | syncthing | git | none
cloud_path: ""
connector_verified: false
make:
enabled: false
declined: false
scenario: ""
variant: "" # vault-bridge | onedrive-api-shell
folders:
default: "Conversations"
projects_root: ""
project_subfolder: "Conversations"
known_projects: []
pricing:
max_age_days: 7 # reuse looked-up prices for this many days
cache: {} # filled in by the assistant: prices per model with the date checked
note:
filename: "YYYY-MM-DD {Topic}.md"
usage: true
diagrams: true
extra_tags: []
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub friendship7/save-conversation-to-obsidian --plugin save-conversation-to-obsidianOther plugins' skills for the same job