obsidian-bases

obsidian-bases is a skill for Claude Code from laurigates/dotfiles. It costs 49 tokens per session (2,565 once invoked), scanned A, original, MIT.

A guide for Obsidian Bases, Obsidian's built-in feature for creating interactive database views from notes and their YAML properties. It covers .base files, filters, formulas, and table or card views.

In plain words
What is it for?
It is for building and editing Obsidian Bases, including queries, computed fields, filters, and views based on note frontmatter.
Why use it?
It helps create structured, sortable note views without needing a separate community plugin or guessing the required YAML format.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/laurigates/dotfiles/obsidian-bases
Any agent
npx skills add laurigates/dotfiles --skill obsidian-bases
Clone the repo
git clone --depth 1 https://github.com/laurigates/dotfiles

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for obsidian-bases

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/dotfiles/obsidian-bases.svg)](https://agentmods.dev/skills/laurigates/dotfiles/obsidian-bases)
Your own site
<a href="https://agentmods.dev/skills/laurigates/dotfiles/obsidian-bases"><img src="https://agentmods.dev/badge/skills/laurigates/dotfiles/obsidian-bases.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.02565
Opus 5 $0.00024 $0.01282
Sonnet 5 $0.00010 $0.00513
Haiku 4.5 $0.00005 $0.00257

Measured 6d ago against content hash 5d10ea4538a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

obsidian-bases scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/obsidian-bases/SKILL.md · 454 lines

How it starts

The opening of the file, as written. The whole thing — 454 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Obsidian Bases

Expert knowledge for creating and managing Obsidian Bases - the interactive database feature introduced in Obsidian v1.9.10 that transforms notes into filterable, sortable views using YAML frontmatter properties.

Core Concepts

What is Bases?

  • Native core plugin (no community plugins required)
  • Creates interactive database views from any set of notes
  • Uses .base file extension (plain-text YAML format)
  • Only reads YAML frontmatter - does not parse note content
  • Faster performance than Dataview with inline editing support

Key Distinction from Dataview:

  • Bases: User-friendly, visual, inline editable, YAML frontmatter only
  • Dataview: More powerful queries, inline properties, content parsing

File Structure

# example.base
filters:
  # Global filters (apply to all views)
  and:
    - 'status != "done"'
    - taggedWith(file.file, "project")

formulas:
  # Computed properties
  days_left: '(dueDate - today()).days()'
  status_icon: 'if(done, "✅", "⬜")'

views:
  - type: table
    name: "Active Tasks"
    filters:
      'dueDate > now()'      # View-specific filter
    properties:
      - name: title
        displayName: "Task"
      - name: status
      - name: dueDate
    sort:
      - property: dueDate
        direction: asc

  - type: card
    name: "Visual View"
    properties:
      - name: cover
      - name: title

Property Access Patterns

Note Properties (Frontmatter)

# Shorthand access
price
status
tags

# Explicit prefix
note.price
note.status

# Bracket notation (for spaces)
note["property name"]

File Properties (Implicit)

file.path      # Full file path
file.name      # File name only
file.folder    # Parent folder
file.size      # File size in bytes
file.ctime     # Creation time
file.mtime     # Modification time
file.ext       # Extension
file.file      # File object (for filter functions)
file.links     # Outgoing links
file.inlinks   # Incoming backlinks

Formula Properties

Read the full file on GitHub · 454 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 454 lines · 49 tokens per session scan A 5d10ea4538a9

Subscribe to this mod's changes

obsidian-bases is a skill published in the GitHub repository laurigates/dotfiles (10 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 2,565 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.