Logo vun Obsidian Cli

Obsidian Cli

Communautéit
seandavi
obsidian-cli

Playbook for operating this Obsidian vault via the `obsidian` CLI when it's installed — link resolution, graph hygiene (backlinks / orphans / unresolved), task reconciliation across files, frontmatter/tag/property queries, full-text search, version history. Use when doing substantial work over the vault's link graph, tasks, or frontmatter AND `obsidian` is on PATH. Describes the filesystem fallback for when it isn't. Also /obsidian-cli.

Iwwersiicht

Editeurseandavi
Repositorylifeos-template
Skill-Nummobsidian-cli
Stären
47
Forks
3
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum seandavi op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Obsidian Cli an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/seandavi/lifeos-template/tree/main/.claude/skills/obsidian-cli
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/seandavi/lifeos-template.git /tmp/lifeos-template
mkdir -p .claude/skills
cp -r /tmp/lifeos-template/.claude/skills/obsidian-cli .claude/skills/obsidian-cli
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Obsidian Cli an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Obsidian Cli automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Obsidian Cli net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Operating the vault via the obsidian CLI

The obsidian CLI talks to the running Obsidian app and exposes its parsed model — the resolved link graph, tasks with status chars, frontmatter properties, tags, bases — not just bytes on disk. That makes graph/task/property work a query instead of a Grep-and-guess. This skill is the playbook for using it well.

This integration is optional. LifeOS does not require Obsidian. If you don't use Obsidian (or don't have the CLI), every workflow in this vault still works — this skill simply never activates. Nothing needs to be configured or disabled.

0. Preconditions — check before relying on it

bash
command -v obsidian                  # is the CLI installed?
timeout 5 obsidian vault info=name   # is the app running + a vault open?
  • Always bound the app-running probe — vault info can hang indefinitely when the app is closed. Use timeout 5 (or gtimeout from coreutils on macOS); if neither exists, skip the probe and treat the first failed or hanging query as the signal to fall back.
  • If the CLI is absent or the app is closed → fall back to the filesystem (Glob/Grep/Read), exactly as CLAUDE.md's Wiki-Links fallback describes. Every query below has a filesystem equivalent; the CLI is faster and exact, not required. Don't block work waiting on it.
  • Target a specific vault with vault=<name> if more than one is open.

1. The golden boundary

Query and navigate with the CLI. Change prose with Edit. The CLI's write verbs (append, prepend, create, property:set) are coarse — good for appending a log line or setting one frontmatter key, wrong for surgical multi-line edits.

Live-app verbs are opt-in only. eval, command, open, daily, tabs, theme, dev:*, restart mutate the user's running session (pop tabs open, run JS in-app, change the UI). Use them only when the user explicitly asks you to drive the UI. Never as a side effect of a lookup.

Git is the version-control truth, not Obsidian Sync. history / diff / sync:restore are a handy second safety net, but recovery and commits go through git (see CLAUDE.md's Git Workflow section). Don't conflate them.

2. Link resolution & graph hygiene

bash
obsidian read file="some-name"          # resolve [[some-name]] by name, read it
obsidian backlinks file="X" counts      # what links TO X (before editing/renaming X)
obsidian links file="X"                 # what X links to
obsidian unresolved verbose             # [[stubs]] not yet written — the "worth writing" marks
obsidian orphans                        # notes nothing links to
obsidian deadends                       # notes with no outgoing links
  • Before renaming/moving a note, run backlinks first so you know what breaks. obsidian rename / obsidian move update the file; verify links after.
  • unresolved is the backlog of intentional [[future-note]] stubs — a to-write list, not errors.
  • orphans counts can be inflated by auto-generated or imported stubs; scan the list before treating the raw number as a problem.

3. Tasks — first-class across the whole vault

bash
obsidian tasks todo verbose             # every open "- [ ]" with path:line
obsidian tasks done                     # completed
obsidian tasks path="inbox.md" todo     # scope to a file
obsidian task ref="inbox.md:42" done    # mark one done (or toggle / status="x")

Use for the task-management protocol in CLAUDE.md: reconcile the same item's checkbox across inbox.md, the day's journal, and now.md instead of eyeballing. Still complete tasks in the three-step order (inbox → completed.md → journal) — the CLI toggles boxes, it doesn't do the completed.md write with strategic context.

4. Frontmatter, tags, properties

bash
obsidian tags counts sort=count                 # tag frequency across the vault
obsidian tag name="research" verbose            # files carrying a tag
obsidian properties file="people/jane-smith.md" # frontmatter of one file
obsidian property:read name="status" file="…"   # one property value
obsidian property:set name="status" value="active" type="text" file="…"  # clean write, no YAML hand-edit

Prefer property:set over hand-editing YAML frontmatter — it won't corrupt the block. For anything below the frontmatter, use Edit.

5. Search, history, bases

bash
obsidian search:context query="some-topic" path="notes"   # matches WITH line context
obsidian history file="X"      # local version list   ·   obsidian diff file="X" from=2 to=1
obsidian bases                 # Obsidian DB-view files, if the vault has any
obsidian base:query file="…" view="…" format=json         # query a base as structured data

If the vault has a base, base:query turns it into a JSON/CSV data source — the vault's own lightweight database. If not, bases returns empty; that's fine.

6. Worked patterns

  • Vault audit (feeds /audit): unresolved, orphans, deadends, tasks todo total → a health snapshot in four commands. Report the numbers; don't auto-delete orphans (many are intentional stubs).
  • Pre-edit context: before revising a note, backlinks file="X" to see who depends on it and keep cross-references honest.
  • Link a new note in: after writing notes/foo.md, backlinks file="foo" should be non-empty — if it's an orphan, add an inbound link from a relevant hub.

Discovering more

obsidian --help lists the full command set; obsidian help <command> details one. The catalog is large (plugins, snippets, workspace, dev tools) — this skill covers the vault-knowledge subset that matters for day-to-day work.

Heefeg gestallte Froen

Wat mécht de KI-Skill Obsidian Cli?

Playbook for operating this Obsidian vault via the `obsidian` CLI when it's installed — link resolution, graph hygiene (backlinks / orphans / unresolved), task reconciliation across files, frontmatter/tag/property queries, full-text search, version history. Use when doing substantial work over the vault's link graph, tasks, or frontmatter AND `obsidian` is on PATH. Describes the filesystem fallback for when it isn't. Also /obsidian-cli.

Firwat Obsidian Cli op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Obsidian Cli besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Obsidian Cli an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/seandavi/lifeos-template/tree/main/.claude/skills/obsidian-cli an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Obsidian Cli benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Obsidian Cli benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Obsidian Cli domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Obsidian Cli gratis?

De Skill gëtt vum seandavi op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇