1. Habit
  2. Skills
  3. CLI Anything Obsidian skill
hkuds · 898 installs

CLI Anything Obsidian skill
Runs by itself, You ask for note task.

Notes managed without opening Obsidian.

Install the CLI Anything Obsidian skill and make it a habit: follow https://gethabit.dev/skills/hkuds/cli-anything-obsidian.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

898 installs56K starsApache-2.0 licenceSource on GitHub ↗

CLI Anything Obsidian

by hkuds · 898 installs

The skill

CLI Anything Obsidian manages an Obsidian vault from the command line through the Local REST API: list, read, create, update, append, search and run commands, with JSON output for agents.

Only when you ask.

The habit

Notes managed without opening Obsidian.

↻ Runs by itselfYou ask for note task

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one note task per run, with at most one retry.

  1. 01

    Check server

    Your agent runs server status to confirm the Obsidian Local REST API is running before anything else.

  2. 02

    List or search

    It runs vault list, search simple or search query to find the right notes.

  3. 03

    Read

    It reads a note with vault read in --json mode.

  4. 04

    Write

    It creates, updates or appends with the vault commands as the task needs.

  5. 05

    Confirm

    It reads the note back to confirm the change and records it in the run log.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the CLI Anything Obsidian skill helps.

Use it when

  • ✓ managing Obsidian notes from the command line
  • ✓ searching a vault programmatically
  • ✓ letting an agent read and write notes

Skip it when

  • – the Local REST API plugin is not enabled
  • – you prefer working in the Obsidian GUI

Questions

CLI Anything Obsidian skill, answered.

What has to be running?

Obsidian itself with the Local REST API plugin enabled, and the OBSIDIAN_API_KEY set for the agent.

Does it use the GUI?

No. Everything goes through the REST API, so notes are managed without the Obsidian window.

How do I install the CLI Anything Obsidian skill?

Copy the prompt at the top into your agent. It installs the skill from hkuds/cli-anything and sets up the habit. Or run npx skills add hkuds/cli-anything --skill cli-anything-obsidian.

Is the CLI Anything Obsidian skill free?

Yes. It is published under Apache-2.0. Habit is free too.

CLI Anything Obsidian. Now as a habit.

Install the CLI Anything Obsidian skill and make it a habit: follow https://gethabit.dev/skills/hkuds/cli-anything-obsidian.md

  • Free
  • No account
  • Undo in one line

All hkuds skills →More notes skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by hkuds, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.