bases
Obsidian Bases (database-over-notes): list base files/views, create items, run view queries with json/csv/tsv/md output. Use when user mentions Bases or .base files.
What this skill does
# Obsidian Bases
## When to Use This Skill
| Use this skill when... | Use the alternative instead when... |
|---|---|
| Querying notes that share a Base view (status board, reading list, project tracker) | Doing a free-text search across the vault — use `search-discovery` |
| Creating a new entry that should land in a specific Base view | Creating an arbitrary note — use `vault-files` |
| Listing what `.base` files and views exist in the vault | Reading frontmatter on a single note — use `properties` |
[Bases](https://help.obsidian.md/bases) turn note collections into queryable views with frontmatter-driven filters and columns. The CLI exposes those views as structured data — JSON for the agent, CSV/TSV for piping, markdown for rendering.
## Prerequisites
- Obsidian desktop v1.12.4+ with CLI enabled
- Obsidian must be running
- At least one `.base` file in the vault
## List Bases and Views
```bash
# List all .base files in the vault
obsidian bases
# List the views defined in a base (default: active base)
obsidian base:views file=Reading
obsidian base:views path="Bases/Reading.base"
```
## Query a View
`base:query` runs a view and returns rows. Default format is JSON, which is
the right choice for agentic consumption.
```bash
# Query the active view of the active base
obsidian base:query
# Specific base + view, JSON for parsing
obsidian base:query file=Reading view="To read" format=json
# Markdown table for human consumption
obsidian base:query file=Reading view="To read" format=md
# Just the matching note paths (one per line, useful with xargs)
obsidian base:query file=Projects view=Active format=paths
# CSV for spreadsheet workflows
obsidian base:query file=Tasks view=Open format=csv
```
The `format=paths` mode is the agentic-friendly equivalent of a vault search
that already understands base filters — pipe the output into `obsidian read`
or any file-level skill.
## Create an Entry in a Base
Create a new note that automatically lands in a base view (the base's filter
must match the new note's frontmatter for it to actually appear):
```bash
# Add to the active base view
obsidian base:create name="Untitled Book"
# Specific base + view, with starting content
obsidian base:create file=Reading view="To read" name="The Mythical Man-Month" content="# The Mythical Man-Month\n\n"
# Open the new note in a new tab after creating
obsidian base:create file=Reading view="To read" name="New entry" newtab open
```
## Common Patterns
### "Find every active project and append a status update"
```bash
obsidian base:query file=Projects view=Active format=paths \
| while read -r path; do
obsidian append path="$path" content="\n## $(date +%F) update\n- "
done
```
### "Show me a markdown table of incomplete reading"
```bash
obsidian base:query file=Reading view="To read" format=md
```
### "Bulk-create entries from a CSV"
Read each row, then call `base:create` per row with the desired `name=` and
`content=`. Avoid embedding shell operators inside the CLI invocation —
build values in shell variables first, then pass them.
## Agentic Optimizations
| Context | Command |
|---------|---------|
| List `.base` files | `obsidian bases` |
| List views in a base | `obsidian base:views file=X` |
| Query a view as JSON | `obsidian base:query file=X view=Y format=json` |
| Get matching paths only | `obsidian base:query file=X view=Y format=paths` |
| Markdown table for humans | `obsidian base:query file=X view=Y format=md` |
| Create entry in a view | `obsidian base:create file=X view=Y name="…"` |
## Related Skills
- **vault-files** — Read/write notes returned by a base query
- **properties** — Edit frontmatter that drives base filters
- **search-discovery** — Free-text and tag search when no base exists
Related in Data & Analytics
clawarr-suite
IncludedComprehensive management for self-hosted media stacks (Sonarr, Radarr, Lidarr, Readarr, Prowlarr, Bazarr, Overseerr, Plex, Tautulli, SABnzbd, Recyclarr, Unpackerr, Notifiarr, Maintainerr, Kometa, FlareSolverr). Deep library exploration, analytics, dashboard generation, content management, request handling, subtitle management, indexer control, download monitoring, quality profile sync, library cleanup automation, notification routing, collection/overlay management, and media tracker integration (Trakt, Letterboxd, Simkl).
querying-soql
IncludedSOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use handling-sf-data), Apex DML logic (use generating-apex), or report/dashboard queries.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
habit-flow
IncludedAI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching. Use for creating habits, logging completions naturally ("I meditated today"), viewing progress, and getting personalized coaching.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
visualizing-data
IncludedBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.