跳到正文
Skillpedia
写作12k · #11571

obsidian

它能做什么

该技能让智能体使用 Obsidian 官方命令行工具处理 Obsidian 仓库中的笔记。适用于把笔记保存在 Obsidian 中的人。

适用场景

  • ✓当你希望智能体在 Obsidian 笔记中搜索某个主题或短语时。
  • ✓当你希望在仓库中创建新笔记,或编辑已有笔记时。
  • ✓当你希望智能体审查或更新笔记中的任务、链接或属性时。

技能链接

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/obsidian/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/obsidian/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在我的 Obsidian 仓库中搜索关于第三季度预算的笔记,并为我做一个总结。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用 Obsidian 命令行工具(它会连接到正在运行的桌面应用)来读取和修改笔记。如果你有多个仓库,它会请你选择使用哪一个。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Obsidian

Use the official obsidian CLI for Obsidian-aware vault operations. Vault notes are Markdown, so direct file reads and edits are appropriate when the exact vault path is known and the change does not require Obsidian to update links or metadata.

Prerequisites

  • Obsidian 1.12.7 or newer is installed.
  • Settings > General > Command line interface is enabled.
  • obsidian is registered on PATH.
  • Obsidian is running; the CLI connects to the desktop application.

Check without changing the vault:

obsidian version
obsidian help

If the CLI is absent, explain how to enable the official CLI in Obsidian. Do not silently install a third-party obsidian-cli package.

Vault selection

Multiple vaults are common. Use vault="<name>" when the target is ambiguous, and ask the user to choose rather than guessing. Prefer path="Folder/Note.md" for exact vault-relative resolution; file=<name> uses Obsidian's name-based resolution.

Do not edit .obsidian/ configuration unless the user explicitly requested a settings or plugin change. Avoid reading or exposing unrelated notes from a private vault.

Command pattern

obsidian <command> [name=value] [flag]
obsidian vault="Notes" search query="meeting notes" format=json

Quote parameter values containing spaces. Prefer structured output such as format=json when available.

Open and read

obsidian open file=Recipe
obsidian open path="Inbox/Idea.md" newtab
obsidian read
obsidian read file=Recipe

Search

obsidian search query="TODO" matches
obsidian search query="status::active" format=json
obsidian search:open query="project notes"

Create and modify

obsidian create name="New Note"
obsidian create path="Inbox/Idea.md" content="# Idea"
obsidian append file=Note content="New line"
obsidian prepend file=Note content="After frontmatter"

Create and modify notes only when requested. For multiline or user-provided content, avoid fragile shell interpolation; use a safe file-based workflow or the agent's file tools after resolving the exact vault path.

Move and delete

obsidian move file=Note to=Archive/
obsidian move path="Inbox/Old.md" to="Projects/New.md"
obsidian delete file=Note

Prefer Obsidian's move command so links can be maintained. Verify the exact source and destination. Confirm immediately before deletion if the target was not already explicit in the user's request.

Daily notes and tasks

obsidian daily
obsidian daily:read
obsidian daily:append content="- [ ] Review inbox"
obsidian tasks all todo
obsidian task file=Note line=8 done

Completing a task changes a note. Resolve the file and task line before applying it.

Properties and links

obsidian tags all counts
obsidian property:read file=Note name=status
obsidian property:set file=Note name=status value=done
obsidian backlinks file=Note
obsidian unresolved verbose counts

Plugin and developer commands

obsidian plugin:reload my-plugin
obsidian dev:errors
obsidian dev:screenshot file=shot.png
obsidian eval "app.vault.getFiles().length"

Plugin reloads and eval can change or inspect broad application state. Use them only for an explicit plugin-development or diagnostic task. Do not run arbitrary user-supplied JavaScript through obsidian eval without reviewing its effects.

File model

  • Notes are *.md files.
  • Canvases are *.canvas JSON files.
  • Attachments live in the vault's configured attachment folder.
  • .obsidian/ stores vault configuration.

Use direct Markdown edits for bounded bulk text changes after locating the correct vault. Use CLI move, delete, property, and task operations when Obsidian-aware behavior matters.

常见问题

Obsidian 需要处于打开状态吗?

需要。命令行工具会连接到正在运行的 Obsidian 桌面应用,因此应用必须是打开的。

它会更改我的应用设置或插件吗?

除非你特别要求,否则不会。该技能默认避开设置文件夹。

如果我有多个仓库怎么办?

智能体会请你选择一个,而不是猜测。

详情

作者的原始描述

Read, search, create, edit, organize, and inspect Obsidian vault notes, tasks, links, properties, and plugins with the official CLI.

repo: EKKOLearnAI/ekko-studio

热度

GitHub 星标
12k
排名
#11571
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能