obsidian-bases

Create and edit Obsidian Bases files with views, filters, formulas, and summaries.

Updated Oct 7, 2022
One-click install
npx skills add https://github.com/tamagusko/linux-cfg --skill obsidian-bases-tamagusko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: obsidian-bases
Source: https://github.com/tamagusko/linux-cfg/tree/main/dotfiles/claude/skills/obsidian-bases
Command: npx skills add https://github.com/tamagusko/linux-cfg --skill obsidian-bases-tamagusko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing valid Obsidian Bases (.base) files requires knowing a specific YAML schema, filter syntax, formula language, and quoting rules, and small mistakes like unquoted colons or Duration math errors silently break views. ## Core Features & Use Cases - Base file authoring: Create .base files with global and per-view filters, formula properties, display names, and summaries across table, cards, list, and map views. - Formula and filter guidance: Apply the correct syntax for date arithmetic, Duration field access, conditional logic, and nested and/or/not filter trees. - Validation and troubleshooting: Catch common failures such as mismatched quotes in formulas, references to undefined formula.X properties, and missing null guards. - Use Case: Build a task tracker base that filters notes tagged "task", computes days until due and overdue status with formulas, groups a table view by status, and shows average days remaining as a summary. ## Quick Start Create an Obsidian base file for my reading list notes with a cards view showing cover, author, and reading status, plus a table of books still to read.

Frequently Asked Questions about obsidian-bases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Obsidian Bases file with filters and views?

Create a .base file containing valid YAML with a filters section to select notes, an optional formulas section for computed properties, and a views list defining table, cards, list, or map views with an order array of properties to display.

How do I calculate days between dates in Obsidian Bases formulas?

Subtracting two dates returns a Duration type, not a number, so access a numeric field first: use (date(due_date) - today()).days. Duration does not support .round() directly, so round the numeric field instead, e.g. (now() - file.ctime).days.round(0).

What view types does Obsidian Bases support?

Bases supports table, cards, list, and map view types. Table and cards accept order, groupBy, filters, and summaries; the map view requires latitude and longitude properties plus the Maps community plugin.

Why does my Obsidian base file show a YAML error?

YAML errors usually come from unquoted strings containing special characters like colons, or double quotes nested inside double-quoted formulas. Wrap formulas containing double quotes in single quotes, e.g. 'if(done, "Yes", "No")'.

Why is my formula property not showing in an Obsidian base view?

Every formula.X referenced in order or properties must have a matching entry X defined in the formulas section, otherwise it fails silently. Also guard against missing note properties with if() so the expression does not crash on empty values.