微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🗂️

命令行驾驭你的 Obsidian 知识库

Obsidian Cli Tool · v1.0.0
效率 安全 B 级 作者 sadlay 公开目录收录
998 下载 0 安装 3.9k 收藏 10 浏览

简介

通过命令行与 Obsidian 知识库深度交互,支持笔记管理、全文搜索、属性操作及插件开发调试,需配合 Obsidian CLI 插件使用。

原始描述

Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme d...

通过你的 Agent 添加

安装目录:obsidian-cli-tool/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/obsidian-cli-tool/
Codex CLI~/.codex/skills/obsidian-cli-tool/
DeepSeek Harness~/.agents/skills/obsidian-cli-tool/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: obsidian-cli-tool description: Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.

Obsidian CLI

Use the obsidian CLI to interact with a running Obsidian instance. Requires Obsidian to be open.

Command reference

Vault operations

  • obsidian list vaults — List all vaults
  • obsidian open <vault> — Open a vault by name
  • obsidian open <note> — Open a note in the default vault
  • obsidian search "query" — Fuzzy search for notes
  • obsidian search-content "term" — Search within note contents

Note operations

  • obsidian create --name "Title" --content "Body text" — Create a new note
  • obsidian print <note> — Print note contents
  • obsidian move <source> <target> — Move or rename a note
  • obsidian delete <note> — Delete a note
  • obsidian daily — Open or create today's daily note

Properties (frontmatter)

  • obsidian frontmatter get <note> <key> — Get a property value
  • obsidian frontmatter set <note> <key> <value> — Set a property value
  • obsidian frontmatter remove <note> <key> — Remove a property

Plugin development

  • obsidian plugin reload — Reload the current plugin
  • obsidian plugin eval '<code>' — Run JavaScript in Obsidian
  • obsidian plugin screenshot — Take a screenshot of Obsidian
  • obsidian plugin dom — Inspect the DOM structure

Usage examples

# Create a note
obsidian create --name "Meeting Notes" --content "# Standup\n\n- Task A done\n- Task B in progress"

# Search for a note
obsidian search "project roadmap"

# Read a note
obsidian print "Projects/Website Redesign"

# Update frontmatter
obsidian frontmatter set "Todo List" status "in-progress"

# Open daily note
obsidian daily

Requirements

  • Obsidian must be running
  • The Obsidian CLI plugin must be installed and enabled
  • For plugin development commands, the workspace must be an Obsidian plugin project

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

obsidiancliknowledge-managementmarkdowndeveloper-toolsautomationproductivity

同类 Skill