From notebooklm-galaxia
End-of-session wrap-up. Summarizes the session, saves durable knowledge into the gbrain brain (canonical memory), updates Claude memories, and optionally generates a NotebookLM media artifact (podcast/briefing). Triggers on /wrapup or "wrap up", "save this session", "end of session", "session summary".
How this skill is triggered — by the user, by Claude, or both
Slash command
/notebooklm-galaxia:wrapupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run at the end of a session to capture what happened and commit it to long-term memory.
Run at the end of a session to capture what happened and commit it to long-term memory.
Galaxia's canonical memory is gbrain (Postgres+pgvector, with the Obsidian vault as the system of record). NOT NotebookLM. This wrap-up writes durable knowledge into gbrain. NotebookLM stays optional: use it only to generate a media artifact of the session (podcast, briefing) when it makes sense, never as memory storage.
The wrap-up writes via the gbrain CLI (which must point at the Galaxia brain). Check:
gbrain stats 2>&1 | head -3
If gbrain is not pointed at the right backend, export the connection (cloud Postgres) before writing:
export DATABASE_URL='<brain Postgres connection string>' # or the local gbrain config
If gbrain is unreachable: do NOT block. Save the Claude memories locally and tell the user the brain capture is skipped.
Re-read the whole conversation and identify:
Quality filter: only capture what is meaningful and will be useful later. Small talk and ephemeral exchanges do not go into the brain.
For each durable item, write an atomic page into gbrain:
# Session summary (one slug per day, suffix if multiple sessions)
cat > /tmp/session.md << 'MD'
---
title: "Session [topic] - YYYY-MM-DD"
type: note
tags: [type/session, source/wrapup]
---
# Session [topic] - YYYY-MM-DD
## Done
- ...
## Decisions
- ... (what + why)
## Learnings
- ...
## Open threads
- ...
MD
gbrain put "sessions/YYYY-MM-DD-[topic]" < /tmp/session.md
For a structural decision or a new entity (project/person/company) that deserves its own page, write a dedicated page rather than burying it in the summary. Link pages with gbrain link <from> <to> when relevant.
Rules: atomic page, clear title, do not duplicate (check first with gbrain search "..."), absolute dates.
Update the Claude memory index (MEMORY.md + files) as usual:
Do not duplicate, do not save what is derivable from code/git, use absolute dates.
If the session is significant and the user wants a media artifact (otherwise skip):
# Push the summary as a source, then generate a briefing or podcast
notebooklm create "Galaxia Sessions" --json # once, reuse the id afterwards
notebooklm source add /tmp/session.md --notebook <id>
notebooklm generate audio "Summarize this session as a 5-minute deep-dive" # or: generate report --format briefing-doc
Do NOT make NotebookLM the memory store: the source of truth stays gbrain. Here NotebookLM only produces a listenable/readable media artifact.
Tell the user, briefly:
notebooklm missing: skip the media (optional), do not block the wrap-up.notebooklm skill.npx claudepluginhub buldee/notebooklm-galaxia --plugin notebooklm-galaxiaCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.