Logo von Obsidian Cli

Obsidian Cli

Community
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.

Übersicht

Herausgeberseandavi
Repositorylifeos-template
Skill-Nameobsidian-cli
Sterne
47
Forks
3
Mitgelieferte Dateien
Nur Anweisungen
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von seandavi auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Obsidian Cli in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/seandavi/lifeos-template/tree/main/.claude/skills/obsidian-cli
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Obsidian Cli in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Obsidian Cli automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Obsidian Cli nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Häufig gestellte Fragen

Was macht der 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.

Warum Obsidian Cli in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Obsidian Cli besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Obsidian Cli in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/seandavi/lifeos-template/tree/main/.claude/skills/obsidian-cli ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Obsidian Cli nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Obsidian Cli verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Obsidian Cli damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Obsidian Cli kostenlos?

Der Skill wird von seandavi auf GitHub veröffentlicht. Die Lizenzbedingungen finden Sie im Repository. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇