npx claudepluginhub kengio/onebrain --plugin onebrainThis skill uses the workspace's default tool permissions.
Generates a summary of this session and saves it to the logs folder for future recall.
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.
Generates a summary of this session and saves it to the logs folder for future recall.
If vault.yml exists, read it and extract:
folders.logs as logs_folder (default: 07-logs)folders.agent as agent_folder (default: 05-agent)Use these variables for all file paths in the steps below.
YYYY-MM-DD. Extract YYYY and MM.[logs folder]/YYYY/MM/YYYY-MM-DD-checkpoint-*.md (also check yesterday's folder if session started before midnight : i.e., [logs folder]/YYYY/MM_PREV/YYYY-MM-DD_PREV-checkpoint-*.md for the prior calendar day)merged is absent or not trueIf none found: continue normally.
YYYY and MM (zero-padded month).[logs folder]/YYYY/MM/ matching YYYY-MM-DD-session-*.md[logs folder]/YYYY/MM/YYYY-MM-DD-session-NN.mdReflect on the conversation that just occurred. Identify:
If checkpoints were found in Step 1: do not write the session log until the content of every checkpoint file read in Step 1 is reflected in the sections below. All Key Decisions, Action Items, and Open Questions from checkpoints must appear explicitly : not summarized into a single line.
Create [logs folder]/YYYY/MM/YYYY-MM-DD-session-NN.md:
---
tags: [session-log]
date: YYYY-MM-DD
session: NN
---
# Session Summary : [Month DD, YYYY] (Session N)
## What We Worked On
[1-3 sentences describing the session's focus]
## Key Decisions
- [Decision 1]
- [Decision 2]
## Insights & Learnings
- [Insight 1]
- [Insight 2]
## What Worked / Didn't Work
- โ
[Something that worked well]
- โ [Something that didn't work or slowed things down]
_Omit this section if the session had no notable friction or technique worth logging._
## Action Items
- [ ] [Action item 1] ๐
YYYY-MM-DD
- [ ] [Action item 2] ๐
YYYY-MM-DD
## Open Questions
- [Question or uncertainty to revisit]
## Related Notes
[[Link to relevant vault notes if applicable]]
If the Step 1 checkpoint list is non-empty (i.e., at least one file was read and incorporated):
For each checkpoint file path stored in Step 1:
merged: true : handle all variants:
merged: false โ replace with merged: truemerged: null or bare merged: โ replace with merged: truemerged: true to frontmatterThis prevents /wrapup from re-reading the same checkpoints in future sessions.
If this session produced an insight or pattern that should persist across all future sessions, add it to the "Key Learnings & Patterns" section of [agent folder]/MEMORY.md. Also update the updated: field in the frontmatter to today's date.
## Key Learnings & Patterns
- YYYY-MM-DD : [observation about the user's work patterns, preferences, or recurring themes]
Only add learnings that are genuinely useful long-term (not every session warrants this).
If a genuinely useful long-term insight emerged this session : a clear behavioral pattern, a strong user preference, or a non-obvious observation about how to work with this user : and it is too detailed for MEMORY.md, write it to [agent folder]/memory/YYYY-MM-DD-slug.md:
tags: [agent-memory], created: YYYY-MM-DD, source: /wrapupYYYY-MM-DD-slug.md; if one already exists today: YYYY-MM-DD-02-slug.md, etc.[agent folder]/MEMORY.md (Step 6). Do not write the same insight to both [agent folder]/MEMORY.md and agent memory.Say:
Session saved to
[logs folder]/YYYY/MM/YYYY-MM-DD-session-NN.md.[If action items]: I logged N action items : they'll appear in your Tasks view. [If MEMORY.md updated]: I also added a learning to
[agent folder]/MEMORY.md.Good session! See you next time.