com um clique
logseq-debug-workflow
// Debug Logseq bugs with the right runtime, concrete before/after evidence, and end-to-end reproduction steps.
// Debug Logseq bugs with the right runtime, concrete before/after evidence, and end-to-end reproduction steps.
Review Logseq code changes, PRs, patches, commit ranges, or implementation plans through one main-agent orchestration workflow that routes read-only subagents across independent review passes, then deduplicates, validates, and reports findings for the web app, desktop app, and Logseq CLI.
Operate the current Logseq command-line interface to inspect or modify graphs, pages, blocks, tasks, 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.
Answer user questions about the Logseq repository by researching source code, docs, tests, runtime behavior, and local tools. Use when Codex needs to explain how Logseq works, why behavior happens, where logic lives, how CLI/Desktop/Web flows interact, or what evidence supports an answer, without implementing features or fixing bugs.
Build, debug, or review Logseq plugins with the `@logseq/libs` SDK (TypeScript/JavaScript, iframe/shadow sandboxed). Use when the task involves writing plugin entry code, registering slash/command/UI items, provideUI/provideStyle/provideModel, settings schema, macro renderers, DB-graph properties & tags, Datascript/DSL queries, experimental APIs, theme plugins, or the `logseq/*` CLJS facade generated under this package.
Start and coordinate Logseq development REPL workflows for the Desktop renderer `:app`, Electron main-process `:electron`, and `:db-worker-node` runtimes through one unified workflow.
Collect, interpret, and troubleshoot db-sync server usage stats (total users/graphs, active users/graphs in N days, created-today metrics) using the `deps/db-sync` scripts and D1 schema. Use when requests involve `show-usage-stats`, server usage reporting, active-entity counting, or Cloudflare D1 cost impact of usage tracking.
| name | logseq-debug-workflow |
| description | Debug Logseq bugs with the right runtime, concrete before/after evidence, and end-to-end reproduction steps. |
Use for any Logseq bug investigation.
Treat this as a debugging workflow, not a code-only change.
Before claiming a fix, you must:
:app for renderer, DOM, UI, frontend state:electron for main-process, BrowserWindow, IPC, app config:db-worker-node for worker DB behavior, worker IPC, queries, transactionslogseq command behaviorDo not say the bug is fixed if any of these is missing:
Unit tests alone are not enough when this skill applies, unless the bug is truly unit-level and you explicitly justify that.
If the environment blocks full verification, report:
prn checkpoints when helpful.check logseq-repl skill.
When running under Codex, using the REPL is not enough for :app verification. Also use the chrome skill, open the :app target in the browser, and verify the behavior there.
Logs are evidence. Check them early for Electron, CLI, worker, IPC, async, or persistence issues.
Common locations:
tmp/desktop-app-repl/desktop-electron.log (logseq-repl skill)tmp/logseq-repl/shared-shadow-watch.log (logseq-repl skill)~/Library/Logs/Logseq/main.log~/Library/Logs/Logseq/main.old.log~/Library/Application Support/Logseq/configs.edndb-worker-node-<timestamp>.logBefore using logseq, load logseq-cli skill.
The final response must include these sections or an equivalent structure:
Before ending, make sure the answer is yes to all:
--profile before/after on the same graph and command.--graph, --data-dir, and output mode.Common checks: bb dev:test -v <namespace/testcase-name>, bb dev:lint-and-test, bb dev:cli-e2e.