logseq-schema
Logseq Schema
Overview
Use this skill to ground Datascript queries in Logseq's schema: core block/page/file attributes, built-in properties, built-in classes, and schema entities with :db/ident. Load references/logseq-datascript-schema.md for authoritative sources and query patterns, and
references/logseq-datascript-query-examples.md for scenario-based query examples.
Glossary
db/id: Internal numeric entity id (use with CLI flags like--id).:block/uuid: Stable UUID for a block entity; prefer when you need a persistent reference.:block/name: Lowercased page name, used for page lookup and joins.:block/title: Block or page title stored in the DB graph (use in queries when content text is needed).:block/tags: Ref-many attribute linking blocks to tag/page entities.:user.property/<name>: Namespace for user-defined properties stored directly on block entities.:logseq.property/*: Namespace for built-in properties stored directly on block entities.
Important Notes
- Never use following block attrs in
queryorpull, these attrs are file-graph only, never used in db-graphs::block/format,:block/level,:block/level-spaces,:block/pre-block?,:block/properties-order,:block/properties-text-values,:block/invalid-properties,:block/macros,:block/file,:block.temp/ast-body,:block.temp/ast-blocks,:block/marker,:block/content,:block/priority,:block/scheduled,:block/deadline,:block/properties,:block/left. - User properties are stored as
:user.property/<name>attributes on the block/page entity.
More from rcmerci/skills
logseq-cli
Operate the current Logseq command-line interface to inspect or modify graphs, pages, blocks, tags, and properties; run Datascript queries; show page/block trees; manage graphs; and manage db-worker-node servers. Use when a request involves running `logseq` commands or interpreting CLI output.
31clojure-paren-repair
Repair unbalanced parentheses, brackets, and braces in Clojure, ClojureScript, and EDN files. Use when you encounter delimiter mismatch syntax errors after editing .clj, .cljs, .cljc, or .edn files, or on clojure syntax errors.
9logseq-electron-debug
Run Logseq Electron dev build with a remote debugging port and attach Chrome DevTools (CDP) reliably.
6clojure-debug
Debugging workflow for Clojure/ClojureScript code. Use at the first sign of unexpected behavior or test failure in Clojure/CLJS, including any failing test, unexpected output, nils where data is expected, mismatched selectors, or unclear data flow—before making further implementation changes.
4clojure-malli
|
3clojure-babashka-cli
Turn Clojure functions into CLIs with babashka.cli. Use when working with command-line argument parsing, building CLIs, subcommand dispatching, option validation, or creating tools with babashka/clojure.
3