obsidian-bases
它能做什么
Obsidian Bases 使用筛选和公式,将笔记以表格、卡片或列表的形式呈现。这个技能帮助人们起草和检查这些视图,适合在 Obsidian 中跟踪任务或阅读清单的人。
适用场景
- ✓当你想在 Obsidian 中按笔记属性筛选出一张笔记表格时。
- ✓当你想根据笔记建立任务跟踪器或阅读清单时。
- ✓当你需要为 Bases 视图添加公式或摘要时。
技能链接
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/obsidian-bases/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在 Obsidian 中为我做一个阅读清单视图,显示我还没读完的书,并按日期排序。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查你的笔记如何存储属性,编写筛选条件和所需公式,并在保存前检查文件是否有错误。它遵循当前的 Obsidian 语法。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
常见问题
我需要了解公式语法吗?
不需要。智能体会编写筛选条件和公式,并用通俗的话解释结果。
每种视图类型在我的 Obsidian 中都能使用吗?
不一定。该技能提醒,有些视图依赖于 Obsidian 版本或插件,因此会先进行检查。
它会改动我的笔记吗?
它只编辑视图文件,并且是通过经过审阅的步骤完成,而不是直接写入。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 16k
- 排名
- #10807
- 许可证
- MIT
- 更新时间
- 2026/10/25
评论
- …
同一仓库的更多技能
autoresearch
16k让你的智能体在设定的范围内研究某个主题,并起草带引用的报告。网络发现的内容只作为证据保存,不会自动加入你的笔记。
canvas
16k帮你的智能体在 Obsidian 中创建和更新可视化画板,画板可以容纳笔记、文件、链接和分组,适合制作思维导图和空间布局。
defuddle
16k帮你的智能体规划如何把网页清理成可读的文本,并保存源文件的本地副本。网络清理功能目前尚不可用。
obsidian-markdown
16k解释 Obsidian 的扩展 Markdown,例如链接、嵌入、提示框和属性,并帮你起草使用这些功能的笔记。