obsidian – skill Khác cho agent AI
Đọc, tìm kiếm, tạo và chỉnh sửa ghi chú trong vault Obsidian.
Cài skill obsidian bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/obsidian-ba5c9.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /obsidian – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/obsidian-ba5c9.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $obsidian – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/obsidian-ba5c9.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /obsidian – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/obsidian-ba5c9.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /obsidian – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
Skill liên quan
- busabase – Dùng khi quản lý bản ghi, kiến thức, ứng dụng hoặc skill của workspace Busabase thông…
- one-three-one-rule – Bản tóm tắt quyết định 1-3-1: vấn đề, ba phương án, một lựa chọn.
- busybox-on-windows – Cách dùng bản build Win32 của BusyBox để chạy nhiều công cụ dòng lệnh UNIX chuẩn trên…
- c4-container – Chuyên gia tài liệu C4 cấp độ Container.
- c4-context – Chuyên gia tài liệu C4 cấp độ Context. Tạo sơ đồ ngữ cảnh hệ thống cấp cao, tài liệu hóa…
- candidate-talent-pool – Nhóm ứng viên và người tiềm năng: thông tin liên hệ, kinh nghiệm, kỹ năng, trạng thái và…
- canonical-tag-checker – Kiểm tra thẻ canonical. Dùng khi làm việc với HTML và URL trang, hoặc URL trang có thể…
- canonical-url-builder – Tạo URL canonical. Dùng khi làm việc với URL ưu tiên của trang và các biến thể URL trùng…