复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-obsidian-89468272b6b6 ,按照其中的说明把「obsidian」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill for filesystem-first Obsidian vault work: reading notes, listing notes, searching note files, creating notes, appending content, and adding wikilinks.
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.
Use read_file with the resolved absolute path to the note. Prefer this over cat because it provides line numbers and pagination.
Use search_files with target: "files" and the resolved vault path. Prefer this over find or ls.
pattern: "*.md" under the vault path.Use search_files for both filename and content searches. Prefer this over grep, find, or ls.
search_files with target: "files" and a filename pattern.search_files with target: "content", the content regex as pattern, and file_glob: "*.md" when you want to restrict matches to markdown notes.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.
Prefer a native file-tool workflow when it is not awkward:
read_file.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.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.
Use patch for focused note changes when the current content gives you stable context. Prefer this over shell text rewriting.
Obsidian links notes with [[Note Name]] syntax. When creating notes, use these to link related content.