AgentStack
SKILL verified MIT Self-run

Logseq File Graph Knowledge

skill-weilong-qin-logseq-skills-logseq-file-graph-knowledge · by Weilong-Qin

Canonical guidance for Logseq file graphs (Markdown). Use this skill to avoid DB-graph assumptions. Covers tasks (markers), properties (key:: value), and query syntax ({{query ...}} and advanced queries).

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-weilong-qin-logseq-skills-logseq-file-graph-knowledge

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Logseq File Graph Knowledge? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Logseq File Graph Knowledge

This skill is the “ground truth” for working with Logseq file graphs (the classic graph type backed by Markdown files).

Many assistants confuse Logseq DB graphs with file graphs. When the user is in a file graph, use these rules.

Scope

  • Graph type: file-based (Markdown files)
  • Primary use case: everyday note-taking, tasks, GTD, dashboards

Tasks (File Graph)

Task markers

In file graphs, tasks are ordinary blocks prefixed with a marker keyword.

Common marker sequences:

  • LATERNOWDONE
  • TODODOINGDONE

Additional markers that may appear:

  • WAIT / WAITING
  • IN-PROGRESS
  • CANCELED / CANCELLED

Creating and cycling markers

  • Users can type the marker at the start of the block (e.g., TODO call Alice).
  • Users can also use the editor command (e.g., /TODO).
  • Users can cycle markers with Ctrl/Cmd+Enter.

Priority

File graph tasks support priorities:

  • [#A] (highest), [#B], [#C] (lowest)

Example:

- TODO [#A] Finish weekly review

Scheduling and deadlines

In file graphs, scheduling is typically expressed via Logseq’s built-in SCHEDULED: and DEADLINE: syntax (inserted via /Scheduled and /Deadline).

Example:

- TODO Submit form
  DEADLINE: 

Properties (File Graph)

Block properties

Block properties are written as:

key:: value

Properties can appear:

  • in the same block (inline), or
  • in a child block (common for metadata)

Property naming rules (important)

  • Property names are case-insensitive and normalized to lowercase.
  • Property names with _ are normalized to - (e.g., done_at becomes done-at).
  • Property values cannot contain newlines.

Values

Property values can include:

  • plain text
  • page references like [[Project X]]
  • tags like #inbox
  • links

To force a value to be treated as plain text (no page refs), wrap it in quotes:

source:: "[[Not a page]]"

Queries (File Graph)

Logseq supports two common query styles.

Simple query blocks

Use:

{{query ...}}

Examples:

{{query (task todo)}}
{{query (and (task todo doing) [[Project X]])}}
{{query (and (task todo) (priority a))}}
{{query (and [[inbox]] (task todo doing))}}
{{query (and (task todo) (not [[inbox]]))}}

Advanced queries

Use an advanced query block when simple query filters are not enough.

General shape:

#+BEGIN_QUERY
{:title "My query"
 :query [:find (pull ?b [*])
        :where
        ...]}
#+END_QUERY

Safe defaults for user-facing workflows

When you are building workflows for file graphs:

  • Use markers (TODO/DOING/DONE) for tasks.
  • Use child blocks with key:: value for metadata.
  • Prefer simple {{query ...}} blocks for dashboards.
  • Do not use DB-graph-only concepts like #Task classes, Status property tasks, or {:query ...}-only conventions.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.