wiki-cli
Skill này làm gì
Skill này tìm ra cách agent của bạn có thể đọc một kho Obsidian, rồi tìm kiếm hoặc đọc nó. Skill dành cho người giữ ghi chú trong Obsidian và muốn tra cứu nhanh, chỉ đọc.
Khi nào nên dùng
- ✓Khi bạn muốn tìm kiếm hoặc đọc ghi chú trong kho Obsidian từ dòng lệnh.
- ✓Khi bạn muốn tìm các backlink hoặc thẻ trong kho.
- ✓Khi bạn cần kiểm tra agent có thể truy cập kho của bạn như thế nào trước khi đọc bất cứ thứ gì.
Liên kết skill
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/wiki-cli/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
“Hãy tìm trong kho Obsidian của tôi mọi thứ tôi đã viết về ngân sách, và liệt kê các ghi chú có liên kết đến chúng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một kiểm tra nhanh để xem công cụ dòng lệnh Obsidian có dùng được không, vì cài đặt xong chưa đủ. Nếu nó không dùng được, agent đọc trực tiếp các file trong kho.
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 CLI read transport
Use this skill only to detect transport and read or search a selected vault.
The official executable is obsidian; binary presence alone does not prove it
is usable.
Resolve the installed product root from this skill's own location, not from the vault or current working directory:
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
DETECT_TRANSPORT="$PRODUCT_ROOT/scripts/detect-transport.sh"
test -f "$DETECT_TRANSPORT"
Every ../wiki/references/ link in this file resolves the same way, relative
to this skill's own directory under $PRODUCT_ROOT, never relative to the
selected vault's wiki/ directory.
Detect safely
Probe without persisting host state:
bash "$DETECT_TRANSPORT" --peek --vault "$VAULT"
Trust available.cli.usable, not merely present or exit status. A supported
CLI can still be unavailable because the Obsidian app is not running, command
line access is disabled, or its response is an error. Use filesystem reads as
the portable fallback.
Persist a refreshed .vault-meta/transport.json only when the user or setup
workflow asks for a transport snapshot:
bash "$DETECT_TRANSPORT" --force --vault "$VAULT"
That file is derived runtime configuration, not knowledge content. Preserve a
valid manual_override recorded by the detector.
Read and search
Run official CLI commands from the selected vault so Obsidian resolves the correct workspace. Confirm supported syntax with the installed CLI before relying on optional commands. Typical read-only forms are:
(cd "$VAULT" && obsidian read path="$NOTE")
(cd "$VAULT" && obsidian search query="$QUERY")
Use read-only commands for backlinks, tags, or Bases results only when the
detector reports the CLI ready. Otherwise read files under $VAULT directly
and use rg for search. Reject absolute note arguments, traversal, symlinks, or
resolved paths outside the selected vault.
Mutation boundary
Do not use CLI create, write, append, property-set, daily-append, move, rename, or delete commands. Do not replace those commands with direct filesystem writes. Any knowledge or configuration change must be expressed as one reviewed transaction through the portable core; see operation transactions.
Transport choice never changes mutation semantics. The CLI is an optional read surface, not a lock manager, transaction engine, or Git checkpoint mechanism.
Checkpoint
Observe actual capability, think about the least complex read transport, verify that every resolved path stays in the vault, and accept filesystem fallback when the CLI is not ready.
Câu hỏi thường gặp
Nó có thay đổi ghi chú của tôi không?
Không. Skill chỉ dùng để tìm kiếm và đọc. Các chỉnh sửa đi qua một quy trình riêng có rà soát.
Vì sao cần kiểm tra?
Một lệnh có thể đã được cài nhưng vẫn không chạy được, ví dụ khi ứng dụng Obsidian đang đóng, nên skill kiểm tra trước.
Phương án dự phòng là gì?
Nếu công cụ dòng lệnh không dùng được, agent đọc trực tiếp các file trong kho.
Chi tiết
Mô tả gốc của tác giả
Detect and use the official Obsidian command-line interface for read-only vault access; use for wiki-cli, Obsidian CLI, Obsidian read, Obsidian search, vault transport, which transport, transport detection, backlinks, tags, or Obsidian command line. Mutations always go through the claude-obsidian transaction core.
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10811
- Giấy phép
- MIT
- Cập nhật
- 25/10/2026
Bình luận
- …
Thêm skill từ kho mã này
autoresearch
16kCho phép agent của bạn nghiên cứu một chủ đề trong giới hạn đã đặt và soạn báo cáo có trích dẫn. Kết quả web chỉ là bằng chứng, không tự vào ghi chú.
canvas
16kGiúp agent của bạn tạo và cập nhật bảng canvas trong Obsidian để chứa ghi chú, file, liên kết và nhóm. Hữu ích cho bản đồ và bố cục không gian.
defuddle
16kGiúp agent của bạn lên kế hoạch làm sạch một trang web thành văn bản dễ đọc và giữ bản sao cục bộ của các file nguồn. Làm sạch qua mạng chưa khả dụng.
obsidian-bases
16kGiúp agent của bạn thiết kế các chế độ xem Obsidian Bases hoạt động như cơ sở dữ liệu đơn giản, với bộ lọc, công thức và bố cục bảng hoặc thẻ.
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.