From onebrain
Cross-session synthesis : reads session logs from the past 7 days, surfaces patterns and insights, and updates MEMORY.md Key Learnings. Run periodically to keep long-term memory current.
npx claudepluginhub kengio/onebrain --plugin onebrainThis skill uses the workspace's default tool permissions.
Reads session logs from the past 7 days, surfaces patterns, decisions, and insights across sessions, then updates `MEMORY.md` Key Learnings with new, deduplicated entries.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
Reads session logs from the past 7 days, surfaces patterns, decisions, and insights across sessions, then updates MEMORY.md Key Learnings with new, deduplicated entries.
Distinct from /wrapup: /wrapup summarizes the current session just ended. /recap looks back across multiple sessions to surface long-term patterns.
Read vault.yml and extract:
folders.logs as [logs_folder] (default: 07-logs)folders.agent as [agent_folder] (default: 05-agent)Glob [logs_folder]/**/*.md. Filter to files whose date frontmatter value is within the past 7 days (today inclusive).
Report to the user:
Found N sessions (DD Mon – DD Mon)
If no sessions found:
No sessions found in the past 7 days. Nothing to recap.
Exit gracefully : do not proceed.
Read each session log. Extract:
Present the synthesis to the user before writing anything:
## Recap : DD Mon – DD Mon (N sessions)
**Patterns noticed:**
- [recurring theme across sessions, e.g. "5 of 7 sessions touched OneBrain infrastructure"]
**Key decisions:**
- [consolidated list of decisions made across sessions]
**Insights worth keeping:**
- [insight not already present in MEMORY.md Key Learnings]
**Open threads:**
- [question that appeared in logs but was never answered]
If a category has nothing to report, omit it.
Compare every entry in "Insights worth keeping" against the existing ## Key Learnings & Patterns section in [agent_folder]/MEMORY.md:
| Case | Action |
|---|---|
| Insight is identical or a subset of an existing entry | Drop : do not append |
| Insight extends or refines an existing entry | Merge into the existing entry |
| Insight is genuinely new | Keep for append |
To merge: rewrite the existing bullet in-place to incorporate the new detail, keeping the original date.
After dedup, if no new insights remain:
All insights are already captured in MEMORY.md : nothing new to add.
Exit : do not write.
Append each new post-dedup insight to the ## Key Learnings & Patterns section of [agent_folder]/MEMORY.md:
- YYYY-MM-DD : [observation]
Also update the updated: field in the frontmatter to today's date.
Count the total lines in [agent_folder]/MEMORY.md. If the count exceeds 180:
MEMORY.md is now N lines (recommended limit: 180). Consider running
/learnto distill and condense older entries.
Do not modify [agent_folder]/memory/ or [agent_folder]/context/ : these are managed by /learn only.
Recap complete. Added N new insights to MEMORY.md (M already captured : skipped).
If overflow warning was triggered, append:
MEMORY.md is now N lines : consider /learn to trim.
If nothing was written (all deduped):
Recap complete. No new insights to add : all N insights already captured in MEMORY.md.