Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, base...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install obsidian-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install obsidian-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/obsidian-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: obsidian-cli description: Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools. version: 2.0.0 author: adolago tags: - obsidian - cli - notes - automation - vault triggers: - obsidian - vault - daily note - obsidian cli ---
The official Obsidian CLI connects to a running Obsidian instance via IPC. Requires Obsidian 1.12+ with CLI enabled in Settings > General.
obsidian binary must be in your PATHImportant: Obsidian must be running for CLI commands to work. The CLI communicates with the running instance via IPC.
obsidian binary. If running as a service, ensure PrivateTmp=false for IPC to work.obsidian version # Show Obsidian version
obsidian help # List all available commands
obsidian vault # Show vault info (name, path, files, size)
obsidian vault info=name # Just vault name
obsidian vault info=path # Just vault path
obsidian reload # Reload the vault
obsidian restart # Restart the app
obsidian daily # Open today's daily note
obsidian daily silent # Open without focusing
obsidian daily:read # Read daily note contents
obsidian daily:append content="- [ ] Task" # Append to daily note
obsidian daily:prepend content="# Header" # Prepend to daily note
obsidian daily paneType=tab # Open in new tab (tab|split|window)
obsidian read file=Recipe # Read by name (wikilink resolution)
obsidian read path="Work/notes.md" # Read by exact path
obsidian file file=Recipe # Show file info (path, size, dates)
obsidian create name=Note content="Hello" # Create a new note
obsidian create name=Note template=Travel # Create from template
obsidian create path="Work/note.md" content="text" # Create at exact path
obsidian create name=Note overwrite # Overwrite if exists
obsidian create name=Note silent newtab # Create silently in new tab
obsidian open file=Recipe # Open in Obsidian
obsidian open file=Recipe newtab # Open in new tab
obsidian delete file=Old # Delete (to trash)
obsidian delete file=Old permanent # Delete permanently
obsidian move file=Old to="Archive/Old.md" # Move/rename (include .md in target)
obsidian append file=Log content="Entry" # Append to file
obsidian append file=Log content="text" inline # Append inline (no newline)
obsidian prepend file=Log content="Header" # Prepend to file
obsidian unique name="Meeting" content="notes" # Create note with unique timestamp
obsidian wordcount file=Note # Word and character count
obsidian wordcount file=Note words # Words only
obsidian wordcount file=Note characters # Characters only
obsidian random # Open a random note
obsidian random:read # Read a random note
obsidian random folder="Work" # Random note from folder
obsidian recents # List recently opened files
obsidian recents total # Count of recent files
obsidian search query="meeting notes" # Search vault
obsidian search query="TODO" matches # Show match context
obsidian search query="project" path="Work" limit=10 # Scoped search
obsidian search query="test" format=json # JSON output
obsidian search query="Bug" case # Case-sensitive search
obsidian search query="error" total # Count matches only
obsidian search:open query="TODO" # Open search view in Obsidian
obsidian tasks daily # Tasks from daily note
obsidian tasks daily todo # Incomplete daily tasks
obsidian tasks daily done # Completed daily tasks
obsidian tasks all todo # All incomplete tasks in vault
obsidian tasks file=Recipe done # Completed tasks in file
obsidian tasks verbose # Tasks with file paths + line numbers
obsidian tasks total # Count of tasks
obsidian tasks status="/" # Tasks with custom status character
obsidian task daily line=3 toggle # Toggle task completion
obsidian task daily line=3 done # Mark task done
obsidian task daily line=3 todo # Mark task incomplete
obsidian task ref="Work/todo.md:5" toggle # Toggle by file:line reference
obsidian task daily line=3 status="/" # Set custom status
# Tags
obsidian tags all counts # All tags with counts
obsidian tags all counts sort=count # Sorted by frequency
obsidian tags file=Note # Tags in specific file
obsidian tags total # Total tag count
obsidian tag name=project verbose # Tag details with file list
obsidian tag name=project total # Count of files with tag
# Properties (frontmatter)
obsidian properties all counts # All properties with counts
obsidian properties all counts sort=count # Sorted by frequency
obsidian properties file=Note # Properties of specific file
obsidian properties name=status # Files with specific property
obsidian properties format=yaml # YAML output
obsidian properties format=tsv # TSV output
obsidian property:read name=status file=Note # Read a property value
obsidian property:set name=status value=done file=Note # Set a property
obsidian property:set name=due value="2026-03-01" type=date file=Note # Set with type
obsidian property:remove name=status file=Note # Remove a property
# Aliases
obsidian aliases # List all aliases in vault
obsidian aliases all # Include files without aliases
obsidian aliases file=Note # Aliases for specific file
obsidian aliases total # Count of aliases
obsidian aliases verbose # With file paths
...
安装 Obsidian CLI 后,可以对 AI 说这些话来触发它
Help me get started with Obsidian CLI
Explains what Obsidian CLI does, walks through the setup, and runs a quick demo based on your current project
Use Obsidian CLI to the official Obsidian CLI (v1
Invokes Obsidian CLI with the right parameters and returns the result directly in the conversation
What can I do with Obsidian CLI in my documents & notes workflow?
Lists the top use cases for Obsidian CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/obsidian-cli/ 目录(个人级,所有项目可用),或 .claude/skills/obsidian-cli/(项目级)。重启 AI 客户端后,用 /obsidian-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Obsidian CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Obsidian CLI 可免费安装使用。请查阅仓库了解许可证信息。
Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, base...
Obsidian CLI 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Obsidian CLI
Identifies repetitive steps in your workflow and sets up Obsidian CLI to handle them automatically