Agent skill · software engineering · aiskillstore

reading-logseq-data

Expert in reading data from Logseq DB graphs via HTTP API or CLI. Auto-invokes when users want to fetch pages, blocks, or properties from Logseq, execute Datalog queries against their graph, search content, or retrieve backlinks and relationships. Provides the logseq-client library for operations.

Why this skill is useful

Provides specific Datalog query patterns and a client library for interacting with Logseq data that the AI wouldn't reliably generate on its own.

What it needs

Requires python installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Reading Logseq Data When to Use This Skill This skill auto-invokes when: User wants to read pages or blocks from their Logseq graph Fetching properties or metadata from Logseq entities Executing Datalog queries against the graph Searching for content in Logseq Finding backlinks or references User mentions "get from logseq", "fetch page", "query logseq" Client Library: See {baseDir}/scripts/logseq-client.py for the unified API. Available Operations Operation Description ----------- ------------- getpage(title) Get page content and properties getblock(uuid) Get block with children search(query) Full-text search across graph datalogquery(query) Execute Datalog query listpages() List all pages getbacklinks(title) Find pages linking to this one getgraphinfo() Get current graph metadata Quick Examples Get a Page Execute Datalog Query Search Content Datalog Query Patterns Find All Pages Find Blocks with Tag Find by Property Find Tasks by Status Find Backlinks Aggregations Using the Client Library Initialization Error Handling Batch Operations Performance Tips 1. Use specific queries - Don't fetch more than needed 2. Prefer pull syntax - (pull ?e [:needed :fields]) vs [] 3. Put selective clauses first - Filter early in query 4. Use parameters - Pass values via :in clause 5. Batch when possible - Multiple items in one query CLI Fallback If HTTP API unavailable, the client falls back to CLI: Output Formats Raw (default) Returns Python dicts/lists directly from API. Normalized Reference Materials See {baseDir}/references/read-operations.md for all operations See {baseDir}/templates/query-template.edn for query patterns

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/reading-logseq-data

View the source on GitHub

Browse the @skills marketplace