Token导航 LogoToken导航

Agent Skill · 研究检索

obsidian-cli(Obsidian CLI 知识库)

obsidian-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

obsidian-cli 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 37,489。

总安装 1,728周安装 72GitHub Stars 154下载 576核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:obsidian-cli(Obsidian CLI 知识库)
来源仓库:https://github.com/pablo-mano/obsidian-cli-skill
仓库路径:skills/obsidian-cli
安装命令:
npx skills add https://github.com/pablo-mano/obsidian-cli-skill --skill obsidian-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pablo-mano/obsidian-cli-skill --skill obsidian-cli

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

obsidian-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于关键词搜索、任务场景匹配或来源线索梳理等研究检索场景。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前需确认权限范围、维护状态及是否触发联网、命令执行或文件读写操作。建议结合原始 README 和仓库内容进一步核验具体用法和功能边界。

来源仓库内路径:skills/obsidian-cli

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pablo-mano/obsidian-cli-skill --skill obsidian…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

obsidian-cli 怎么安装?

在终端执行 npx skills add https://github.com/pablo-mano/obsidian-cli-skill --skill obsidian-cli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

obsidian-cli 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

obsidian-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

obsidian-cli 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

obsidian-cli 用的人多吗?

公开数据是累计安装 1,728 次,近一周安装 72 次,下载 576 次,GitHub 154 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

obsidian-cli 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
obsidian-cli

Obsidian CLI 知识库 · 本页

1,728154接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Obsidian CLI

The official Obsidian CLI (released in v1.12, February 2026) lets you control every aspect of Obsidian from the terminal. It communicates with a running Obsidian desktop instance via IPC.

Read references/command-reference.md when you need specific flags, output formats, or subcommands for any command group. It covers all 130+ commands with full parameter tables and has a table of contents at the top.

Prerequisites

RequirementDetails
Obsidian Desktopv1.12.0+
CLI enabledSettings → Command line interface → Toggle ON
Obsidian runningThe desktop app must be running for CLI to work (IPC)

Platform Notes

  • macOS / Linux: The obsidian binary is registered in PATH automatically when you enable CLI in settings.
  • Windows: Requires an Obsidian.com redirector file placed alongside Obsidian.exe. Must run with normal user privileges — admin terminals produce silent failures.

- If colon subcommands (property:set, daily:append, etc.) with parameters return exit 127, check that Obsidian.com exists alongside Obsidian.exe. If missing, you have an outdated installer — download the latest from obsidian.md/download and reinstall. - Git Bash / MSYS2 users: Bash resolves obsidian to Obsidian.exe (GUI) instead of Obsidian.com (CLI), causing colon+params to fail with exit 127 even when Obsidian.com is present. Create a wrapper script — see Troubleshooting.

  • Headless Linux: Use the .deb package (not snap). Run under xvfb. Prefix commands with DISPLAY=:5 (or your xvfb display number). Ensure PrivateTmp=false if running as a service.

Syntax

All parameters use key=value syntax. Quote values containing spaces.

obsidian <command> [subcommand] [key=value ...] [flags]

Multi-Vault

Target a specific vault by making it the first argument:

obsidian "My Vault" daily:read
obsidian "Work Notes" search query="meeting"

If omitted, the CLI targets the most recently active vault.

Command Overview

The CLI provides 130+ commands across these groups:

GroupKey CommandsPurpose
filesread, create, append, prepend, move, rename, delete, files, folders, file, randomNote CRUD and file discovery
dailydaily, daily:read, daily:append, daily:prepend, daily:pathDaily note operations
searchsearch, search:contextFull-text search; search:context returns matching lines
propertiesproperties, property:read, property:set, property:remove, aliasesFrontmatter/metadata management
tagstags, tagTag listing, counts, and filtering
taskstasks, taskTask querying, filtering, and toggling
linksbacklinks, links, unresolved, orphans, deadendsGraph and link analysis
bookmarksbookmarks, bookmarkList and add bookmarks
templatestemplates, template:read, template:insertTemplate listing, rendering, insertion
pluginsplugins, plugin, plugin:enable, plugin:disable, plugin:install, plugin:uninstall, plugins:restrictPlugin management
syncsync, sync:status, sync:history, sync:read, sync:restore, sync:deletedObsidian Sync operations
themesthemes, theme, theme:set, theme:install, theme:uninstallTheme management
snippetssnippets, snippets:enabled, snippet:enable, snippet:disableCSS snippet management
commandscommands, command, hotkeys, hotkeyExecute Obsidian commands by ID; inspect hotkeys
basesbases, base:query, base:views, base:createObsidian Bases (v1.12+ database feature)
historyhistory, history:list, history:read, history:restoreFile version recovery (File Recovery plugin)
workspaceworkspace, tabs, tab:openWorkspace layout and tab management
diffdiffCompare local vs sync file versions
deveval, dev:screenshot, dev:debug, dev:console, dev:errors, dev:css, dev:dom, devtoolsDeveloper/debugging tools
vaultvault, vaults, version, reload, restartVault info and app control
otheroutline, wordcount, recentsUtility commands

Quick Reference — Most Common Commands

Reading & Writing Notes

obsidian read path="folder/note.md"
obsidian create path="folder/note" content="# New Note"
obsidian create path="folder/note" template="meeting-notes"
obsidian append path="folder/note.md" content="New paragraph"
obsidian prepend path="folder/note.md" content="Top content"
obsidian move path="old/note.md" to="new/note.md"
obsidian delete path="folder/note.md"
obsidian delete path="folder/note.md" permanent

Daily Notes

obsidian daily                          # Open today's daily note
obsidian daily:read                     # Print content of today's note
obsidian daily:append content="- [ ] New task"
obsidian daily:prepend content="## Morning Notes"

Search

obsidian search query="project alpha"
obsidian search query="TODO" path="projects" limit=10
obsidian search query="meeting" format=json   # Returns JSON array of file paths
obsidian search query="urgent" case

Properties & Tags

obsidian properties path="note.md"
obsidian property:set path="note.md" name="status" value="active"
obsidian property:read path="note.md" name="status"
obsidian property:remove path="note.md" name="draft"
obsidian tags counts sort=count
obsidian tag name="project/alpha"

Tasks

obsidian tasks                          # All tasks (done + todo) — same as tasks all in v1.12
obsidian tasks all                      # All tasks (done + todo)
obsidian tasks done                     # Completed only
obsidian tasks daily                    # Tasks in today's daily note
obsidian task path="note.md" line=12 toggle
obsidian tasks | grep "\[ \]"           # Workaround: filter to incomplete only

Developer & Automation

obsidian eval code="app.vault.getFiles().length"
obsidian dev:screenshot path="folder/screenshot.png"  # Path must be vault-relative
obsidian dev:debug on                                 # Required before dev:console
obsidian dev:console limit=20
obsidian dev:errors

TUI Mode

Running obsidian with no arguments launches an interactive TUI (Terminal User Interface):

KeyAction
↑↓Navigate files
EnterOpen file
/Search
nCreate new file
dDelete file
rRename file
qQuit

Common Agent Patterns

Daily Journal Automation

# Append a timestamped entry
obsidian daily:append content="## $(date '+%H:%M') — Status Update
- Completed: feature branch merge
- Next: code review for PR #42
- Blocked: waiting on API credentials"

Create Note from Template with Metadata

obsidian create path="projects/new-feature" template="project-template"
obsidian property:set path="projects/new-feature.md" name="status" value="planning"
obsidian property:set path="projects/new-feature.md" name="created" value="$(date -I)"
obsidian daily:append content="- Started [[projects/new-feature|New Feature]]"

Vault Analytics Script

obsidian files total                    # Total file count
obsidian tags counts sort=count         # Most used tags
obsidian tasks | grep "\[ \]"          # Incomplete tasks across vault
obsidian orphans                        # Notes needing integration
obsidian unresolved                     # Broken links to fix

Search and Extract for AI Processing

obsidian search query="meeting notes" format=json | jq '.[]'
obsidian read path="meetings/standup.md" | grep "Action item"

Sync Management

obsidian sync:status                    # Check sync health
obsidian sync:history path="important.md"  # Version history
obsidian sync:restore path="important.md" version=3  # Rollback

Execute Obsidian Commands

# Find a command ID, then execute it
obsidian commands | grep "graph"
obsidian command id="graph:open"

# Open settings, trigger a plugin action
obsidian command id="app:open-settings"
obsidian command id="dataview:dataview-force-refresh-views"

Tips

  1. Paths are vault-relative — use folder/note.md, not absolute filesystem paths.
  2. create paths omit .md — the extension is added automatically.
  3. move requires full target path including .md extension.
  4. Pipe-friendly — plain text output works with grep, awk, sed, jq.
  5. JSON output — use format=json on search for a JSON array of file paths. The files command does not support JSON output.
  6. Stderr noise — GPU/Electron warnings on headless are harmless; filter with 2>/dev/null.
  7. daily:prepend inserts content after frontmatter, not at byte 0.
  8. Use eval to run arbitrary JavaScript against the Obsidian API (app.*).
  9. template:insert inserts into the currently active file in the Obsidian UI — it does not accept a path= parameter. If no file is open, it returns Error: No active editor. Open a file first. To create a file from a template via CLI, use obsidian create path="..." template="..." instead.
  10. property:set stores list values as strings — value="tag1, tag2" writes a literal comma-separated string, not a YAML array. For proper array fields, edit the note's frontmatter directly (e.g. via read → modify → create --force) or use eval to call the Obsidian API.
  11. eval requires single-line JavaScript — multiline JS passed inline fails with a token error. Write the script to a temp file instead: cat > /tmp/obs.js << 'JS' var files = app.vault.getMarkdownFiles(); files.length; JS obsidian eval code="$(cat /tmp/obs.js)"
  12. Multi-vault targeting may not work in all environments — obsidian "My Vault" command can return Error: Command "My Vault" not found on some setups. If this happens, omit the vault name (CLI targets the most recently active vault) and switch vaults manually in the Obsidian UI.
  13. When colon subcommands are unavailable (e.g. Windows Git Bash without wrapper), prefer non-colon alternatives: use properties instead of property:read, and obsidian daily:path + append instead of daily:append.

Troubleshooting

ProblemCauseFix
Empty output / hangsObsidian not running, or admin terminal (Windows)Start Obsidian; use normal-privilege terminal
Command not foundCLI not registered in PATHRe-enable CLI in Settings; restart terminal
Unicode errorsFixed in v1.12.2+Update Obsidian
Wrong vault targetedMulti-vault ambiguityPass vault name as first arg
IPC socket not found (Linux)PrivateTmp=true in systemdSet PrivateTmp=false
Snap confinement issuesSnap restricts IPCUse .deb package instead
Multi-vault "Name" command failsVault name matching issueOmit vault name; target most recent vault
property:set list value is a stringCLI stores value as-isEdit frontmatter directly or use eval
Colon+params exit 127 (missing .com)Outdated installer — Obsidian.com absentReinstall from obsidian.md/download
Colon+params exit 127 (Git Bash / MSYS2)Bash resolves obsidian to .exe not .comCreate ~/bin/obsidian wrapper: #!/bin/bash / /c/path/to/Obsidian.com "$@" and add export PATH="$HOME/bin:$PATH" to ~/.bashrc

平台分布

Codex

37.52%
按下载量换算216

Claude

28.74%
按下载量换算166

Cursor

18.73%
按下载量换算108

Gemini CLI

9.77%
按下载量换算56

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills