Token导航 LogoToken导航

Agent Skill · 研究检索

obsidian(Obsidian 知识库)

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

obsidian 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 9,770。

总安装 13,623周安装 562GitHub Stars 1,183下载 4,451核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bitbonsai/mcpvault --skill obsidian

这个 Skill 是做什么的

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

obsidian 支持 Obsidian 知识库的读写、标签管理与元数据维护。默认使用 MCP 后端处理笔记操作,CLI 仅用于 git 同步与备份等运维任务。当请求涉及 frontmatter 更新或多笔记批量处理时优先选择 MCP 通道。若需打开文件或触发插件,则切换至 App/CLI 上下文执行特定动作。

obsidian 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/obsidian

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

obsidian 怎么安装?

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

obsidian 支持哪些 AI 工具?

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

obsidian 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/bitbonsai/mcpvault --skill obsidian 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

obsidian 是免费的吗?

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

obsidian 用的人多吗?

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

obsidian 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 1,183 星,维护活跃度相对可查。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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

Obsidian 知识库 · 本页

13,6231,183执行命令未明确通过

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

SKILL.md 原文

Obsidian Skill

Routing Policy

Use the backend that best matches user intent:

  1. MCP (default for vault data operations)

- Read/write/patch/move/search notes - Frontmatter and tag updates - Metadata and batch note operations

  1. Obsidian CLI/App context (only when app context is needed)

- Open a note in Obsidian from URI - Trigger app/plugin workflows that MCP cannot perform

  1. CLI git (sync/backup workflows)

- Initialize repo, configure remote, commit, pull, push - Periodic or manual vault backup/sync requests

When a request is ambiguous, pick MCP first unless the user explicitly asks for sync/backup/git/app behavior.

Gotchas

  1. patch_note rejects multi-match by default. With replaceAll: false, if oldString appears more than once the call fails and returns matchCount. Set replaceAll: true only when you mean it, or add surrounding context to make the match unique.
  2. patch_note matches inside frontmatter. The replacement runs against the full file including the YAML block. A generic string like title: will match frontmatter fields. Include enough context to target the right occurrence.
  3. patch_note forbids empty strings. Both oldString and newString must be non-empty and non-whitespace. To delete text, use newString with a single space or restructure the note with write_note.
  4. search_notes returns minified JSON. Fields are abbreviated: p (path), t (title), ex (excerpt), mc (matchCount), ln (lineNumber), uri (obsidianUri). Hard cap of 20 results regardless of limit.
  5. search_notes multi-word queries score terms individually AND as a phrase. Each term is OR-matched, so a document matching any term appears in results. The full phrase gets an additional scoring boost.
  6. write_note auto-creates directories. Parent folders are created recursively. In append/prepend mode, if the note doesn't exist it's created. Frontmatter is merged (new keys override) in append/prepend; replaced entirely in overwrite.
  7. delete_note requires exact path confirmation. confirmPath must be character-identical to path. No normalization, no trailing-slash tolerance. Mismatch silently fails with success: false.
  8. move_file needs double confirmation. Both confirmOldPath and confirmNewPath must exactly match their counterparts. Use move_note for markdown renames (text-aware, no confirmation needed); use move_file only for binary files or when you need binary-safe moves.
  9. manage_tags reads from two sources but writes to one. list merges frontmatter tags + inline #hashtags. add/remove only modify the frontmatter tags array. Inline tags are never touched.
  10. read_multiple_notes never rejects. Uses allSettled internally. Failed files appear in the err array; successful ones in ok. Always check both. Hard limit of 10 paths per call.

Error Recovery

ErrorNext step
patch_note "Found N occurrences"Add surrounding lines to oldString to make it unique, or set replaceAll: true
delete_note / move_file confirmation mismatchRe-read the note path with read_note or list_directory, then retry with the exact string
search_notes returns 0 resultsTry single keywords instead of phrases, toggle searchFrontmatter, or broaden with partial terms
read_multiple_notes partial errVerify failed paths with list_directory, fix typos or missing extensions, retry only failed ones

Git Sync Mode

When the user asks to "sync", "backup", or "store my vault with git", use CLI git with this behavior:

  1. Run a preflight before changing anything:

- git available - current directory is a git repo (or prompt to initialize) - git config user.name and git config user.email are set - at least one remote exists for push/pull sync

  1. If preflight is incomplete, ask exactly one targeted question with a recommended default.

- Use askuserquestion for decisions that materially change behavior. - Good examples: - "No git repo found. Initialize one in this vault now? (Recommended: Yes)" - "No remote configured. Set up GitHub remote now via gh if available, or provide remote URL? (Recommended: Set up via gh)" - "Local and remote diverged. Try git pull --rebase now? (Recommended: Yes)"

  1. Safe sync sequence (never force push by default):

- git add -A - git commit -m "vault sync: YYYY-MM-DD HH:mm" (skip commit if no changes) - git pull --rebase - git push

  1. gh is optional:

- Use gh only for remote bootstrapping (create repo / set origin) when requested. - Do not require gh for normal sync once remote is configured.

  1. Stop on conflicts and report clear next steps.

- Do not auto-resolve merge conflicts silently. - Explain what failed and what user should run next.

Obsidian CLI Mode

When the user asks for app-context operations (active file, open in editor, daily notes with templates, backlinks), use the Obsidian CLI directly via shell commands.

  1. Run a preflight before first CLI use:

- Resolve the CLI binary using the first match from these candidates: Priority macOS Linux Windows 1 obsidian (PATH) obsidian (PATH) obsidian.exe or Obsidian.com (PATH) 2 /Applications/Obsidian.app/Contents/MacOS/obsidian-cli — — 3 /Applications/Obsidian.app/Contents/MacOS/Obsidian — — Obsidian 1.12.7+ installer bundles a dedicated obsidian-cli binary (~10x faster than the legacy Electron-based CLI: ~25ms vs ~250ms per call). On macOS, after installing the 1.12.7+ installer, disable then re-enable the CLI in Settings > General > Advanced to update PATH registration. This replaces the old ~/.zprofile PATH entry with a /usr/local/bin/obsidian symlink pointing to obsidian-cli. On Linux, PATH registration creates a symlink at /usr/local/bin/obsidian (or ~/.local/bin/obsidian as fallback). On Windows, the installer places an Obsidian.com terminal redirector alongside Obsidian.exe. Note: The priority table and stale PATH check are verified on macOS only. Linux and Windows may also bundle obsidian-cli with the 1.12.7+ installer, but this has not been confirmed. Contributions welcome via issue or PR. - Stale PATH check (macOS): If priority 1 resolved obsidian on PATH, check whether it points to the fast binary or the slow Electron launcher: Resolved path Meaning Action /usr/local/bin/obsidian → obsidian-cli 1.12.7 symlink registration None — fast binary /Applications/.../MacOS/obsidian Old ~/.zprofile entry (pre-1.12.7 registration or 1.12.7 installer without re-registering) Check if obsidian-cli exists in the bundle If obsidian resolves to the MacOS directory (not /usr/local/bin) AND /Applications/Obsidian.app/Contents/MacOS/obsidian-cli exists, tell the user: *"Obsidian 1.12.7+ is installed but PATH still points to the slower Electron binary. In Obsidian, go to Settings > General > Advanced and disable then re-enable the CLI to update PATH registration."* Continue with whichever priority matched — this is advisory, not blocking. - Check Obsidian is running: pgrep -xiq obsidian (macOS/Linux) or tasklist /FI "IMAGENAME eq Obsidian.exe" /NH (Windows) - If either fails, tell the user and fall back to MCP tools + obsidian:// URIs

  1. Vault targeting: obsidian vault="VaultName" <command>. The vault name is the folder basename unless OBSIDIAN_VAULT_NAME is set.
  2. Key commands: # Read the currently active file obsidian read # Read a specific file obsidian read file="My Note" # Open a file in Obsidian obsidian open path="Notes/example.md" # Open today's daily note obsidian daily # Append to daily note obsidian daily:append content="- [] New task" # Search (Obsidian's own search, different from MCP's BM25) obsidian search query="meeting notes" limit=10 # List all tags with frequency obsidian tags sort=count counts # Get backlinks for a note obsidian backlinks file="My Note" # Find unresolved links obsidian unresolved
  3. Run obsidian help for the full command reference. The CLI evolves with Obsidian releases.
  4. When to use CLI vs MCP:

- MCP for reads/writes/search/tags/frontmatter (sandboxed, validated, works headless) - CLI for active file, daily notes with template expansion, backlinks, open in editor, plugin commands - If unsure, prefer MCP

Resources

Load these only when needed, not on every invocation.

  • Tool Patterns - read when you need a tool's response shape, mode details, or the move_note vs move_file decision
  • Obsidian Conventions - read when creating/writing note content (link syntax, frontmatter fields, daily note format, template variables)
  • Git Sync - read when user asks for backup/sync/store-vault workflows with git/gh

平台分布

Codex

35.23%
按下载量换算1,568

Claude

28.21%
按下载量换算1,256

Cursor

20.21%
按下载量换算900

Gemini CLI

10.28%
按下载量换算458

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/bitbonsai/mcpvault --skill obsidian 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills