save-to-obsidian

save-to-obsidian is a command for Claude Code from sjungling/sjungling-claude-plugins. It costs 16 tokens per session (1,687 once invoked), scanned A, original, MIT.

A command that saves the current specification, plan, or session summary as a design note in an Obsidian vault. Obsidian is a note-taking app that stores linked Markdown notes.

In plain words
What is it for?
Use it to preserve project decisions, plans, or session summaries as organized Obsidian notes.
Why use it?
It avoids manually gathering the useful parts of a session and handles the different way iCloud-based vaults must be written. It can also accept a vault or topic name.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the technical-writer plugin — 3 skills, 3 commands, 3 agents shipped together

Good fit Use it to preserve project decisions, plans, or session summaries as organized Obsidian notes.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sjungling/sjungling-claude-plugins
Claude Code
/plugin install technical-writer

Made for: Claude Code.

Or install technical-writer, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for save-to-obsidian

README.md
[![agentmods](https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/save-to-obsidian/github.svg)](https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/save-to-obsidian)
Your own site
<a href="https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/save-to-obsidian"><img src="https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/save-to-obsidian/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for save-to-obsidian

Your own site · 80×15
<a href="https://agentmods.dev/commands/sjungling/sjungling-claude-plugins/save-to-obsidian"><img src="https://agentmods.dev/badge/commands/sjungling/sjungling-claude-plugins/save-to-obsidian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.01687
Opus 5 $0.00008 $0.00843
Sonnet 5 $0.00003 $0.00337
Haiku 4.5 $0.00002 $0.00169

Measured 11d ago against content hash 4aa0fa0230d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

save-to-obsidian scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/technical-writer/commands/save-to-obsidian.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Save the best available content from the current session into an Obsidian vault as a design note.

Parse $1 as an optional vault override and $2 as an optional topic override (both optional — see resolution rules below). $1/$2 are name/topic strings, not file paths — this command never takes an explicit source file; content is always auto-discovered from the session.

Vaults on iCloud storage cannot be written with the Write tool~/Library/Mobile Documents/iCloud~md~obsidian/Documents/<vault> is TCC-protected; only the Obsidian app (via the obsidian CLI) can touch it, even with the sandbox disabled. Step 5 below always writes through the CLI — never write directly to a resolved vault path with the Write tool, even for a small note. (Write is only used in this command to stage the note in a scratch temp file before handing it to the CLI script.)

Step 1: Discover content

Run the discovery script, resolved relative to the plugin root:

DISCOVERY=$(bash "${CLAUDE_PLUGIN_ROOT}/scripts/discover-spec-content.sh" 2>&1)

If it exits non-zero, check stderr for {"error": "..."} and report the error (jq not installed, not in a git repository).

Parse the JSON output:

SOURCE=$(echo "$DISCOVERY" | jq -r '.source')
PRIMARY=$(echo "$DISCOVERY" | jq -r '.primary')
SECONDARY=$(echo "$DISCOVERY" | jq -r '.secondary')
SPECS=$(echo "$DISCOVERY" | jq -r '.candidates.specs[]' 2>/dev/null)
PLANS=$(echo "$DISCOVERY" | jq -r '.candidates.plans[]' 2>/dev/null)

superpowers

If PRIMARY is non-empty, read it as $BODY.

If PRIMARY is empty, multiple candidates need disambiguation — use AskUserQuestion with the SPECS/PLANS candidates to pick the file. Read the chosen file as $BODY.

If SECONDARY is non-empty (a related plan), you may append a short "Implementation plan: <path>" reference line to the note rather than inlining the whole plan.

claude-plan

PRIMARY already points to the plan file. Read it as $BODY.

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 117 lines · 0 tokens per session scan A 4aa0fa0230d1

Subscribe to this mod's changes

save-to-obsidian is a command published in the GitHub repository sjungling/sjungling-claude-plugins (13 stars, last pushed 28d ago), licensed MIT. It adds 16 tokens to every session and 1,687 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.