Pins this version in aipm.package.json and aipm-lock.json.
aipm add @kepano/obsidian-bases@1.0.0
Without project tracking
Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.
aipm add @kepano/obsidian-bases@1.0.0 --no-init
How to use
Install the skill above, then run this in your AI tool:
/obsidian-bases <your description>
About
## Workflow
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
base files) with views, filters, formulas, and summaries. base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, kanban boards,...
Skill instructions
Obsidian Bases Skill
Workflow
Create the file: Create a .base file in the vault with valid YAML content
Define scope: Add filters to select which notes appear (by tag, folder, property, or date)
Add formulas (optional): Define computed properties in the formulas section
Configure views: Add one or more views (table, cards, list, map, or kanban) with order specifying which properties to display
Validate: Verify the file is valid YAML with no syntax errors. Check that all referenced properties and formulas exist. Common issues: unquoted strings containing special YAML characters, mismatched quotes in formula expressions, referencing formula.X without defining X in formulas
Test in Obsidian: Open the .base file in Obsidian to confirm the view renders correctly. If it shows a YAML error, check quoting rules below. If it doesn't open as a base at all, check that Bases is turned on in Settings → Core plugins
Schema
Base files use the .base extension and contain valid YAML.
yaml
# Global filters apply to ALL views in the basefilters:# Can be a single filter string# OR a recursive filter object with exactly ONE key: and, or, or notand:-'status == "active"'-not:-'file.hasTag("archived")'# Define formula properties that can be used across all viewsformulas:formula_name:'expression'# Configure display names and settings for properties.# Note properties need the `note.` prefix here, or the setting is ignored.properties:note.property_name:displayName:"Display Name"formula.formula_name:displayName:"Formula Display Name"file.ext:displayName:"Extension"# Define custom summary formulassummaries:custom_summary_name:'values.mean().round(3)'# Define one or more viewsviews:-type:table|cards|list|map|kanbanname:"View Name"limit:10# Optional: limit resultsgroupBy:# Optional: group resultsproperty:property_namedirection:ASC|DESCgroupOrder:# Optional: only these groups, in this order-value_one-null# Files with no value for the groupBy propertysort:# Optional: sort results (supports multiple properties)-property:property_namedirection:ASC|DESCfilters:# View-specific filters follow the same rulesand:-'status == "active"'order:# Properties to display in order-file.name-property_name-formula.formula_namesummaries:# Map properties to summary formulasproperty_name:Average
Filter Syntax
Filters narrow down results. They can be applied globally or per-view.
Filter Structure
yaml
# Single filterfilters:'status == "done"'# AND - all conditions must be truefilters:and:-'status == "done"'-'priority > 3'# OR - any condition can be truefilters:or:-'file.hasTag("book")'-'file.hasTag("article")'# NOT - exclude matching itemsfilters:not:-'file.hasTag("archived")'# Nested filtersfilters:or:-file.hasTag("tag")-and:-file.hasTag("book")-file.hasLink("Textbook")-not:-file.hasTag("book")-file.inFolder("RequiredReading")
Filter Operators
Operator
Description
==
equals
!=
not equal
>
greater than
<
less than
>=
greater than or equal
<=
less than or equal
&&
logical and
||
logical or
<code>!</code>
logical not
Properties
Three Types of Properties
Note properties - From frontmatter: note.author or just author
File properties - File metadata: file.name, file.mtime, etc.
Formula properties - Computed values: formula.my_formula
In order, filters, groupBy, and sort, a note property can be written bare (author) or prefixed (note.author). In the top-level properties: section, always write note.author, because Obsidian ignores a bare key there and shows the raw name as the column header.
File Properties Reference
Property
Type
Description
file.name
String
File name
file.basename
String
File name without extension
file.path
String
Full path to file
file.folder
String
Parent folder path
file.ext
String
File extension
file.size
Number
File size in bytes
file.ctime
Date
Created time
file.mtime
Date
Modified time
file.tags
List
All tags in file
file.links
List
Internal links in file
file.backlinks
List
Files linking to this file. Slow in large vaults and doesn't refresh when the vault changes; prefer reversing the lookup with file.links
file.embeds
List
Embeds in the note
file.properties
Object
All frontmatter properties. Doesn't refresh when the vault changes
file.file
File
File object, only usable in specific functions
The this Keyword
In main content area: refers to the base file itself
When embedded: refers to the embedding file
In sidebar: refers to the active file in main content
Formula Syntax
Formulas compute values from properties. Defined in the formulas section.
yaml
formulas:# Simple arithmetictotal:"price * quantity"# Conditional logicstatus_icon:'if(done, "✅", "⏳")'# String formattingformatted_price:'if(price, price.toFixed(2) + " dollars")'# Date formattingcreated:'file.ctime.format("YYYY-MM-DD")'# Calculate days since created (use .days for Duration)days_old:'(now() - file.ctime).days'# Calculate days until due datedays_until_due:'if(due_date, (date(due_date) - today()).days, "")'
Key Functions
Most commonly used functions. For the complete reference of all types (Date, String, Number, List, File, Link, Object, RegExp), see FUNCTIONS_REFERENCE.md.
Function
Signature
Description
date()
date(string): date
Parse string to date (YYYY-MM-DD HH:mm:ss)
now()
now(): date
Current date and time
today()
today(): date
Current date (time = 00:00:00)
if()
if(condition, trueResult, falseResult?)
Conditional
duration()
duration(string): duration
Parse duration string
file()
file(path): file
Get file object
link()
link(path, display?): Link
Create a link
Duration Type
When subtracting two dates, the result is a Duration type (not a number).
IMPORTANT: Duration does NOT support .round(), .floor(), .ceil() directly. Access a numeric field first (like .days), then apply number functions.
yaml
# CORRECT: Calculate days between dates"(date(due_date) - today()).days"# Returns number of days"(now() - file.ctime).days"# Days since created"(date(due_date) - today()).days.round(0)"# Rounded days# WRONG - will cause error:# "((date(due) - today()) / 86400000).round(0)" # Duration doesn't support division then round
Date Arithmetic
yaml
# Duration units: y/year/years, M/month/months, d/day/days,# w/week/weeks, h/hour/hours, m/minute/minutes, s/second/seconds"now() + \"1 day\""# Tomorrow"today() + \"7d\""# A week from today"now() - file.ctime"# Returns Duration"(now() - file.ctime).days"# Get days as number
Requires Obsidian 1.14+. Cards are grouped into columns by the groupBy property, which a kanban view needs. groupOrder sets which columns show and in what order; use null to include files with no value. Without groupOrder, every value gets a column. Dragging a card to another column updates that property in the note. Only Markdown notes can be moved, except when grouping by file.folder, where moving a card moves the file to that folder. When grouping by a formula or by a file property other than file.folder, cards and columns can't be moved and notes can't be created from a column.
Requires latitude/longitude properties and the Maps community plugin.
yaml
views:-type:mapname:"Locations"# Map-specific settings for lat/lng properties
Sorting
Sort results by one or more properties. Each sort entry specifies a property and direction, which must be uppercase ASC or DESC; an entry with any other value, or a sort written as a string, is silently ignored. Multiple sort entries are applied in order — the first entry is the primary sort key, subsequent entries break ties.
Embed an external .base file in any Markdown note:
markdown
![[MyBase.base]]
<!-- Specific view -->
![[MyBase.base#View Name]]
Embed inline with a code block
Bases can also be embedded inline directly inside a note using a base fenced code block. This is useful for note-level filters (e.g. using this.file.links) and avoids creating a separate .base file:
When embedded inline this way, the this keyword refers to the containing note, so you can build per-note views such as showing all notes linked from the current file.
YAML Quoting Rules
Use single quotes for formulas containing double quotes: 'if(done, "Yes", "No")'
Use double quotes for simple strings: "My View Name"
Escape nested quotes properly in complex expressions
Troubleshooting
YAML Syntax Errors
Unquoted special characters: Strings containing :, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, %, @, `, ! must be quoted.
yaml
# WRONG - colon in unquoted stringdisplayName: Status:Active# CORRECTdisplayName:"Status: Active"
Mismatched quotes in formulas: When a formula contains double quotes, wrap the entire formula in single quotes.
Empty displayName doesn't hide a header: displayName: "" falls back to the property name, the same as leaving it out, so formula.status_icon shows status_icon. Use a non-empty name such as displayName: "Status".
Referencing undefined formulas: Ensure every formula.X in order or properties has a matching entry in formulas.
yaml
# This will fail silently if 'total' is not defined in formulasorder:-formula.total# Fix: define itformulas:total:"price * quantity"
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/kepano/obsidian-bases/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@kepano/obsidian-bases@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, kanban boards,...
Run aipm add @kepano/obsidian-bases@1.0.0 in a project that has AIPM initialized.
Supported tools
@kepano/obsidian-bases@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.