Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

querying-logseq-data

Skill by aiskillstore

Writes and explains Datalog queries for Logseq DB graphs, covering find specs, pull syntax, aggregations, rules and recursive queries. Aimed at Logseq users who build queries or work with the Datascript query engine.

  • Score 65
  • 510 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install querying-logseq-data

Built from the published package, never by AI.

git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/marketplace/skills/c0ntr0lledcha0s/querying-logseq-data ~/.claude/skills/querying-logseq-data

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install querying-logseq-data in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant guidance on writing Datalog queries for Logseq DB graphs. It explains the basic query structure and find specifications, then shows common patterns such as finding pages, blocks by tag or property, tasks by status, and date ranges. It also covers aggregations, rules, negation, or clauses, recursive queries, and pull syntax, including reverse references.

The source also describes DB-specific classes and properties, journal queries, and optimization tips such as placing the most selective clauses first. It compares a simple Logseq query with its Datalog equivalent and an advanced query block. It lists gotchas between MD and DB attribute names and property namespaces. It is aimed at Logseq users and developers who write or tune Datascript queries.

Written from the project's SKILL.md and checked against it.

What it can do

  • Find specificationsExplains how to return tuples, collections, single values and pulled entities.
  • Common query patternsShows queries for pages, tagged blocks, properties, tasks and date ranges.
  • AggregationsShows count, sum, avg, min and max queries over Logseq data.
  • Rules and recursionCovers reusable rule definitions and recursive queries such as finding descendants.
  • Pull syntaxExplains selective attributes, nested pulls, result limits and reverse references.
  • DB-specific patternsCovers classes, class hierarchy, user properties and journal page queries.
  • Query optimizationGives tips on clause order, indexed attributes and limiting results.
  • Simple vs Datalog comparisonMaps Logseq query UI syntax to equivalent Datalog and advanced query blocks.

Try asking

  • Write a Datalog query that finds all Book pages with a rating of 5.
  • Explain how the :in and :where clauses work in a Logseq query.
  • Help me write a recursive rule that finds all descendants of a block.

Good to know

  • Examples target Logseq DB graphs; MD attribute names appear only as gotchas.
  • Optimization points are given as tips, not measured benchmarks.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/c0ntr0lledcha0s/querying-logseq-data/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadGrepGlobWebFetchWebSearch

Alternatives to querying-logseq-data

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

querying-logseq-data: common questions

What kind of Logseq queries does this skill help with?

It helps with Datalog queries for Logseq DB graphs, including find specs, pull syntax, aggregations, rules and recursive queries. The source says it also covers query performance.

Does it explain the difference between MD and DB graphs?

Yes. The source lists gotchas such as MD attributes like :block/content and :block/name versus DB attributes like :block/title and :block/tags.

Can it convert simple Logseq query syntax into Datalog?

The source includes an example of a simple query written in the Logseq query UI and its equivalent Datalog form. Converting simple query syntax to full Datalog is listed as a trigger for the skill.

How do I install querying-logseq-data?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is querying-logseq-data free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is querying-logseq-data safe to use?

It scores 65 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to querying-logseq-data?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

querying-logseq-data Install

Add to stack

Loading.