obsidian-bases — скилл для Claude Code: что делает и как установить
Скилл помогает составлять, проверять и редактировать файлы .base в Obsidian с фильтрами, формулами и разными типами представлений.
npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a claude-codeЧто делает obsidian-bases
Скилл отвечает на вопросы по синтаксису Obsidian Bases и генерирует конфигурации .base в формате YAML. Он задаёт правила для фильтров через and, or, not, вычисляемых свойств formula.<name>, а также структуры таблиц, списков, карточек и канбана. Ключи из Dataview вроде where или from использовать запрещено, поэтому скилл удерживает разметку строго в синтаксисе Bases.
Для правок хранилища скилл запрещает прямую запись в файл. Вместо этого он формирует пакет claude-obsidian.transaction.v1 и применяет его через скрипт claude-obsidian.py с обязательной проверкой хеша подтверждения. Для запуска этих транзакций в системе нужен Python 3.
В конфигурации учитываются ограничения версий самого приложения Obsidian. Карточки и таблицы работают начиная с версии 1.9+, обычный список требует 1.10+, а нативный канбан доступен только с 1.14+. Если версия приложения неизвестна, безопаснее оставлять обычную таблицу в качестве запасного варианта.
Какие задачи решает
- составить файл
.baseс фильтрами и вычисляемыми полями - настроить группировку заметок на канбан-доске для Obsidian 1.14+
- проверить YAML-синтаксис выражений и обработку null-значений
- провести безопасное изменение хранилища через транзакции
claude-obsidian.py
Примеры запросов агенту
- Создай .base файл для каталога заметок из папки wiki с фильтром по статусу
- Настрой канбан-представление в .base с группировкой по свойству note.status
- Проверь формулу вычисления возраста заметки для Obsidian Base
Как установить obsidian-bases
1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a claude-code2Вручную: положить файлы
~/.claude/skills/obsidian-bases/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/obsidian-bases/
1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a codex2Вручную: положить файлы
.agents/skills/obsidian-bases/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a cursor2Вручную: положить файлы
.cursor/skills/obsidian-bases/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install AgriciDaniel/claude-obsidian obsidian-bases2Вручную: положить файлы
.github/skills/obsidian-bases/SKILL.md1Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a gemini-cli2Командой платформы
gemini skills install https://github.com/AgriciDaniel/claude-obsidian --path skills/obsidian-basesВручную: положить файлы
.devin/skills/obsidian-bases/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о obsidian-bases
Как установить obsidian-bases в Claude Code?
Выполните команду npx skills add AgriciDaniel/claude-obsidian --skill obsidian-bases -a claude-code.
Что делает скилл obsidian-bases?
Он проверяет и пишет файлы баз данных .base для хранилищ Obsidian, настраивая фильтры, формулы, отображение карточек, таблиц или списков.
Какие версии Obsidian нужны для разных типов представлений?
Таблицы и карточки требуют версии 1.9+, списки работают с 1.10+, а встроенный канбан поддерживается только начиная с версии 1.14+.
Исходный текст
SKILL.md · MIT
---
name: obsidian-bases
description: 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.
---
# 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](https://help.obsidian.md/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:
```bash
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
1. Inspect representative note properties and any existing `.base` file.
2. Define the smallest filter that selects the intended notes.
3. Add formulas only for values that must be computed.
4. Choose views and display order. Do not assume a view type or option is
supported by the user's Obsidian version or installed plugins.
5. Validate YAML, expression quoting, property names, formula references, and
null handling.
6. Preview the complete file and expected result set before a mutation.
7. If an edit was requested, read
[operation-transactions.md](../wiki/references/operation-transactions.md),
keep the `.base` file under `wiki/`, and build one
`claude-obsidian.transaction.v1` bundle with `operation_type: base`. Inspect
it, then set `APPROVAL_SHA256` to the returned `approval_sha256` only after
review and apply once:
```bash
python3 "$CORE" transaction inspect "$BUNDLE" --vault "$VAULT"
python3 "$CORE" transaction apply "$BUNDLE" --vault "$VAULT" \
--approved-plan-sha256 "$APPROVAL_SHA256"
```
8. Record static validation separately from native Obsidian rendering. Follow
[the conformance procedure](../../docs/native-conformance.md) when application
behavior cannot be verified locally. Never label unobserved output as tested.
## Version boundary
Checked 2026-10-17 against [official view documentation](https://obsidian.md/help/bases/views).
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`.
```yaml
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.
```yaml
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 `from` or `where` into 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](https://obsidian.md/help/bases/syntax) checked 2026-10-17
still describes date differences in milliseconds. The official
[1.9.3 changelog](https://obsidian.md/changelog/2025-06-26-desktop-v1.9.3/)
describes a Duration, and the pinned upstream skill also uses a Duration field.
The recorded excerpts of the
[API types at the reviewed commit](https://github.com/obsidianmd/obsidian-api/blob/9abd9605ce081383674aae1ed111c456edde0688/obsidian.d.ts)
do not include a Duration definition, so they are not cited for either reading.
No native app observation in this update resolves that disagreement.
These retained millisecond expressions are candidates for an isolated test,
not a compatibility guarantee:
```yaml
formulas:
age_days: '((now() - file.ctime) / 86400000).round(0)'
days_until: 'if(due_date, ((date(due_date) - today()) / 86400000).round(0), "")'
```
Compare direct subtraction/division, the Duration day field, and explicit
`number(date)` subtraction using one-day, multi-month, negative, and missing
values. Record app version, timezone, expression, actual value/type, and errors
using [native-conformance.md](../../docs/native-conformance.md). Do not rewrite
existing formulas or assert that any candidate is correct before that check.
## Additional views
Cards and list examples:
```yaml
views:
- type: cards
name: "Reading list"
order:
- file.name
- author
- status
- type: list
name: "Quick list"
order:
- file.name
- status
```
For Obsidian 1.14+, group a kanban by an existing writable note property:
```yaml
filters:
and:
- file.inFolder("wiki")
- 'file.ext == "md"'
views:
- type: kanban
name: "Page status"
groupBy:
property: note.status
direction: ASC
groupOrder:
- seed
- developing
- mature
- evergreen
- null
order:
- file.name
- status
```
`groupOrder` lists visible groups in display order. An absent `groupOrder`
shows all groups using the `groupBy` sort; an empty list hides every group.
`null` includes pages without the grouped value. Adding an empty group does not
create a note. Native card moves can change a note property, and grouping by
`file.folder` can move files; agents must still use reviewed transactions for
vault mutations. A formula or other read-only file property is unsuitable for
an editable status board. See [Kanban view](https://obsidian.md/help/bases/views/kanban).
Embed a Base or one named view in a Markdown note:
```markdown
![[Dashboard.base]]
![[Dashboard.base#Wiki pages]]
```
After an applied edit, report the operation ID, exact changed path, validation
performed, and anything that still requires rendering in Obsidian. Do not
commit Git.
© AgriciDaniel · MIT · AgriciDaniel/claude-obsidian