Skip to content
Agentmart
Submit a tool

ObsidianBase

Resolve Obsidian Base files (.base) to see what the user sees in Obsidian.

Skill by N4M3Z

IndexedEUPL-1.2★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/n4m3z-obsidianbase

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Resolve Obsidian Base files (.base) to see what the user sees in Obsidian. USE WHEN the user asks about Base views, queries vault notes, wants to see what a .base file shows, or needs filtered/sorted vault data. Wraps the obsidian-base CLI.

Use cases: data, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/obsidianbase

What's inside

Skill name
ObsidianBase
Description
Resolve Obsidian Base files (.base) to see what the user sees in Obsidian. USE WHEN the user asks about Base views, queries vault notes, wants to see what a .base file shows, or needs filtered/sorted vault data. Wraps the obsidian-base CLI.
License
EUPL-1.2
Instructions
118 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (2)

  • SKILL.md
  • SKILL.yaml

SKILL.md (first lines)

# ObsidianBase

> **Preferred:** Use `obsidian base:query` (see the ObsidianCLI skill) when Obsidian is running. This skill documents the standalone `obsidian-base` binary for offline/fallback use.

Resolve `.base` files against the vault — the same declarative queries [[Obsidian]] renders internally. Returns matching notes as [[JSONL]] or file paths, enabling [[Claude]] to see exactly what the user sees in their [[Obsidian Base]] views.

## When to Use

- User asks "what does this [[Base]] show?" or "what books are on my reading list?"
- You need to query vault notes by [[frontmatter]] properties, [[tags]], paths, or [[wikilinks]]
- A `.base` file is referenced in conversation and you want to resolve it
- You need filtered, sorted note lists for any vault operation

## Tool

**Binary:** `Modules/forge-obsidian/bin/obsidian-base`

The binary auto-discovers the vault root by walking up from the `.base` file looking for `.obsidian/`. It reads the [[YAML]] query, walks all `.md` files, evaluates filters against [[frontmatter]] + file metadata, applies sorts, and emits results.

## Dependencies

| Dependency | Required | Purpose |
| ---------- | -------- | ------- |
| [[Rust]] (`cargo`) | Yes | Builds the `obsidian-base` binary on first run (lazy compilation) |
| [[jq]] | No | Post-filter [[JSONL]] output (optional) |

The binary is self-contained after compilation — no runtime dependencies beyond the standard library.

## Usage

```bash
# Default: JSONL output (one JSON object per matched note, per view)
Modules/forge-obsidian/bin/obsidian-base "/path/to/File.base"

# Resolve only a specific view
Modules/forge-obsidian/bin/obsidian-base "/path/to/File.base" --view "Table"

# File paths only (one per line) — for piping to other tools
Modules/forge-obsidian/bin/obsidian-base "/path/to/File.base" --paths

# Count matches
Modules/forge-obsidian/bin/obsidian-base "/path/to/File.base" --paths | wc -l

# Filter JSONL with jq
Modules/forge-obsidian/bin/obsidian-base "/path/to/File.base" | jq 'select(.tags | contains(["type/item"]))'
```

## Intent-to-Flag Mapping

| User Says                           | Flag               | Effect                                    |
| ----------------------------------- | ------------------ | ----------------------------------------- |
| "show me what this Base has"        | *(default)*        | [[JSONL]] output with all view columns    |
| "which view", "only the Table view" | `--view "Name"`    | Resolve a single named view               |
| "just the files", "list the paths"  | `--paths`          | One file path per line                    |
| "how many notes match"              | `--paths \| wc -l` | Count of matching notes                   |
| "filter by tag/property"            | pipe to `[[jq]]`   | Post-filter [[JSONL]] with [[jq]] expressions |

## Output Format

### JSONL (default)

Each line is a self-contained [[JSON]] object:

```json
{"view":"Table","file":"Library/Books/The Pragmatic Programmer.md","name":"The Pragmatic Programmer","tags":["type/item/book"],"item.read":true}
```

Fields include:
- `view` — which view matched this note
- `file` — vault-relative path
- `name` — note name (stem, no extension)
- Plus any columns defined in the view's `order` list ([[frontmatter]] properties, file metadata)

### Paths mode (`--paths`)

```
Library/Books/The Pragmatic Programmer.md
Library/Books/Designing Data-Intensive Applications.md
```

## Finding .base Files

Base files live alongside the content they query. Common locations:

```bash
# Find all .base files in a vault
find /path/to/vault -name "*.base" -type f
```

## Expression Surface

The `.base` filter [[DSL]] supports:

| Category        | Examples                                                                       |
| --------------- | ------------------------------------------------------------------------------ |
| File properties | `file.name`, `file.path`, `file.ext`, `file.folder`, `file.tags`, `file.links` |
| Frontmatter     | `property.key` or bare `key`                                                   |
| Context         | `this.file.name`, `this.file.path`, `this.file.folder`                         |
| String methods  | `.startsWith()`, `.endsWith()`, `.contains()`, `.toString()`, `.slice(n,m)`    |
| Functions       | `contains(collection, value)`, `file.hasTag("tag")`, `file.hasLink("link")`    |
| Operators       | `!=`, `!` (prefix negation)                                                    |
| Combinators     | `and: […]`, `or: […]` ([[YAML]]-level boolean logic)                            |

## Limitations

- **`this` context** — `this.file.*` refers to the note embedding the [[Base]], not the `.base` file itself. When resolving template [[Bases]] (e.g., `Daily.base`) from CLI, `this` references the `.base` file's location. Pass a note context mentally when interpreting results from template Bases.
- **Performance** — walks the entire vault (~1s for large vaults). Results are not cached.
- **Formulas** — `.unique()`, `.filter()`, `.asFile()` are not yet supported.
- **Rendering** — no view layout (cards, list, board). Output is data only.

## Constraints

- Always use the full path to the `.base` file (absolute or project-relative)
- Check [[TLP]] before reading vault files referenced in output
- [[JSONL]] output can be large — pipe through [[jq]], `head`, or `wc -l` for summaries
- Do not modify `.base` files without the user's explicit request — they define the user's [[Obsidian]] views

From N4M3Z/forge-obsidian, EUPL-1.2.

More from N4M3Z/forge-obsidian

Signals

Stars
2
Forks
0
Open issues
1
Last commit (this folder)
Jun 17, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
EUPL-1.2
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from N4M3Z

Cite this page

ObsidianBase skill. Agent Mart. https://agentmart.dev/skills/n4m3z-obsidianbase (last updated 2026-10-24)