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 里排第 38,817。

总安装 1,505周安装 64GitHub Stars 11下载 527核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill obsidian-cli

这个 Skill 是做什么的

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

该技能专门用于驱动桌面版 Obsidian 终端自动化,支持 CLI 启用、URI 跳转与确定性目标控制。适用于需要从命令行触发笔记操作、执行开发命令或进行插件/API 集成的场景。核心能力包括官方 CLI 支持、TUI 单次使用、vault 精准定位及 obsidian:// 协议分发。

使用前需确认是否涉及文件系统写入、远程连接或第三方插件加载等敏感操作。obsidian-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

obsidian-cli 怎么安装?

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

obsidian-cli 支持哪些 AI 工具?

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

obsidian-cli 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

obsidian-cli 是免费的吗?

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

obsidian-cli 用的人多吗?

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

obsidian-cli 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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,50511操作浏览器未明确通过

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

SKILL.md 原文

obsidian-cli - Route Obsidian desktop automation correctly

Use this skill when the request is really about driving desktop Obsidian from the terminal or a URI handoff, not generic note taking.

obsidian-cli owns official CLI enablement, one-shot/TUI usage, deterministic vault= / file= / path= targeting, developer-command execution, official obsidian:// handoff, and honest route-outs when the job is really headless sync, raw filesystem writing, or richer plugin/API automation.

Read these support docs before unusual cases or when the request starts to sprawl:

When to use this skill

  • The user wants to enable or verify the official Obsidian CLI.
  • The job is to run obsidian one-shot commands or use the TUI against a running desktop app.
  • The workflow needs explicit vault or note targeting via vault=, file=, or path=.
  • The user wants daily-note, search, read, create, tags, tasks, diff, or command-palette workflows from the shell.
  • The user is developing an Obsidian plugin/theme and needs plugin:reload, devtools, dev:screenshot, eval, or command id=....
  • Another app, launcher, shortcut, browser, or agent loop needs official obsidian:// URI handoff or callback behavior.

When not to use this skill

  • The main job is headless Sync/Publish without the desktop app → route to Obsidian Headless, not this skill.
  • The main job is generic markdown file editing in a vault path → direct filesystem writes may be simpler and more truthful.
  • The main job needs richer external CRUD/frontmatter/workspace automation than first-party CLI/URI cover → use a plugin/API route such as Local REST API or Advanced URI instead of pretending the official CLI is enough.
  • The user wants a shell-native notes backend independent of Obsidian → an adjacent note CLI such as Joplin Terminal, nb, or zk is a better fit.

Instructions

Step 1: Classify the primary automation surface

Normalize the request before reaching for commands.

obsidian_automation_intake:
  primary_surface: cli-command | cli-tui | cli-developer | uri-handoff | headless-route-out | filesystem-route-out | plugin-api-route-out
  environment: desktop-local | launcher-shortcut | browser-callback | headless-server | unknown
  target_shape: vault-and-note | command-id | uri-action | sync-service | raw-markdown-write
  plugin_dependencies: none | daily-notes | unique-note-creator | plugin-command | unknown

Use one primary surface per run:

  • cli-command — one-shot terminal command against the running app
  • cli-tui — interactive obsidian shell with history/autocomplete
  • cli-developer — plugin/theme/dev commands or command-palette execution
  • uri-handoff — obsidian:// open/new/daily/search/hook callbacks from another app
  • headless-route-out — Sync/Publish without the desktop app
  • filesystem-route-out — direct markdown writes are more honest than app control
  • plugin-api-route-out — first-party CLI/URI are too narrow for the requested automation

Do not mix several primary surfaces into one answer.

Step 2: Verify the desktop runtime before using the CLI

Use references/installation-and-troubleshooting.md.

Minimum checks:

  • desktop Obsidian is installed
  • CLI is enabled in Settings -> General -> Command line interface
  • official docs currently require installer version 1.12.7+
  • the machine actually has desktop access; do not force this onto CI or headless servers

Quick local check:

bash scripts/install.sh

If the desktop app is absent or the task is explicitly no-GUI, switch immediately to headless-route-out or filesystem-route-out.

Step 3: Make targeting deterministic

Use references/vault-and-file-targeting.md.

Rules:

  • vault=<name> or vault=<id> must come before the command when targeting a non-default vault
  • prefer path=<exact/path.md> when duplicate note names are possible
  • use file=<name> only when wikilink-style resolution is acceptable
  • avoid relying on active vault / active file unless the task is explicitly interactive

Examples:

obsidian vault="My Vault" search query="meeting notes"
obsidian vault="My Vault" read path="Projects/Roadmap.md"
obsidian vault=Notes command id=editor:focus-top

Step 4: Choose the smallest truthful packet

Use references/intake-packets-and-route-outs.md.

Default selection:

  • CLI command packet for read/search/create/tasks/daily work where terminal output matters
  • TUI packet for interactive exploration and history
  • Developer packet for plugin reload, screenshots, eval, or command-palette execution
  • URI packet for launchers, shortcuts, browser callbacks, and app handoff
  • Route-out packet for headless sync, raw file writes, or plugin/API-level automation

Step 5: Use official CLI flows when the app itself is the runtime

Use references/commands-and-developer-tools.md.

Safe first commands:

obsidian help
obsidian version

Common one-shot flows:

obsidian daily
obsidian daily:append content="- [ ] Follow up"
obsidian search query="TODO"
obsidian read path="Inbox/Capture.md"
obsidian create name="Trip to Paris" template=Travel
obsidian tags counts
obsidian tasks daily
obsidian diff file=README from=1 to=3

Use --copy when another tool needs the result:

obsidian read path="Inbox/Capture.md" --copy
obsidian search query="launch checklist" --copy

Step 6: Treat developer commands as a separate mode

Developer commands are real supported use cases, but they are stateful.

obsidian devtools
obsidian plugin:reload id=my-plugin
obsidian dev:screenshot path=screenshot.png
obsidian eval code="app.vault.getFiles().length"
obsidian commands
obsidian command id=workspace:open-settings

Use this mode when the job is plugin/theme work, command discovery, or app-state inspection.

Step 7: Use official URI flows for handoff and callbacks

Use references/uri-and-callbacks.md.

Keep these official URI actions at the front door: open, new, daily, unique, search, choose-vault, hook-get-address.

Examples:

obsidian://open?vault=my%20vault&file=my%20note
obsidian://new?vault=my%20vault&name=my%20note
obsidian://daily?vault=my%20vault
obsidian://search?vault=my%20vault&query=Obsidian
obsidian://hook-get-address?x-success=myapp://x-callback-url

Rules:

  • percent-encode values correctly
  • path= overrides vault and file
  • paneType=window is desktop-only
  • daily requires the Daily notes plugin
  • unique requires the Unique note creator plugin
  • callback support is endpoint-specific; prefer it when another app must continue after Obsidian responds

Helper:

bash scripts/open-uri.sh 'obsidian://open?vault=my%20vault&file=my%20note'

Step 8: Route away when the request changed

Say the route-out explicitly:

  • Headless Sync/Publish without desktop app → Obsidian Headless
  • Write markdown to a vault on disk and stop → direct filesystem write
  • Need richer external CRUD/frontmatter/workspace control → plugin/API workflow such as Local REST API or Advanced URI
  • Need a shell-native note system, not Obsidian → Joplin Terminal, nb, or zk

The skill gets better by refusing the wrong jobs quickly, not by pretending every note workflow belongs here.

Output format

Use one compact packet:

  • Primary surface — CLI command, TUI, developer mode, URI handoff, or route-out
  • Runtime checks — desktop requirement, CLI enabled state, plugin prerequisites
  • Targeting — vault and note target, with determinism notes when needed
  • Recommended command or URI — the smallest truthful command/URI for the job
  • Important constraints — encoding, plugin dependency, desktop-only behavior, or statefulness
  • If this is actually a different job — explicit route-out and why

Examples

Example 1: Verify official CLI registration

Input: Obsidian CLI를 처음 쓰려는데 어떻게 켜고 확인해야 해?

  • use bash scripts/install.sh
  • mention Settings -> General -> Command line interface
  • keep the answer on official desktop CLI

Example 2: Deterministic vault/path targeting

Input: 특정 vault에서 검색하고 특정 노트를 읽고 싶어. file이랑 path는 뭐가 달라?

  • explain vault= must precede the command
  • contrast wikilink-style file= vs exact path=
  • prefer exact path= when ambiguity matters

Example 3: Developer loop

Input: 내가 개발 중인 Obsidian 플러그인을 CLI로 리로드하고 스크린샷도 찍고 싶어.

  • switch to developer mode
  • mention plugin:reload and dev:screenshot

Example 4: URI callback workflow

Input: 외부 앱에서 obsidian:// 링크로 노트 열고 새 노트 만들고 싶은데 callback도 가능해?

  • use official obsidian://open / obsidian://new
  • explain encoding and x-success / x-error

Example 5: No-desktop sync request

Input: 데스크톱 앱 없이 CLI만으로 sync하고 싶어.

  • explicitly route out to Obsidian Headless
  • state that Obsidian CLI controls the desktop app and is not the right tool here

Best practices

  1. Start by classifying CLI command vs URI handoff vs route-out, not by listing every command family.
  2. Prefer exact vault= + path= for agent-safe deterministic targeting.
  3. Use commands / command id=... when the real behavior comes from a plugin command.
  4. Use --copy or structured output formats when another tool needs the result.
  5. Treat plugin:reload, eval, dev:screenshot, and devtools as privileged developer operations.
  6. Keep URI answers strict about encoding, plugin prerequisites, and desktop-only callback details.
  7. Do not send headless/server jobs through this skill just because the phrase “Obsidian CLI” appeared.
  8. Re-check installation guidance against current official docs when OS-specific registration behavior changes.

References

平台分布

Codex

39.59%
按下载量换算209

Claude

27.68%
按下载量换算146

Cursor

18.26%
按下载量换算96

Gemini CLI

10.41%
按下载量换算55

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills