logseq-queries

Filters LogSeq blocks and pages using simple and advanced Datalog queries.

1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/jluo41/Tools --skill logseq-queries
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logseq-queries
Source: https://github.com/jluo41/Tools/tree/main/plugins/logseq/skills/logseq-queries
Command: npx skills add https://github.com/jluo41/Tools --skill logseq-queries

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LogSeq users often need to filter, search, and aggregate blocks and pages across large graphs. This Skill provides both simple queries and advanced Datalog-style queries to retrieve just the content you need, improving searchability and productivity.

Core Features & Use Cases

  • Simple queries for fast filtering of blocks and pages by markers, tags, or text.
  • Advanced Datalog (Datascript) queries for full database access and complex data relationships.
  • Use cases include building dynamic views, filtering tasks, and discovering related notes within a LogSeq graph.

Quick Start

Ask me to generate a LogSeq query to filter blocks and pages in your graph.

Frequently Asked Questions about logseq-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter Logseq blocks and pages by tags or markers?

You can filter Logseq blocks and pages by tags or markers using simple query syntax to quickly narrow down content based on text, tags, or task markers. This reveals relevant blocks and pages across your Logseq graph.

Can I use Datalog queries for complex data relationships in Logseq?

Yes, you can use advanced Datalog queries for full database access in Logseq. This supports complex data relationships across Logseq graphs, enabling you to build dynamic views and aggregate blocks beyond simple text filtering.

What is the best way to track tasks and discover related notes in a Logseq graph?

The best way to track tasks and discover related notes in a Logseq graph is by running queries to filter content. You can use simple query syntax or advanced Datascript queries to retrieve the exact blocks and pages needed.

Do I need to know Datascript to run simple block searches in Logseq?

No, you do not need to know Datascript to run simple block searches in Logseq. You can use simple query syntax for fast filtering of blocks and pages by markers, tags, or text without writing full Datalog queries.

Why use advanced queries instead of standard search for Logseq knowledge management?

Advanced queries leverage Datascript for full database access and complex data relationships in Logseq knowledge management. Unlike standard search, they allow you to build dynamic views, aggregate blocks, and filter tasks across large graphs programmatically.