/logseq-brain:brain-loadfrom logseq-brain
Loads project context from a Logseq graph into the current session. Activated by phrases like 'load brain', 'load <project>', 'resume <project>', or 'search brain for X'.
Ships in logseq-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
sh "<this skill's base directory>/../_shared/bin/brain" <command> …& "$(Split-Path (Split-Path (Get-Command git).Source))\bin\bash.exe" "<base>/../_shared/bin/brain" <command> …--graph <connected folder>. Elsewhere pass --graph only when the graph is not configured. It may go anywhere on the line. On exit 2 with graph not resolved, follow skills/_shared/path-resolution.md, then pass --graph.' inside becomes '\''. In double quotes the shell runs backticks and expands $.coverage: line. Never recompute a figure it printed. Its graph: line is the folder for your own Read, Edit and Write calls.One call: brain load <name>. Pass the user's words as-is. Don't list the graph first. On page not found, offer its did you mean: lines. Only when there are none, follow references/matching.md. On no task page: (exit 2): present any did you mean: lines first (offer, don't accept). Only when its offer: create Tasks/<ID> line is printed, quote the links: line and ask "No page for yet (N links in M files). Create one?". No offer: line means a page exists under another case: offer that page, never a new one. On yes follow skills/_shared/task-pages.md; on no, offer to read the linking pages instead (brain links Tasks/<ID> --context 1). Never create it unasked.
Read its blocks:
map: stale or missing: say so, and state coverage from computed:. Read-only: suggest a save, never write.drift: over 30 days: suggest a rebuild (skills/_shared/digest.md), never unprompted.staleness: aging: "Note: last updated N days ago." stale / abandoned: for a project use the wording in skills/_shared/staleness.md's project rows; for a task page (Tasks___ path, type:: task) use its task rows. (no valid last-updated): suggest a brain-save to set one. fresh and exempt: say nothing.== journal: today's notes on the page. Quote its coverage line.digest: missing: take the fallback. digest: not applicable: not a project page; read it with bounded brain read / brain tail.== activity: already logged; don't log again.Stop reading. Don't pre-load sections, linked pages or task pages. Fetch more only on request, one level at a time, per skills/_shared/escalation.md.
Active tasks: name the task IDs the digest mentions. Never read a task page's body.
Continuity hint: "Picking up where you left off — focus: [focus]. Next: [next]. Open: [open]."
Present, with what was not read. Give the name, status, staleness, the digest bullets and the hint. Then paraphrase the Map's label | figure clauses:
Loaded digest for Unicorn-Globus (active, updated 2026-09-07). Focus: … Next: … Not read: Session Log 151 KB (62 entries), Decisions 3 KB (3), Current Plan 3 KB, 7 smaller sections. Ask and I'll search any of it.
Mandatory: a digest shown without what it omits reads as the whole history.
brain load printed the section table. A Tasks___ page: read its largest one or two sections from the table, brain read <page> '<section>', or brain tail <page> '<section>' --max 8192 over the cap, quoting coverage; then list what you didn't read and ask the "Build one?" question below, logging brain activity 'loaded [[Tasks/<ID>]] (brief)'. A project page: read, bounded, with coverage:
Read <graph:>/pages/Projects___<Name>.md with offset = its line in the table, limit 6.brain read <page> 'Current Plan'; over its cap, brain tail <page> 'Current Plan' --max 8192.brain tail <page> 'Session Log' --entries 3 --max 4096.Build the hint from the newest entry. Then list every section you didn't fetch, with its bytes from the table (mandatory). Log it: brain activity 'loaded [[Projects/<Name>]] (brief)'. End with this question, with the bytes read: "This page has no digest yet — this load read ~X KB; a digest brings loads to about 2 KB. Build one?" Build only on yes, via Rebuild in skills/_shared/digest.md.
brain load <name> --mode full prints the section table and full-budget:. Over 24 KB, state it and ask first. Then run brain read on Overview, Current Plan, Implementation and Decisions, and brain tail <page> 'Session Log' --entries 10 --max 8192. Report any section refused by its cap. For each task the page references, run brain digest Tasks/<ID>, skipping status:: done. Linked [[Projects/…]] pages: brain digest only, never the body. Then log it: brain activity 'loaded [[Projects/<Name>]] (full)' ([[Tasks/<ID>]] for a task page).
Read pages/Index.md and pages/Meta.md (both small). Present active projects, cross-project decisions, preferences. brain activity 'loaded brain overview'.
Follow references/search.md, then brain activity 'searched "X" · N hits'.
Never Read a whole page.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
logseq-brain@skillsmith is listed by jame581/skillsmith — review the source before installing
npx claudepluginhub jame581/skillsmith --plugin logseq-brain5 skills in this plugin
/brain-doctorLint and repair the Claude Brain Logseq graph — find and fix format violations that create phantom pages or broken macros. Triggers: "brain doctor", "lint brain", "check brain health", "clean up brain", "fix brain", "graph hygiene", "why are there empty pages", "find broken pages", "backfill digests", "rebuild digest for <project>". Don't fire for loads (use brain-load), saves (use brain-save), status/analytics (use brain-status), or first-time setup (use brain-init).
/brain-initSet up the Claude Brain Logseq graph (first-time) or add a new project page. Triggers: "init brain", "setup brain", "init brain project <name>", "add project to brain". Don't fire for loads, saves, or status checks — those are handled by brain-load, brain-save, and brain-status.
/brain-Other plugins' skills for the same job