agentleFS
LARi-UQACLARi-UQAC/ResearchTools/.claude/skills/obsidian-cli/SKILL.md

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

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-hashSkill

    knap

    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

  • KKodiacSkill

    obsidian-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

  • KKodiacSkill

    json-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

  • joeseesunSkill

    defuddle

    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

  • ZanderRussSkill

    obsidian-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

  • 0xHoneyJarSkill

    qmd

    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

The file

Files
SKILL.md

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:

  1. Draft the note body to a scratch file, and keep the facts you were given, verbatim, in a brief file.
  2. Stage it with scripts/note_fidelity.py --brief <brief> --note <draft> --stage <slug>, which writes ~/.claude/obsidian-outbox/<slug>.md ONLY 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="..." --> - lowercase obsidian:, whole line, nothing after -->, or the file is skipped silently and stays in the outbox. Rest is content. Default to create: it degrades to append on an existing file and skips a body already present, so a replay never doubles the note.
  3. 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; only path= decides the target. No folder needs preparing - the hook creates any missing parent, so never move a note into place first.
  4. obsidian-outbox-flush.py runs 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 to outbox/sent/; one left behind means the write did not land, and nothing is lost - it flushes at the next start.
  5. 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.
  • create on 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

ExcuseReality
"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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.