/notes:createfrom notes
Saves content as a Markdown note into an Obsidian vault. Handles frontmatter, folder placement, filename sanitization, collision avoidance, and entity linking based on vault conventions.
Ships in notes. 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.
None: SKILL.md is the whole skill.
Write a Markdown note into the Obsidian vault Claude Code is running in. This skill owns vault conventions — callers supply content, not layout.
$ARGUMENTS:
--title (required) — note title, also the filename--content (required) — Markdown body--folder (optional) — subfolder within the vault; defaults to the vault root--frontmatter (optional) — JSON object of extra frontmatter fieldsWalk up from the current working directory looking for a .obsidian/ directory. The first ancestor containing one is the vault root.
d="$PWD"
while [ "$d" != "/" ]; do
[ -d "$d/.obsidian" ] && { echo "$d"; break; }
d="$(dirname "$d")"
done
If no .obsidian/ is found, stop and say so — do not guess a path and do not write outside a vault. Ask the user to run from inside their vault or to name the target vault explicitly.
There is no config file. The vault is wherever the session is.
If the vault root has a CLAUDE.md, read it first and follow any conventions it states — folder layout, frontmatter fields, tagging, wikilink rules, daily-note behaviour. A vault's own documented conventions override the defaults below.
Reading it is not optional and neither is acting on it. Delegation here has silently failed before: a clipping was written correctly and its daily-note link was never added, because "follow any conventions it states" was treated as advisory. Steps 3a and 3b make the two that are almost always stated explicit.
Filename — from the title, with / \ : * ? " < > | replaced by -, and whitespace trimmed. If the file already exists, append 2, 3, … rather than overwriting.
Frontmatter — always include title and created (today, YYYY-MM-DD), then merge in anything from --frontmatter. Preserve the caller's values on conflict.
Folder — --folder if given, else the vault root. Create the folder if it does not exist.
Links in the body — if the vault documents an entity-linking rule (stock tickers as [[$AAPL]], people as [[@Name]], dates as [[YYYY-MM-DD]]), apply it to the content you were handed. The caller supplies text; converting bare mentions into the vault's link syntax is this skill's job, because this skill is the one that read the conventions.
Run these in order. Each step exists because skipping it has produced a wrong note.
1. Scan for company and organisation NAMES, not for ticker-shaped strings. Every company named in the body is a candidate for a page and a link. A note about "SpaceX" that links [[$NVDA]] because that one was already written as a symbol, while leaving the actual subject unlinked, is the failure this step prevents. Read the content for entities; do not pattern-match for $.
2. Resolve the official symbol before writing any link. A ticker is a fact to look up, never a string to construct.
# Authoritative for US listings. A descriptive User-Agent is REQUIRED — SEC returns 403 without one.
curl -sL --max-time 30 -A '<you>@<domain> research' https://www.sec.gov/files/company_tickers.json \
| python3 -c "import sys,json;[print(str(v['cik_str']).zfill(10),v['ticker'],v['title']) for v in json.load(sys.stdin).values() if '<COMPANY>' in v['title'].upper()]"
# Cross-check the symbol actually trades.
curl -s -A 'Mozilla/5.0' "https://query1.finance.yahoo.com/v8/finance/chart/<SYM>?range=1d&interval=1d"
# -> meta.instrumentType == "EQUITY", meta.longName, meta.fullExchangeName
The symbol is frequently not an abbreviation of the name. Space Exploration Technologies Corp. trades as SPCX, not SPACEX. Guessing produced a duplicate page, a wrong "private company" framing, and a note asserting that figures were unverifiable when a 10-Q had already been filed.
3. Search existing pages by name: and aliases:, NEVER by filename.
grep -ril "<company name>" Notes/Tickers/ # matches frontmatter name/aliases
# NOT: ls Notes/Tickers/ | grep '^\$SPACEX\.md' # returns nothing, looks like "no page exists"
A filename search answers "is there a page named after my guess", which is a different question from "does this company have a page". The page for SpaceX is $SPCX.md, and its frontmatter carries name: SpaceX plus aliases: ["SpaceX", "Space Exploration Technologies"] — precisely so a name search finds it.
4. Create a page only after both 2 and 3 come back empty, from the vault's ticker template. Carry the resolved symbol, and set aliases: to every name the company is called in the wild, so the next scan finds it by step 3.
5. Never invent a symbol as a placeholder. If a public company's symbol cannot be resolved, say so and leave the mention unlinked rather than minting one — an invented symbol becomes a duplicate page that later has to be found and merged. If no symbol exists because the company is private, follow the vault's private-company convention; if the vault documents none, ask rather than inventing.
6. Link every resolved entity, including in frontmatter where the vault uses a tickers: field.
1. 🔴 Never put a path inside a wikilink. Obsidian resolves [[Name]] by basename across the whole vault; a folder prefix makes it unresolvable and it fails silently, rendering as plain text rather than erroring.
✅ [[Some Clipping Title]] 🔴 [[Clippings/Some Clipping Title]]
Attachment embeds are the exception — ![[attachments/foo.jpg]] is correct, because that path is relative to the note.
Corollary: moving a note never breaks its inbound wikilinks, so the prefix buys nothing even as insurance.
2. 🔴 No parentheses in filenames. Commas, dashes and $/@ prefixes are fine; ( and ) are not. A vault with "useMarkdownLinks": true and "alwaysUpdateLinks": true rewrites links as [text](path) on any move or rename, and an unescaped ) in the path terminates the link early. Such a filename works until something moves, then breaks invisibly. Strip parentheses when sanitising the title — fold the parenthetical into the title: frontmatter instead, where it is harmless.
3. ⚠️ Verify links vault-wide, not only in the files just written. A note you never touched can hold a link to a note you just created or renamed, and the reverse — your new note's links are only half the check.
Run this on every note you write, immediately after writing it. It is not optional and it is not only for clippings.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/clip/scripts/attachments.py" "<absolute path to the note>" --obsidian
Run it outside the command sandbox: --obsidian talks to the running Obsidian app, and the sandbox blocks that.
What it does, in one pass:
| In the note | Becomes |
|---|---|
, a remote image | downloaded into <note folder>/attachments/ and re-embedded by relative path |
 or <img src="data:…"> | decoded into a file and re-embedded |
an inline <svg>…</svg> | saved as a valid .svg file and re-embedded |
| a remote embed that is not an image (a YouTube player) | left alone, listed under skipped |
Then it verifies every embed in the note, whoever wrote it: the file exists, is not empty, is not an iCloud placeholder, and (for SVG) parses. With --obsidian it also asks the app to resolve each embed, which is the only check that sees the note as the reader will.
Read the result. stdout is one JSON object; the exit code is the verdict.
local_ok) and move on.problems and failed name each one. Fix it or report the note as incomplete; never report the note as done.obsidian.status: "skipped" — the app or its CLI was not reachable. The file checks still ran; say that the Obsidian check was skipped and why. A skip is not a pass.Files are named <note-name-slug>-NN.<ext> by default; pass --prefix to match the source's naming (karpathy-2105819303471976479). Fenced code blocks are never rewritten. A second run changes nothing.
Why a script and not a checklist item: "every embedded image path should exist" was a sentence in this skill for months, and notes still shipped with base64 images inlined at 1.4 MB, raw <svg> markup, and seven SVG files that no XML parser would open. A check that depends on being remembered is not a check.
Most vaults want every new note discoverable from the day it was made. Unless the vault's CLAUDE.md says otherwise:
Daily Notes/YYYY-MM-DD.md. Match the vault's actual folder and date format; do not assume.- [[Note Title]].Check before claiming. Every [[wikilink]] written should resolve to a real file, or be a deliberate stub the vault's conventions call for. Escaped pipes in tables ([[Target\|Alias]]) produce false "broken" hits — strip the trailing backslash before comparing. Attachments are verified by Step 4.5's script, not by eye: state its result ("9 of 9 attachments local, Obsidian resolves all 9"), or what it flagged.
Say what happened to the daily note either way — "linked into Daily Notes/2026-08-24.md", or that you did not and why. Never leave the caller to assume it happened.
Then print the path as the final line in machine-parseable form so callers can chain on it:
OUTPUT_FILE:/absolute/path/to/vault/Folder/Note Title.md
Print a human-readable confirmation before that line if useful, but the OUTPUT_FILE: line must be last.
--title or --content — stop and say which.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mayank-io/mstack --plugin notes4 skills in this plugin
/clean-transcriptTurn a raw transcript into readable verbatim Markdown — strip timestamps, merge fragmented lines, insert paragraph breaks and chapter headings. Use when the user says "clean this transcript", "format this transcript", or after fetch:youtube-download hands back raw timestamped text. Guarantees the output is word-for-word identical to the input./clipCapture a URL into the notes vault — route it to the right fetcher and note-writer for that source. Use when the user says "clip <url>", "clip this link", or shares a URL and wants it saved as a note. Handles X/Twitter, YouTube, LinkedIn, Notion sites, Tabroom judges' scores and feedback, PDFs and general web pages. For a file already on disk, use notes:save-local-file instead./Other plugins' skills for the same job