obsidian-dataview

obsidian-dataview is a skill for Claude Code, Codex from lexbritvin/obsidian-skills-pack. It costs 297 tokens per session (3,081 once invoked), scanned A, original, MIT.

A guide for creating Dataview queries and scripts in Obsidian. Dataview reads note metadata, tasks, links, and frontmatter—fields written at the top of a note—and displays the results in notes.

In plain words
What is it for?
Use it to build tables, lists, task views, calendars, inline values, dashboards, and custom note views from information stored in an Obsidian vault.
Why use it?
It saves you from maintaining lists and dashboards manually as your vault changes. It also explains when to use simple queries and when a JavaScript script is needed for more complex views.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to build tables, lists, task views, calendars, inline values, dashboards, and custom note views from information stored in an Obsidian vault.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lexbritvin/obsidian-skills-pack/obsidian-dataview
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.

Any agent
npx skills add lexbritvin/obsidian-skills-pack --skill obsidian-dataview
Clone the repo
git clone --depth 1 https://github.com/lexbritvin/obsidian-skills-pack

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin obsidian-dataview/plugin install obsidian-dataview after adding the marketplace above.

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-dataview

README.md
[![agentmods](https://agentmods.dev/badge/skills/lexbritvin/obsidian-skills-pack/obsidian-dataview/github.svg)](https://agentmods.dev/skills/lexbritvin/obsidian-skills-pack/obsidian-dataview)
Your own site
<a href="https://agentmods.dev/skills/lexbritvin/obsidian-skills-pack/obsidian-dataview"><img src="https://agentmods.dev/badge/skills/lexbritvin/obsidian-skills-pack/obsidian-dataview/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for obsidian-dataview

Your own site · 80×15
<a href="https://agentmods.dev/skills/lexbritvin/obsidian-skills-pack/obsidian-dataview"><img src="https://agentmods.dev/badge/skills/lexbritvin/obsidian-skills-pack/obsidian-dataview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 297 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00297 $0.03081
Opus 5 $0.00148 $0.01541
Sonnet 5 $0.00059 $0.00616
Haiku 4.5 $0.00030 $0.00308

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

Security

Grade A, and why

obsidian-dataview 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 5d 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.

skills/obsidian-dataview/SKILL.md · 160 lines

How it starts

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

Dataview

Reference for authoring queries and scripts against the Obsidian Dataview plugin. Dataview indexes vault metadata (frontmatter, inline fields, tasks, links) and exposes it through four codeblock surfaces.

This file is the index. For deep coverage, consult the reference files (loaded only when relevant).

What Dataview is

A read-only metadata index. It scans the vault, builds a typed in-memory database from frontmatter + inline fields + tasks + the Obsidian link graph, and renders results back into notes through codeblocks. It does not modify files (the one exception: clicking a checkbox in a rendered TASK block toggles the underlying source, but DataviewJS code itself cannot write).

The four codeblock surfaces

Surface Fence Use it for
DQL query ```dataview Static, declarative views. Safer, faster to render, no JS required.
DataviewJS ```dataviewjs Anything DQL can't express: control flow, multi-step computation, custom DOM, awaiting dv.io/dv.query, custom views via dv.view.
Inline DQL `= expr` (default prefix =) Single-value expression rendered inline mid-paragraph.
Inline JS DQL `$= expr` (default prefix $=) Same idea, full dv API available.

JS surfaces are gated by the plugin's "Enable JavaScript Queries" toggle. Treat third-party DataviewJS as untrusted code — it has full vault read access.

Decision tree — DQL vs DataviewJS

Pick DQL unless one of these is true:

  • The output needs await (dv.query, dv.io.csv, dv.io.load, dv.view).
  • You want loops, mutable state, conditionals over the rendered output (e.g. one header per group, then a per-group table).
  • You want to render a custom DOM structure or multiple sub-views in one block.
  • The transformation needs intermediate variables that DQL can't express.
  • You need to import a dv.view("Scripts/foo", input) helper.

Otherwise DQL wins on conciseness, performance, and reactivity.

Read the full file on GitHub · 160 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago Changed · +297 tokens per session 3dff02388bc5
  2. 11d ago First seen · 160 lines · 0 tokens per session scan A c673a8db1463

Subscribe to this mod's changes

obsidian-dataview is a skill published in the GitHub repository lexbritvin/obsidian-skills-pack (2 stars, last pushed 6d ago), licensed MIT. It adds 297 tokens to every session and 3,081 once invoked, about $0.0015 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.

Related

Other skills, from other repositories