obsidian-base-create
Skill60 starsChanged 10 months agoMITView on GitHub
Generates Obsidian .base files from natural language descriptions. Translates requests like "show me all active project notes sorted by date" into valid .base YAML with filters, formulas, views, and summaries. Activates on "create base", "make a view", "show me all notes where", "dashboard", or when user wants structured views of their vault.
In this repository38 other files it gives its agents.
- agent-auditSkill
- battle-planSkill
- breadcrumbsSkill
- careful-deleteSkill
- debug-to-fixSkill
- dont-be-greedySkill
- dripSkill
- etaSkill
- fan-outSkill
- geordieSkill
- granola-syncSkill
- keep-it-simpleSkill
- learn-from-thisSkill
- loose-endsSkill
- map-reduceSkill
- obsidian-canvas-createSkill
- obsidian-daily-driverSkill
- obsidian-note-createSkill
- obsidian-session-syncSkill
- obsidian-vault-initSkill
- obsidian-vault-searchSkill
- pair-modeSkill
- pipelineSkill
- pre-mortemSkill
- prove-itSkill
- retrospectiveSkill
- rubber-duckSkill
- safe-refactorSkill
- sanity-checkSkill
- skill-creatorSkill
- skill-forgeSkill
- skill-gateSkill
- split-decisionSkill
- stay-in-laneSkill
- trace-itSkill
- you-sureSkill
- youtube-transcriptSkill
- zero-inSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
After vault init when creating starter views </triggers>
- Distinctive: line 34
Do NOT trigger for:
- Distinctive: line 54
Ask if not obvious:
- Distinctive: line 63
Before building filters, check what properties actually exist in the vault:
- Distinctive: line 80
Don't create filters on properties that don't exist in the vault.
- Distinctive: line 285
Write the YAML. Then verify by checking the YAML is valid:
- Distinctive: line 321
Create filters on properties that don't exist in the vault
- Distinctive: line 322
Write invalid YAML (always validate)
- Distinctive: line 324
Use complex formulas without explaining what they compute
- Distinctive: line 325
Create a base without at least one view configured
- Distinctive: line 330
Check what frontmatter properties exist in the vault first
- Distinctive: line 333
Use descriptive view names
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Obsidian Base Create
<purpose>
Bases bring database-style views to Obsidian — tables, cards, lists, maps —
all powered by note frontmatter. The .base format is YAML but the syntax is
non-obvious: nested filter logic, formula functions, property references, view
configurations. This skill translates what you want to see into working .base
files.
</purpose>When To Activate
<triggers>
- User says "create base", "make a base", "new base"
- User says "show me all notes where...", "filter my notes", "dashboard"
- User says "I want a table of...", "list all my...", "view of..."
- User wants to track tasks, projects, readings, meetings across notes
- After vault init when creating starter views
</triggers>Do NOT trigger for:
- Editing existing .base files (edit directly)
- Simple search queries (use obsidian-vault-search)
- Views that don't depend on frontmatter properties
Instructions
Step 1: Understand What the User Wants to See
<clarify>
Map the request to a base configuration:| Request | View Type | Key Filter | Sort |
| "All my meetings" | table | type == meeting | date desc |
| "Active projects" | cards | type == project AND status == active | name asc |
| "Tasks this week" | table | type == task AND date >= week start | date asc |
| "Recent notes" | table | (none or date-based) | file.mtime desc |
| "Reading list" | cards | type == reference AND status == draft | created desc |
Ask if not obvious:
- What properties should show as columns?
- How should it be sorted?
- Table, cards, or list view?
</clarify>
Step 2: Check Available Properties
<properties>
Before building filters, check what properties actually exist in the vault:# Find all frontmatter properties used in the vault
grep -rh "^[a-z].*:" "$VAULT_PATH" --include="*.md" | \
grep -v "^#\|^-\|^ " | sort | uniq -c | sort -rn | head -20Common properties from the vault schema (check CLAUDE.md):
type: note, meeting, project, daily, reference, taskstatus: draft, active, completed, archiveddate: YYYY-MM-DDcreated: YYYY-MM-DDproject: project nametags: array of tagsattendees: list (meetings)
Don't create filters on properties that don't exist in the vault.
</properties>
Step 3: Build the Base YAML
<build>
Base file structure:# Global filter (applies to all views)
filter:
- property: <name>
operator: "<op>"
value: "<value>"
# Computed properties
formulas:
formula-name: '<expression>'
# View configurations
views:
- name: "View Name"
type: table # table, cards, list, map
properties:
- file.name
- property-name
sort:
- property: <name>
order: asc # or desc
filter: # view-specific filter (in addition to global)
- property: <name>
operator: "<op>"
value: "<value>"Filter operators:
| Operator | Meaning |
== | equals |
!= | not equals |
> | greater than |
< | less than |
>= | greater or equal |
<= | less or equal |
Compound filters (AND/OR/NOT):
filter:
# AND (default — sequential conditions)
- property: type
operator: "=="
value: meeting
- property: status
operator: "=="
value: active
# OR (explicit)
- operator: OR
conditions:
- property: type
operator: "=="
value: meeting
- property: type
operator: "=="
value: project
# NOT
- operator: NOT
conditions:
- property: status
operator: "=="
value: archivedFile metadata properties:
file.name — Note filename without extension
file.path — Full path from vault root
file.mtime — Last modified time
file.ctime — Creation time
file.size — File size in bytes
file.folder — Parent folder path
file.ext — File extension</build>Step 4: Add Formulas (if needed)
<formulas>
Formulas are computed properties that derive values from existing data:formulas:
# Days since creation
age: '(now() - this.created).days'
# Status badge
badge: 'if(this.status == "active", "🟢", if(this.status == "draft", "🟡", "⚪"))'
# Overdue check
overdue: 'if(this.date < today(), "⚠️ Overdue", "On track")'
# Tag count
tag-count: 'this.tags.length'
# Full name from path
display: 'this.file.name'Useful formula functions:
- Date:
now(),today(),date("YYYY-MM-DD"),format(date, "MMM DD"),relative(date) - String:
contains(str, substr),replace(str, old, new),lower(str),trim(str) - Number:
abs(),ceil(),floor(),round() - List:
filter(),map(),join(),sort(),.length - File:
hasTag(tag),hasProperty(prop),inFolder(path),asLink() - Logic:
if(condition, then, else)
The this keyword refers to the current row's note.
</formulas>
Step 5: Configure View
<views>
**Table view** (best for data-heavy views):
```yaml
views:
- name: "All Meetings"
type: table
properties:
- file.name
- date
- attendees
- project
- status
sort:
- property: date
order: desc
```Cards view (best for visual browsing):
views:
- name: "Active Projects"
type: cards
properties:
- file.name
- status
- tags
sort:
- property: file.name
order: ascList view (best for simple lists):
views:
- name: "Quick List"
type: list
properties:
- file.name
sort:
- property: file.mtime
order: descMultiple views (same base, different perspectives):
views:
- name: "Table"
type: table
properties: [file.name, status, date]
sort: [{property: date, order: desc}]
- name: "Cards"
type: cards
properties: [file.name, status]
sort: [{property: status, order: asc}]Summaries (aggregate values shown at column bottom):
views:
- name: "Project Budget"
type: table
properties:
- file.name
- budget
- spent
summaries:
budget: sum
spent: sumSummary types: average, min, max, sum, range, median, count,
earliest, latest, checked, unchecked, empty, filled, unique
</views>
Step 6: Write and Verify
<write>
```bash
# Name the base file descriptively
BASE_PATH="$VAULT_PATH/base-name.base"
```Write the YAML. Then verify by checking the YAML is valid:
python3 -c "import yaml; yaml.safe_load(open('$BASE_PATH'))" && echo "Valid YAML"Confirm:
Base created: base-name.base
View: [table / cards / list]
Filter: [what's filtered]
Columns: [listed properties]
Sort: [sort order]
Open in Obsidian to see your data.</write>Output Format
## Base Created
**File:** base-name.base
**View:** [table / cards / list / map]
**Filter:** [description of filter logic]
**Columns:** [list of shown properties]
**Sort:** [property, direction]
**Formulas:** [any computed properties]
Open in Obsidian to interact with the view.NEVER
- Create filters on properties that don't exist in the vault
- Write invalid YAML (always validate)
- Skip checking what properties exist first
- Use complex formulas without explaining what they compute
- Create a base without at least one view configured
- Assume property names — check CLAUDE.md or scan existing notes
ALWAYS
- Check what frontmatter properties exist in the vault first
- Validate the YAML output
- Include at least
file.namein every view's properties - Use descriptive view names
- Explain the filter logic in plain English
- Suggest additional views or formulas that might be useful
Example
User: "Make me a dashboard showing all active projects with their status and last modified date"
filter:
- property: type
operator: "=="
value: project
- property: status
operator: "!="
value: archived
formulas:
last-active: 'relative(this.file.mtime)'
views:
- name: "Active Projects"
type: table
properties:
- file.name
- status
- project
- tags
- last-active
sort:
- property: file.mtime
order: desc
- name: "Project Cards"
type: cards
properties:
- file.name
- status
- last-active
sort:
- property: status
order: ascBase created: project-dashboard.base
View 1: "Active Projects" (table)
Filter: type == project AND status != archived
Columns: name, status, project, tags, last active (relative time)
Sort: last modified (newest first)
View 2: "Project Cards" (cards)
Same filter, card layout for visual browsing
Open in Obsidian to see your projects.<failed-attempts>
What DOESN'T work:
- Filtering on `content` or note body — Bases only filters on frontmatter properties and file metadata
- Using Dataview syntax (`FROM`, `WHERE`) — Bases has its own YAML syntax, not Dataview
- Assuming properties exist — if notes don't have `status` in frontmatter, the filter returns nothing
- Complex nested formulas without testing — start simple, iterate
</failed-attempts>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

