obsidian-cli
Skill8 starsChanged 2 months agoMITView on GitHub
Use when a task needs Claude to act on the Obsidian vault - read or search a note, list or count notes, inspect tags, tasks, links or properties, move or rename a file, or deposit a captured learning for the vault. Also use when a vault write appeared to succeed but the note is absent, when a numbered duplicate such as "Decisions 1.md" appears, or when Obsidian shows "A JavaScript error occurred in the main process". Skip for questions about the Obsidian GUI, themes, plugins or sync conflicts, where an explanation is wanted rather than a vault operation.
57 other projects use a version of this.
Adopted by
Most recently taken up by
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- hencter/hencte.toptheir own version, first seen Oct 4, 2026
- dharmikbhesaniya/obsidian-skilltheir own version, first seen Oct 2, 2026
- Atmosphere/atmospheretheir own version, first seen Sep 29, 2026
- Myraxion/obsidian-clitheir own version, first seen Sep 28, 2026
- sd0xdev/sd0x-harnesstheir own version, first seen Sep 26, 2026
Used with
Projects with it also use knap, obsidian-bases and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
lucasmaher-hashSkillknap
Render Markdown from templates and structured data using Knap CLI. Use when the user asks to apply a Knap template, turn JSON or CSV data into notes, batch-generate Markdown files, or format Defuddle output into a note.
Also in 4 projects that use this
KKodiacSkillobsidian-bases
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
Also in 36 projects that use this
KKodiacSkilljson-canvas
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
Also in 27 projects that use this
joeseesunSkilldefuddle
Extract clean article content from web pages or local HTML files. Removes clutter (ads, sidebars, nav) and returns readable content with metadata.
Also in 25 projects that use this
ZanderRussSkillobsidian-markdown
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
Also in 32 projects that use this
0xHoneyJarSkillqmd
Local markdown search engine for knowledge bases, notes, and documentation. Combines BM25 full-text search, vector semantic search, and LLM re-ranking. Use when searching through markdown notes, retrieving documents, or managing knowledge collections.
Also in 5 projects that use this
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 57
- kepano/obsidian-skills★ 49ksame name
- breferrari/obsidian-mind★ 4.9ksame name
- Atmosphere/atmosphere★ 3.8ksame name
- pedronauck/skills★ 633same name
- pablo-mano/Obsidian-CLI-skill★ 452same name
- sd0xdev/sd0x-harness★ 191same name
- benoror/obsidianos_work★ 165same name
- kv0906/pm-kit★ 138same name
- songzhuozhu/obsidian-llm-wiki★ 122same name
- gavishap/omnia-vault★ 80same name
47 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/skills/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- aider-setupSkill
- deliberationSkill
- drawio2tikzSkill
- extract-contributionsSkill
- extract-futureworksSkill
- extract-paper-ideaSkill
- extract-statisticSkill
- form-serviceSkill
- geolocalisationSkill
- latex-hygieneSkill
- loop-engineerSkill
- narrative-cvSkill
- obsidian-cliSkill
- opt-local-stt-vramSkill
- opt-local-vram-llmSkill
- paper2talkSkill
- recommendation-letterSkill
- rt-observeSkill
- scholar-evaluationSkill
- scientific-writingSkill
- scopusSkill
- word2latexSkill
- aider-setupSkill
- deliberationSkill
- drawio2tikzSkill
- extract-contributionsSkill
- extract-futureworksSkill
- extract-paper-ideaSkill
- extract-statisticSkill
- form-serviceSkill
- geolocalisationSkill
- latex-hygieneSkill
- loop-engineerSkill
- narrative-cvSkill
- opt-local-stt-vramSkill
- opt-local-vram-llmSkill
- paper2talkSkill
- recommendation-letterSkill
- rt-observeSkill
- scholar-evaluationSkill
- scientific-writingSkill
- scopusSkill
- word2latexSkill
The file
Files
Obsidian CLI
Vault root: OBSIDIAN_VAULT (default C:\Martin Otis\Vault). Write
vault-internal paths relative to that root, e.g.
30_Ressources/Obsidian/_Convention_Capture.md, never a drive letter.
Writing to the vault
Write sequence:
- Draft the note body to a scratch file, and keep the facts you were given, verbatim, in a brief file.
- Stage it with
scripts/note_fidelity.py --brief <brief> --note <draft> --stage <slug>, which writes~/.claude/obsidian-outbox/<slug>.mdONLY when every number, identifier, file name, commit hash and[[link]]of the draft appears in the brief, and otherwise stages nothing and exits 2 (measured 2026-09-26: one run's five drafts all carried invented facts, and six writes had to be undone from the journal). It cannot see a claim re-worded into its opposite, so the staged note is still read. First line:<!-- obsidian: create|append path="..." -->- lowercaseobsidian:, whole line, nothing after-->, or the file is skipped silently and stays in the outbox. Rest is content. Default tocreate: it degrades toappendon an existing file and skips a body already present, so a replay never doubles the note. path=is vault-relative only - no leading slash, no drive letter (a leading slash escapes the join on Windows, landing outside the vault, which the hook refuses). The outbox filename is scratch; onlypath=decides the target. No folder needs preparing - the hook creates any missing parent, so nevermovea note into place first.obsidian-outbox-flush.pyruns at SessionStart and SessionEnd only, not continuously, so a note waits until one fires: never report a write as done before it has. It processes files alphabetically, not by age; competing appends follow filename order. It verifies the effect by file size before/after and only then moves a file tooutbox/sent/; one left behind means the write did not land, and nothing is lost - it flushes at the next start.- Obsidian watches the disk and reloads on its own once the file lands.
This is the write path, not a fallback.
Forbidden commands
create, append, prepend - including daily:* writes (daily:append,
daily:prepend): that daily-note layer was retired 2026-08-03. Also
eval, dev:*, plugin:install, theme:install, every sync* except
read-only sync:history.
create/append/prepend carry a measured reason:
- Failure is in the whole JSON header (content, path,
tty/cwd), not content alone: 3850 bytes passes, 4343 does not, 4096 - a Windows named-pipe buffer - falls between. Reproduced on 1.13.4 and 1.13.7; trace in.claude/hooks/obsidian-outbox-flush.py. - Exits 0 on failure too: archives notes never written.
createon an existing file writes a numbered duplicate (Decisions 1.md) instead of failing.
Cause stays open: chunk reassembly, newline framing, and split UTF-8 were
checked and ruled out. Unproven: a client exiting before drain.
Allowed surface
read, search, list, property:get, property:set, tasks, links,
tags, move, rename. Full syntax: references/command-reference.md.
Traps: obsidian create --help creates Untitled.md, not help - use
obsidian help <command>; parameters take no dashes (path=, to=,
content=); obsidian move to a missing folder fails ENOENT without
creating it, while exiting 0 - create the parent first.
Transport: Git Bash needs ~/bin/obsidian (bare obsidian resolves to
Obsidian.exe and hangs); PowerShell calls Obsidian.com directly.
Rationalization table
| Excuse | Reality |
| "Short note, under the threshold" | Threshold is the whole header; a note grows and breaks later. |
| "The command returned 0" | Returns 0 on failure too. Only a disk size change is evidence. |
| "create just for an empty index.md" | Forks a numbered duplicate on an existing file. Use the outbox. |
| "The reference documents append, so it's supported" | Documents an API, not this vault's measured constraints. |
| "Exit 0 is Unix convention for success" | Not measured here either: check the file's size before/after - the only real evidence. |
| "Empty stderr means no problem" | Measured empty on a run where the note never reached the vault. |
| "content= has no stated size limit" | Undocumented, not unmeasured: the limit is the header size. |
| "Command finished, so the write is done" | Hook checks size before/after; a bare call checks nothing. |
| "Colons unavailable, fall back to daily:path + append" | This vault's Windows Git Bash case, but append still risks truncation, targeting a daily layer retired 2026-08-03. |
Where a captured learning goes
scripts/vault_consolidate.py (this skill's directory): deterministic half
of consolidation, measures shared tags/domaine/term overlap, proposes
links, decides nothing. --mode links additionally reports dead wiki-links
read-only, and --apply <map.json> --yes is the one guarded exception to
the outbox-only write rule: a dry-run-by-default, path-escape-refused,
map-validated, single-pass rewrite of existing links, run only by
local-writer.
New notes follow 30_Ressources/Obsidian/_Convention_Capture.md: filed by
technology, never by project.
Vault event daemon's ask queue (2026-09-26)
vault_daemon.py (this skill's scripts/ directory) is the standalone
process that files raw knowledge drops into the vault. Beside that path, it
also drains a read-only ask queue (daemon_ask.py): a question written to
~/.claude/obsidian-outbox/ask/requests/<id>.json, answered by searching
the vault for relevant notes and calling the local LLM, with the answer
written to ask/answers/<id>.json.
This queue is gated to requests declaring "from": "rt-dashboard" -
anything else is answered status: "refused" rather than processed. It
never calls graphify query and never reads graphify-out/: the vault is
cross-project and a graph is per-project, so the daemon has no fixed notion
of "the repository" to query (see daemon-config.json's own
graphify_repo_root provenance for the same reasoning). A graph-shaped
question is answered from the context_snapshot the caller supplies, which
already carries a local-writer-produced graph snapshot summary when one
was collected.
This is the mechanism behind rt-dashboard's voice panel - see the
rt-observe skill's own SKILL.md for the other half of the exchange.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

