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.
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-dataRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/marketplace/skills/c0ntr0lledcha0s/querying-logseq-data ~/.gemini/antigravity-cli/skills/querying-logseq-dataAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install querying-logseq-data in Antigravity CLI
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
