obsidian-bases

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

5|Updated Sep 24, 2017
One-click install
npx skills add https://github.com/madyankin/dotfiles --skill obsidian-bases-madyankin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: obsidian-bases
Source: https://github.com/madyankin/dotfiles/tree/main/.config/agents/skills/obsidian-bases
Command: npx skills add https://github.com/madyankin/dotfiles --skill obsidian-bases-madyankin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing Obsidian Bases (.base files) by hand requires knowing a specific YAML schema, filter syntax, formula language, and view configuration, and small mistakes like unquoted strings or Duration type misuse silently break the view. ## Core Features & Use Cases - Base File Authoring: Create valid .base files with global filters, formula properties, display names, and multiple views (table, cards, list, map). - Formula and Filter Guidance: Apply the correct expression syntax for dates, durations, strings, lists, and conditionals, including safe regex and HTML escaping practices. - Validation and Troubleshooting: Catch common errors such as mismatched YAML quotes, undefined formula references, and Duration arithmetic mistakes before opening the file in Obsidian. - Use Case: Build a task tracker base that filters notes tagged "task", computes days until due, groups by status, and shows a table of active tasks with average summaries. ## Quick Start Create an Obsidian base file for my reading list notes with a cards view showing cover, author, and reading status.

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 array defining table, cards, list, or map views with an order list 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 to get days as a number. You can then apply number functions like .round(0) to the result.

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 syntax 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 and quote any display names containing special characters.

Is it safe to use html() in Obsidian Bases formulas?▼

Only if you escape untrusted data first. Obsidian runs in Electron, so passing raw note properties to html() can enable stored XSS escalating to code execution; always call escapeHTML() on property values before rendering them as HTML.