obsidian-tasks-query

obsidian-tasks-query is a skill for Claude Code, Codex from lexbritvin/obsidian-skills-pack. It costs 89 tokens per session (803 once invoked), scanned A, original, MIT.

A guide for writing Obsidian Tasks query blocks in Markdown notes. These blocks create live task lists from tasks across an Obsidian vault, with filters, sorting, grouping, and display options.

In plain words
What is it for?
Use it to build task dashboards, overdue lists, weekly views, project groups, priority reports, and backlogs without due dates.
Why use it?
It avoids manually collecting and updating tasks in notes. You can show only the tasks that match conditions such as due date, priority, folder, or completion status.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build task dashboards, overdue lists, weekly views, project groups, priority reports, and backlogs without due dates.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lexbritvin/obsidian-skills-pack/obsidian-tasks-query/github.svg)](https://agentmods.dev/skills/lexbritvin/obsidian-skills-pack/obsidian-tasks-query)
Your own site
<a href="https://agentmods.dev/skills/lexbritvin/obsidian-skills-pack/obsidian-tasks-query"><img src="https://agentmods.dev/badge/skills/lexbritvin/obsidian-skills-pack/obsidian-tasks-query/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-tasks-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/lexbritvin/obsidian-skills-pack/obsidian-tasks-query"><img src="https://agentmods.dev/badge/skills/lexbritvin/obsidian-skills-pack/obsidian-tasks-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 803 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.00089 $0.00803
Opus 5 $0.00044 $0.00402
Sonnet 5 $0.00018 $0.00161
Haiku 4.5 $0.00009 $0.00080

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

Security

Grade A, and why

obsidian-tasks-query 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 11d 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-tasks-query/SKILL.md · 108 lines

How it starts

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

Creating Task Queries

Write tasks code blocks in markdown notes. The Tasks plugin renders them as live, filtered views of tasks across the vault.

Query Block Syntax

```tasks
not done
due before tomorrow
sort by priority
```

Each line is a separate instruction. All filter lines must match (implicit AND). Queries are case-insensitive except boolean operators (AND, OR, NOT must be UPPERCASE — lowercase is silently ignored). Add explain to any query to debug how Tasks interprets it.

Common Patterns

Overdue tasks:

```tasks
not done
due before today
sort by due
```

Due this week, grouped by file:

```tasks
not done
due this week
group by filename
sort by due
```

High priority:

```tasks
not done
(priority is highest) OR (priority is high)
sort by due
```

Exclude folders:

```tasks
not done
(folder does not include Templates) AND (folder does not include Archive)
sort by due
```

Backlog (no dates):

```tasks
not done
no due date
no scheduled date
sort by path
limit 20
```

These cover the most common cases. For anything more complex — date ranges, custom scripting, regex filters, layout options — read the reference files below.

Overriding the Global Query

The Tasks plugin has a globalQuery setting (Settings → Tasks → Global query) that prepends to every query block. To run a block without it — for example a "show everything" view, or to look at items the user has globally hidden — add ignore global query as the first line:

```tasks
ignore global query
not done
group by filename
```

This disables the entire globalQuery for that block. Selective override of individual lines is not supported — it's all or nothing. Use this when you specifically want to surface tasks the global filter normally hides (e.g. items tagged #wishlist or #learning in frontmatter).

Boolean Filters

Combine multiple conditions on a single line with operators:

Read the full file on GitHub · 108 lines

Files

What ships with it

2 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. 11d ago First seen · 108 lines · 89 tokens per session scan A 487a34bd9984

Subscribe to this mod's changes

obsidian-tasks-query is a skill published in the GitHub repository lexbritvin/obsidian-skills-pack (2 stars, last pushed 5d ago), licensed MIT. It adds 89 tokens to every session and 803 once invoked, about $0.0004 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