跳到正文
Skillpedia
写作260k · #605

obsidian

它能做什么

这项技能让你的 AI 直接处理 Obsidian 库中的 Markdown 文件。适合在 Obsidian 中保存笔记,并希望 AI 帮忙撰写和整理的人。

适用场景

  • ✓你让 AI 在 Obsidian 库中查找或阅读某条笔记的时候。
  • ✓你想创建新笔记,或在现有笔记中添加文字的时候。
  • ✓你想在库中的笔记之间添加链接的时候。

技能链接

https://github.com/NousResearch/hermes-agent/blob/main/skills/note-taking/obsidian/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请找到我关于营销计划的 Obsidian 笔记,并在第四季度目标笔记中添加一个指向它们的链接。”

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

工作原理

这项技能把库当作一个文件夹来处理。它使用你设置的 OBSIDIAN_VAULT_PATH,若未设置则使用默认文件夹,并以普通 Markdown 文件的形式读取、搜索、创建和编辑笔记。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Obsidian Vault

Use this skill for filesystem-first Obsidian vault work: reading notes, listing notes, searching note files, creating notes, appending content, and adding wikilinks.

Vault path

Use a known or resolved vault path before calling file tools.

The documented vault-path convention is the OBSIDIAN_VAULT_PATH environment variable, for example from ${HERMES_HOME:-~/.hermes}/.env. If it is unset, use ~/Documents/Obsidian Vault.

File tools do not expand shell variables. Do not pass paths containing $OBSIDIAN_VAULT_PATH to read_file, write_file, patch, or search_files; resolve the vault path first and pass a concrete absolute path. Vault paths may contain spaces, which is another reason to prefer file tools over shell commands.

If the vault path is unknown, terminal is acceptable for resolving OBSIDIAN_VAULT_PATH or checking whether the fallback path exists. Once the path is known, switch back to file tools.

Read a note

Use read_file with the resolved absolute path to the note. Prefer this over cat because it provides line numbers and pagination.

List notes

Use search_files with target: "files" and the resolved vault path. Prefer this over find or ls.

  • To list all markdown notes, use pattern: "*.md" under the vault path.
  • To list a subfolder, search under that subfolder's absolute path.

Search

Use search_files for both filename and content searches. Prefer this over grep, find, or ls.

  • For filenames, use search_files with target: "files" and a filename pattern.
  • For note contents, use search_files with target: "content", the content regex as pattern, and file_glob: "*.md" when you want to restrict matches to markdown notes.

Create a note

Use write_file with the resolved absolute path and the full markdown content. Prefer this over shell heredocs or echo because it avoids shell quoting issues and returns structured results.

Append to a note

Prefer a native file-tool workflow when it is not awkward:

  • Read the target note with read_file.
  • Use patch for an anchored append when there is stable context, such as adding a section after an existing heading or appending before a known trailing block.
  • Use write_file when rewriting the whole note is clearer than constructing a fragile patch.

For an anchored append with patch, replace the anchor with the anchor plus the new content.

For a simple append with no stable context, terminal is acceptable if it is the clearest safe option.

Targeted edits

Use patch for focused note changes when the current content gives you stable context. Prefer this over shell text rewriting.

Wikilinks

Obsidian links notes with [[Note Name]] syntax. When creating notes, use these to link related content.

常见问题

我的库在哪里?

技能使用 OBSIDIAN_VAULT_PATH 设置;如果未设置,则使用“文档”中名为 Obsidian Vault 的文件夹。

需要运行 Obsidian 吗?

不需要。技能直接处理文件,因此不需要打开任何应用。

可以按内容搜索吗?

可以。技能涵盖搜索笔记文件和列出笔记。

详情

作者的原始描述

Read, search, create, and edit notes in the Obsidian vault.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#605
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能