# /obsidian-bases: Write Obsidian Bases views without YAML and formula errors

Source: https://trendhub.net/skills/obsidianmd-obsidian-skills/obsidian-bases
Skill folder: https://github.com/obsidianmd/obsidian-skills/tree/main/plugins/obsidian/skills/obsidian-bases
Pack: Obsidian Skills (https://trendhub.net/skills/obsidianmd-obsidian-skills)
Works with: Claude Code (terminal), Claude Code (in session), Codex, npx skills, npx skills (SSH), Gemini CLI, OpenCode

The Bases skill gives the agent the full shape of a .base file: global and per-view filters, formulas, property display names, summaries and five view types including kanban. It explains how note, file and formula properties differ, how date subtraction yields a Duration, and the quoting and naming rules behind the errors Bases most often shows.

## When to use it

- You want a table, card or kanban view of notes with certain tags or folders
- You need computed columns such as days until a due date
- An existing base shows a YAML error or ignores your display names

## How it works

1. **Create and scope**: The agent writes a valid YAML .base file and adds filters by tag, folder, property or date, nesting and, or and not as needed.
2. **Add formulas**: It defines computed properties, reading a field such as .days from a Duration before rounding and guarding missing values with if().
3. **Configure views**: It adds table, cards, list, map or kanban views with order, sort, groupBy and summaries, using uppercase ASC or DESC.
4. **Validate**: It checks the YAML, confirms every referenced formula exists and that note properties use the note. prefix in the properties section.
5. **Test in Obsidian**: It opens the base to confirm it renders and checks that the Bases core plugin is turned on if it does not open.

## What it steers the agent away from

- Rounding a Duration directly, which fails
- Double quotes nested inside double-quoted formulas
- Referencing formula.X without defining X

## What it can touch

Creates and edits .base files, or base code blocks inside notes, in your vault.

## Pairs well with

- `/obsidian-cli`
- `/obsidian-markdown`

## Questions

### Which Obsidian version does the kanban view need?

The skill states that kanban views require Obsidian 1.14 or later and need a groupBy property.

### Can a base live inside a note?

Yes. A base fenced code block embeds it inline, and this then refers to the containing note, which allows per-note views.
