obsidian-bases
Skill này làm gì
Obsidian Bases hiển thị ghi chú dưới dạng bảng, thẻ hoặc danh sách, dùng bộ lọc và công thức. Skill này giúp soạn và kiểm tra các chế độ xem đó cho người theo dõi công việc hoặc danh sách đọc trong Obsidian.
Khi nào nên dùng
- ✓Khi bạn muốn một bảng ghi chú được lọc theo thuộc tính trong Obsidian.
- ✓Khi bạn muốn một trình theo dõi công việc hoặc danh sách đọc được xây dựng từ ghi chú của mình.
- ✓Khi bạn cần thêm một công thức hoặc tổng kết vào một chế độ xem Bases.
Liên kết skill
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/obsidian-bases/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ạo cho tôi một chế độ xem danh sách đọc trong Obsidian, hiển thị các cuốn sách tôi chưa đọc xong, sắp xếp theo ngày.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra cách ghi chú của bạn lưu các thuộc tính, viết bộ lọc và các công thức cần thiết, rồi kiểm tra file xem có lỗi không trước khi lưu. Nó dùng cú pháp Obsidian hiện hành.
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 Bases
Use this as a compact workflow and fallback syntax reference. Prefer a
separately installed kepano/obsidian-skills obsidian-bases skill, then the
current official Bases syntax, for
detailed or version-sensitive fields and functions.
Answer design and syntax questions read-only. For a requested .base edit,
resolve the user vault and use one inspected transaction; never write the file
directly.
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
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"
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.
Workflow
Inspect representative note properties and any existing
.basefile.Define the smallest filter that selects the intended notes.
Add formulas only for values that must be computed.
Choose views and display order. Do not assume a view type or option is supported by the user's Obsidian version or installed plugins.
Validate YAML, expression quoting, property names, formula references, and null handling.
Preview the complete file and expected result set before a mutation.
If an edit was requested, read operation-transactions.md, keep the
.basefile underwiki/, and build oneclaude-obsidian.transaction.v1bundle withoperation_type: base. Inspect it, then setAPPROVAL_SHA256to the returnedapproval_sha256only after review and apply once:python3 "$CORE" transaction inspect "$BUNDLE" --vault "$VAULT" python3 "$CORE" transaction apply "$BUNDLE" --vault "$VAULT" \ --approved-plan-sha256 "$APPROVAL_SHA256"Record static validation separately from native Obsidian rendering. Follow the conformance procedure when application behavior cannot be verified locally. Never label unobserved output as tested.
Version boundary
Checked 2026-10-17 against official view documentation. Table and cards require 1.9+, list requires 1.10+, and native kanban requires 1.14+. Map requires the Maps plugin. These are documented minimum versions, not versions exercised by this package's offline tests. On an older app, keep an ordinary table fallback. Preserve unknown existing view fields.
Compact schema
.base files are YAML. Common top-level keys are filters, formulas,
properties, summaries, and views.
filters:
and:
- file.inFolder("wiki")
- 'status != "archived"'
formulas:
status_label: 'if(status == "mature", "Ready", "Review")'
properties:
status:
displayName: "Status"
views:
- type: table
name: "Wiki pages"
order:
- file.name
- type
- status
- updated
- formula.status_label
Global filters apply to every view. A view may also define its own filters.
Recursive filter objects use one of and, or, or not at each level.
filters:
or:
- file.hasTag("concept")
- and:
- file.hasTag("source")
- 'status == "active"'
Use note properties by name, file metadata as file.name, file.path,
file.folder, file.ext, file.ctime, file.mtime, or file.tags, and
computed properties as formula.<name>.
Formula and YAML rules
- Quote expressions that contain operators, colons, or nested string quotes.
- Guard nullable properties with
if(). - Date subtraction has conflicting current source descriptions. Treat the examples in the date section below as unverified compatibility candidates, and test the user's supported app versions before relying on the output.
- Define every
formula.<name>before referencing it in a view or property display configuration. - Do not transplant Dataview-only keys such as
fromorwhereinto a Base. - Do not invent properties absent from the selected notes without explaining that the resulting column will be empty.
Date arithmetic needs native evidence
The Help syntax checked 2026-10-17 still describes date differences in milliseconds. The official [1.9.3 changelog](https://obsidian.md/changelog/2025-06-26-deskt
Câu hỏi thường gặp
Tôi có cần biết cú pháp công thức không?
Không. Agent viết bộ lọc và công thức, rồi giải thích kết quả bằng lời đơn giản.
Mọi loại chế độ xem có chạy được trong Obsidian của tôi không?
Không nhất thiết. Skill cảnh báo một số chế độ xem phụ thuộc vào phiên bản Obsidian hoặc plugin, nên nó kiểm tra trước.
Nó có thay đổi ghi chú của tôi không?
Nó chỉ sửa file chế độ xem, và làm việc đó qua một bước được rà soát thay vì ghi trực tiếp.
Chi tiết
Mô tả gốc của tác giả
Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, list, or version-gated kanban views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10807
- 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-markdown
16kGiải thích định dạng Markdown mở rộng của Obsidian, như liên kết, nhúng, callout và thuộc tính, và giúp soạn các ghi chú dùng chúng.
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.