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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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_fileswithtarget: "files"and a filenamepattern. - For note contents, use
search_fileswithtarget: "content", the content regex aspattern, andfile_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
patchfor 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_filewhen 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 吗?
不需要。技能直接处理文件,因此不需要打开任何应用。
可以按内容搜索吗?
可以。技能涵盖搜索笔记文件和列出笔记。
详情
热度
- GitHub 星标
- 260k
- 排名
- #605
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。