Records session learnings and decisions before context compaction. Use before ending a long session or when the user asks to save session notes.
📖 中文导读:Records session learnings and decisions before context compaction. Use before ending a long session or when the user asks to save session notes. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: recording-diary
description: Records session learnings and decisions before context compaction. Use before ending a long session or when the user asks to save session notes.
- Before compaction or session end, write `diary_{YYYY-MM-DD_HH-MM}.md` to `./.{AGENT_NAME}/skills/memories/` via `$writing-memories`.
Gotchas:
-
Workarounds:
-
Useful commands:
-
Dead ends:
-
Project quirks:
-
Open questions:
-
If more than 5 diary entries exist, merge them into `diary-consolidated.md`, keeping only high-signal items. Delete the older entries after consolidation.
- Nothing new learned -> skip the diary.
- Many related notes -> consolidate immediately.
- Time format unclear: use local time or `date` output.
- Memory dir missing: create it before writing.