obsidian-cli
Skill5 starsChanged 2 months agoMITView on GitHub
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
97 other projects use a version of this, 71 of them edited.
Adopted by
Most recently taken up by
- VinodBobby/skillsedited, first seen Nov 29, 2026
- kevinreber/claude-code-configsedited, first seen Nov 29, 2026
- gromov0737/skillsedited, first seen Nov 29, 2026
- 177cubicube-star/claude-skillsedited, first seen Nov 29, 2026
- omusubiman5/codex-pmo-skillsedited, first seen Nov 22, 2026
- Today20092/skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use mermaid-visualizer, qmd and 5 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.
BCS1037Skillmermaid-visualizer
Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.
Also in 5 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 4 projects that use this
RoundTable02Skilltutor
Interactive quiz tutor for Obsidian StudyVault learning. Use when the user wants to: (1) Take a diagnostic assessment of their knowledge, (2) Study or review specific sections/topics, (3) Drill weak areas identified in previous sessions, (4) Check their learning progress or dashboard, or says things like "quiz me", "test me", "let's study", "/tutor", "학습", "퀴즈", "평가".
Also in 5 projects that use this
MicrosoftSkillexcalidraw-diagram
Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts.
Also in 5 projects that use this
xfstudioSkillcode-review-excellence
Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.
Also in 3 projects that use this
MicrosoftSkillpaper-search
Search papers across arXiv, DBLP, OpenAlex, OpenReview, Semantic Scholar, and Crossref for a given query and year range, using ./scripts/search_papers.py. Use when the user asks to find papers, related work, prior art, or recent publications on a specific topic, especially when they mention a date range or specific venues like NeurIPS, ICLR, or ICML.
Also in 3 projects that use this
Other versions97 projects use a version of this.
Word for word · 0
None found.
Edited · 71
- breferrari/obsidian-mind★ 5.4k64% same
- Atmosphere/atmosphere★ 3.8k76% same
- pedronauck/skills★ 659100% same
- edrickleong/obsidian-calendar-bases★ 18676% same
- benoror/obsidianos_work★ 16567% same
- The-AIOS/aios★ 13076% same
- songzhuozhu/obsidian-llm-wiki★ 12176% same
- cybaea/obsidian-vault-intelligence★ 8276% same
- bozhouDev/bozhou-skills★ 7876% same
- open-fox/agents★ 5576% same
61 more not listed
Wrote their own version · 26
- allenhutchison/obsidian-gemini★ 535same name
- sd0xdev/sd0x-dev-flow★ 196same name
- sd0xdev/sd0x-harness★ 196same name
- kv0906/pm-kit★ 138same name
- jykim/claude-obsidian-skills★ 50same name
- seandavi/lifeos-template★ 46same name
- LARi-UQAC/ResearchTools★ 15same name
- ferocknew/claude_code_public_skills★ 9same name
- sergeeey/Claude-cod-top-2026★ 9same name
- ronijaakkola/obsidian-skill-examples★ 2same name
16 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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- defuddleSkill
- heraldSkill
- json-canvasSkill
- knapSkill
- obsidian-basesSkill
- obsidian-headlessSkill
- obsidian-markdownSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 0 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 88 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the obsidian CLI to interact with a running Obsidian instance.
- Very specific: line 22
Run obsidian help to see all available commands.
- Very specific: line 38
Use overwrite only when replacing an existing file is intended.
- Very specific: line 61
Use vault= when the user has selected a vault.
- Very specific: line 84
Use total on list commands to get a count.
- Very specific: line 123
Run JavaScript in the app context (prefer dedicated commands like rename, move, create, and append for vault mutations):
- Very specific: line 141
Run obsidian help to see additional developer commands including CDP and debugger controls.
“Common” is measured: kept by at least 6 in 10 of the 88 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Obsidian CLI
Use the obsidian CLI to interact with a running Obsidian instance. Requires Obsidian to be open.
Before using the CLI
Run obsidian help to check availability. If the command is missing, explain how to turn on the CLI using https://help.obsidian.md/cli. The obsidian command ships with the Obsidian installer; don't install the unrelated npm package obsidian-cli. If it can't find Obsidian, ask the user to open the desktop app, then retry. In a sandboxed shell the same message can mean the sandbox blocked the CLI's local socket.
On WSL, run Obsidian.com from the Windows install folder, not Obsidian.exe. Obsidian.com is the console wrapper that prints the output; Obsidian.exe exits without printing anything.
The CLI exits with status 0 even when a command fails, so read its output before reporting that a command succeeded.
Quote parameters for the current shell, and pass note text as literal argument data, never as executable shell syntax.
Command reference
Run obsidian help to see all available commands. This is always up to date. Full docs: https://help.obsidian.md/cli
Syntax
Parameters take a value with =. Quote values with spaces:
obsidian create name="My Note" content="Hello world"Flags are boolean switches with no value:
obsidian create name="My Note" open overwriteUse overwrite only when replacing an existing file is intended.
Opening is opt-in: pass open to open the file, and add newtab to open it in a new tab. There is no silent flag.
In content=, \n becomes a newline and \t a tab. Every \n and \t is converted and there's no escape, so text such as the LaTeX \theta or the path C:\notes is corrupted. Write content that contains backslashes, or is longer than about 4 KB, directly to the note's file instead.
A dot in a file name is read as the start of an extension. When a name contains a dot, include the extension: create name="Meeting 2026.11.06.md", rename name="v1.2 notes.md", move to="Archive 2026.10/Note.md".
File targeting
Many commands accept file or path to target a file. Without either, the active file is used.
file=<name>— resolves like a wikilink (name only, no path needed)..mdis optional; other file types need their extension, e.g.file="Projects.base". Aliases don't resolve.path=<path>— exact path from vault root, e.g.folder/note.md
Vault targeting
Without vault=, commands target the vault that contains the current directory, then the most recently focused vault. vault=<name> only works as the first parameter; anywhere else it's ignored:
obsidian vault="My Vault" search query="test"Use vault= when the user has selected a vault. If the target is unclear and the user has several vaults, ask which one before changing files.
Common patterns
obsidian read file="My Note"
obsidian create name="New Note" template="Template" # a template replaces content=
obsidian create name="New Note" content="# Hello" open # also open in Obsidian
obsidian append file="My Note" content="New line"
obsidian rename path="folder/note.md" name="New name"
obsidian move path="folder/note.md" to="archive/"
obsidian delete path="folder/note.md"
obsidian search query="search term" limit=10
obsidian daily:read
obsidian daily:append content="- [ ] New task"
obsidian property:set name="status" value="done" file="My Note"
obsidian tasks daily todo
obsidian tags sort=count counts
obsidian backlinks file="My Note"Use rename and move, not filesystem mv or obsidian eval, so Obsidian can update links to the file. If other notes link to it and Settings → Files and links → Automatically update internal links is off, Obsidian asks in a dialog and the command waits until someone answers. delete moves the file to the trash; don't pass permanent unless the user asks for it. Prefer create and append over eval for writing note bodies.
Use total on list commands to get a count.
Output options placement: --copy, --json, --md, --tsv, and --csv only work after the command name. Putting them before the command (or before vault=) fails — often as Command "--copy" not found — because the first token is treated as the command. Prefer vault= first when used; put double-dash options last:
obsidian tasks todo total --copy
obsidian vault="My Vault" search query="TODO" --copy
obsidian tasks todo format=json # many list commands also accept format=
# Wrong: obsidian --copy vault="My Vault" tasks todoPlugin development
Develop/test cycle
Turn on console capture once with obsidian dev:debug on, so messages from the reload are kept. After making code changes to a plugin or theme, follow this workflow:
- Reload the plugin to pick up changes:
obsidian plugin:reload id=my-plugin - Check for errors — if errors appear, fix and repeat from step 1:
obsidian dev:errors - Verify visually with a screenshot or DOM inspection:
obsidian dev:screenshot obsidian dev:dom selector=".workspace-leaf" text - Check console output for warnings or unexpected logs:
obsidian dev:console level=error
dev:screenshot saves to a temporary file and prints its path. A relative path= saves inside the vault.
Additional developer commands
Run JavaScript in the app context (prefer dedicated commands like rename, move, create, and append for vault mutations):
obsidian eval code="app.vault.getFiles().length"Inspect CSS values:
obsidian dev:css selector=".workspace-leaf" prop=background-colorToggle mobile emulation:
obsidian dev:mobile onRun obsidian help to see additional developer commands including CDP and debugger controls.
- CLI_AGENT_NOTES.md: community agent notes for this CLI (safety rules, CLI-versus-file-tools decision rule, per-command gotchas), merged from an independent CLI audit. See ATTRIBUTION.md in the skills root for provenance and the one local modification in this vendored copy.
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.

