obsidian
Skill này làm gì
Skill này cho phép agent làm việc với thư mục ghi chú Obsidian qua công cụ dòng lệnh chính thức. Dành cho người giữ ghi chú và liên kết trong Obsidian.
Khi nào nên dùng
- ✓Khi bạn muốn tìm hoặc đọc ghi chú trong kho Obsidian của mình.
- ✓Khi bạn muốn xem backlink hoặc dàn ý của một ghi chú.
- ✓Khi bạn muốn agent viết hoặc cập nhật ghi chú trong kho của mình.
Liên kết skill
https://github.com/steipete/agent-scripts/blob/main/skills/obsidian/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tìm tất cả ghi chú của tôi nhắc đến kế hoạch marketing và liệt kê các liên kết trỏ đến mỗi ghi chú.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy công cụ dòng lệnh Obsidian từ thư mục kho để tìm, đọc và liệt kê liên kết. Nó kiểm tra dòng lệnh đã được bật trong Obsidian trước khi dựa vào nó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Obsidian
Use this for local Obsidian vault work. An Obsidian vault is a normal folder of Markdown files plus .obsidian/ config.
Sources
- App config:
~/Library/Application Support/obsidian/obsidian.json - Default vault name:
obsidian - Usual local vault path:
~/obsidian - Official CLI:
obsidian - Vault commands resolve the vault from cwd; run them from
~/obsidian.
First Checks
command -v obsidian
obsidian version
obsidian vaults
cd ~/obsidian
obsidian commands filter=search:
Global commands like version and vaults work outside a vault. Vault-content
commands may print Vault not found. outside ~/obsidian. Use obsidian commands, not obsidian help, for CLI discovery.
If obsidian says CLI is disabled:
- Prefer asking the user to enable Settings -> General -> Advanced -> Command line interface.
- If you already confirmed the app config shape,
~/Library/Application Support/obsidian/obsidian.jsonuses"cli": true. - Restart Obsidian after changing app-level CLI config.
Read Workflow
Prefer official CLI for Obsidian-aware lookups:
cd ~/obsidian
obsidian search query="OpenClaw" format=json
obsidian search:context query="OpenClaw" limit=20 format=json
obsidian read path="Folder/Note.md"
obsidian file path="Folder/Note.md"
obsidian outline path="Folder/Note.md" format=json
obsidian backlinks path="Folder/Note.md" format=json
obsidian links path="Folder/Note.md"
obsidian properties path="Folder/Note.md" format=json
Use direct filesystem reads when you already know the path and need exact bytes:
sed -n '1,220p' "$HOME/obsidian/Folder/Note.md"
rg -n "term" "$HOME/obsidian"
Report which source you used when freshness or vault choice matters.
Write Workflow
Choose the narrowest write path:
- New note:
obsidian create path="Folder/Note.md" content="...". - Append/prepend daily notes:
obsidian daily:append content="...". - Simple note edits: use
apply_patchon the Markdown file. - Rename/move notes: prefer
obsidian move path="Old.md" to="Folder/New.md"so links can update. - Opening UI after a write: add
openonly when useful or requested.
Common commands:
cd ~/obsidian
obsidian create path="Notes/New.md" content="# New\n\nBody"
obsidian append path="Notes/New.md" content="More text"
obsidian move path="Notes/New.md" to="Archive/New.md"
obsidian daily:path
obsidian daily:read
obsidian daily:append content="- Follow-up item"
For multi-line content, prefer editing the .md file with apply_patch once the path is known. Avoid fragile shell quoting for long prose.
Bases, Canvas, Plugins
Use CLI discovery first:
cd ~/obsidian
obsidian bases
obsidian base:views path="Projects.base"
obsidian base:query path="Projects.base" view="Active" format=json
obsidian plugins format=json
obsidian plugins:enabled format=json
obsidian commands filter=workspace:
For .canvas, .base, and .json files, read/edit as structured data when possible. Keep formatting stable and validate JSON after edits.
Safety
- Do not bulk rewrite the vault. Use targeted paths and review diffs.
- Do not edit
.obsidian/unless the user asks or the task is explicitly settings/plugin work. - Do not delete notes unless explicitly asked; prefer trash over permanent delete.
- Do not create hidden dot-folder notes through the Obsidian URI/CLI path.
- Preserve frontmatter and wikilinks unless the task is to refactor them.
- If multiple vaults exist, do not guess; use
obsidian vaultsandobsidian.json.
Câu hỏi thường gặp
Kho (vault) là gì?
Một thư mục file Markdown thông thường cộng với một thư mục ẩn chứa cài đặt của Obsidian.
Tôi có cần bật dòng lệnh Obsidian không?
Có. Skill nói nó phải được bật trong cài đặt nâng cao của Obsidian.
Agent chạy lệnh ở đâu?
Từ bên trong thư mục kho, vì các lệnh của kho đọc kho từ thư mục hiện tại.
Chi tiết
Mô tả gốc của tác giả
Obsidian vault: search/read/write notes, backlinks, Bases, Canvas.
repo: steipete/agent-scripts
Độ phổ biến
- Sao GitHub
- 7.4k
- Vị trí xếp hạng
- #13239
- Giấy phép
- MIT
- Cập nhật
- 30/10/2026
Bình luận
- …
Thêm skill từ kho mã này
beeper
7.4kGiúp agent của bạn tìm trong lịch sử chat Beeper cục bộ để tìm tin nhắn và xác định chat hoặc liên hệ nào mà một gợi ý mơ hồ đang nhắc đến.
cloudflare-registrar
7.4kGiúp agent của bạn kiểm tra giá và tình trạng khả dụng của tên miền trên Cloudflare Registrar, và đăng ký hoặc liệt kê tên miền với bước xác nhận.
codexbar
7.4kGiúp agent của bạn kiểm tra còn bao nhiêu hạn mức sử dụng các dịch vụ AI như Codex, Claude và Kimi, gồm giới hạn, tín dụng và thời gian đặt lại.
create-cli
7.4kGiúp agent của bạn thiết kế lệnh, cờ, văn bản trợ giúp, đầu ra và lỗi của một công cụ dòng lệnh, để nó hoạt động tốt cho cả người lẫn script.
Skill tương tự
knowledge-capture
394kDạy agent của bạn lưu các quyết định, sở thích và sự kiện quan trọng vào kho Knowledge dưới dạng ghi chú ngắn có ghi nguồn.
knowledge-claim-consolidation
394kGiúp agent của bạn dọn gọn kho Knowledge bằng cách gộp các khẳng định trùng lặp, chuyển chúng đến đúng trang chủ đề và loại bỏ những cái lỗi thời.
knowledge-correct
394kCho phép agent của bạn sửa hoặc rút lại một khẳng định hoặc trang Knowledge cụ thể theo yêu cầu của bạn, và giữ nhật ký những gì đã thay đổi.