Obsidian Cli logo

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.

Overview

Publisherseandavi
Repositorylifeos-template
Skill nameobsidian-cli
Stars
47
Forks
3
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by seandavi on GitHub. Read the source before you install it.

Installation

Install the Obsidian Cli AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/seandavi/lifeos-template/tree/main/.claude/skills/obsidian-cli
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Obsidian Cli in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Obsidian Cli on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Obsidian Cli is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Obsidian Cli AI skill do?

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.

Why use Obsidian Cli on TypingMind?

Because you install it once and use it with any model. Obsidian Cli is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Obsidian Cli in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/seandavi/lifeos-template/tree/main/.claude/skills/obsidian-cli. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Obsidian Cli?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Obsidian Cli?

As many as you like. As long as a model supports skills, you can use Obsidian Cli with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Obsidian Cli AI skill free?

It is published on GitHub by seandavi. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇