brain-save
Original:🇺🇸 English
Translated
Save session context, decisions, progress, and plans to the Claude Brain Logseq graph. Triggers: "save to brain", "save this", "remember this", "store this decision", "log this", "save progress", "before I quit", "wrap up". Don't fire for read operations (use brain-load) or status checks (use brain-status).
5installs
Sourcejame581/logseqbrain
Added on
NPX Install
npx skill4agent add jame581/logseqbrain brain-saveTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Brain Save
Persist session context — decisions, progress, plans, implementation details — to the Claude Brain Logseq graph for cross-session and cross-device continuity.
Prerequisites
Resolve the graph path per .
skills/_shared/path-resolution.mdWhat to Save
Six categories — see for each one's format and rules. The orchestrator decides which apply based on what the session covered:
references/categories.md- Session Log Entry (always)
- Decisions (when made — see for conflict + cross-project rules)
references/decisions.md - Plan Updates (when plans changed — replace, don't append)
- Implementation Details (when significant)
- Jira Task Context (when tasks were worked on — store pointers, not full plans)
- User Preferences & Meta (when newly discovered — update )
pages/Meta.md
Save Process
-
Identify target project(s). Look for project names mentioned, files/repos discussed, or explicit user statements ("we're working on X"). If multiple projects, save to each. If unclear, ask: "This touched [X] and [Y] — save to both?"
-
Verify project page exists. Glob for. If missing:
pages/Projects___<ProjectName>.md- Tell user: "No project page found for [name]. Want me to create one first?"
- If yes, hand off to "Adding a New Project" flow, then continue.
brain-init - If no, list available projects and let the user pick.
- Never write session data to a non-existent project page.
-
Read the current project page selectively using the section-targeted-read pattern in. Read only the sections you'll touch (Session Log, Decisions, Current Plan, Implementation) — never the whole file. The read serves two purposes: detect duplicates before appending, and provide enough surrounding lines for the Edit
skills/_shared/section-locator.mdto be unique.old_string -
Prepare the updates for each applicable category from.
references/categories.md -
Write the updates using the Edit tool — surgical updates per section, never rewrite the whole page:
- Append to Session Log
- Append to Decisions (with conflict check per )
references/decisions.md - Replace Current Plan if changed
- Update Implementation if needed
- Update to today's date
last-updated::
-
Update the journal —. Append a rich cross-reference to today's
## Sessions:journals/yyyy_MM_dd.mdmarkdown- ## Sessions - [[Projects/ProjectName]]: Brief summary of session -
Updateif new user preferences emerged (see
pages/Meta.mdcategory 6).references/categories.md -
Updateif a project status changed or new cross-project info emerged.
pages/Index.md -
Write a journey-log entry perwith activity line:
skills/_shared/journey-log.md.saved [[Projects/<ProjectName>]] -
Confirm to the user in plain language what was saved. List each thing written.
Auto-Suggest Save
See . Suggestion only — never auto-save.
references/auto-suggest.mdImportant Notes
- Edit tool for surgical updates only. Never rewrite a whole page (sync conflicts).
- All content in bullet-point format. See for Logseq invariants.
CLAUDE.md - When appending, place new entries at the end of the section, before the next heading.
## - If doesn't exist, create it (Bash
journals/) before writing the journal entry.mkdir -p