agent-memory-implement…
Restructures a chaotic or overgrown MEMORY.md into a clean 2-layer architecture based on how Claude Code's autoDream system…
End-of-session memory distillation — extracts key decisions, eliminated approaches, new discoveries, and current blockers from the current conversation and writes them to MEMORY.md topic files. Based on Claude Code's autoDream background consolidation service. Activate when the
$ npx -y skills add simbajigege/book2skills --skill session-dream --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/session-dreamContext preview
The summary Claude sees to decide when to auto-load this skill.
End-of-session memory distillation — extracts key decisions, eliminated approaches, new discoveries, and current blockers from the current conversation and writes them to MEMORY.md topic files. Based on Claude Code's autoDream background consolidation service. Activate when the
name: session-dream description: End-of-session memory distillation — extracts key decisions, eliminated approaches, new discoveries, and current blockers from the current conversation and writes them to MEMORY.md topic files. Based on Claude Code's autoDream background consolidation service. Activate when the user says "dream", "/dream", "save session memories", "distill this session", "what should I remember from this session", or when a long productive session is ending and the user wants to preserve what was learned.
A manual trigger for the memory distillation that Claude Code's `autoDream` service does automatically in the background. Where `autoDream` fires after 5+ sessions and 24+ hours, this skill fires on demand — letting you capture a session's insights before they're lost in compaction.
From `services/autoDream/consolidationPrompt.ts`, the autoDream process has 4 phases:
1. **Orient** — scan what memory already exists, avoid creating duplicates 2. **Gather signal** — identify new information worth persisting (logs, session transcripts, drifted facts) 3. **Consolidate** — write or update topic files, merge rather than duplicate, fix contradictions 4. **Prune and index** — keep MEMORY.md under max lines, one pointer per file, remove stale entries
This skill follows the same 4-phase structure but applies it to the current conversation rather than historical transcripts.
Check what memory already exists:
Review the current conversation and identify:
**High-value (always distill):**
**Medium-value (distill if not easily discoverable):**
**Low-value / skip:**
For each high-value item:
1. Check if an existing topic file covers this. If yes, update or append to it. 2. If no existing file fits, create a new topic file.
**Topic file format:**
--- name: [descriptive topic name] description: [one line — what query would cause this file to be loaded?] type: feedback | project | user | reference --- [For feedback/project type, lead with the rule or fact] **Why:** [the reason this matters — context that makes the rule sensible] **How to apply:** [when/where this kicks in]
**Key types:**
Convert relative dates to absolute dates: "yesterday" → "2026-04-15", "last week" → "2026-04-07".
Update `MEMORY.md`:
At the end, tell the user:
Good memory entry for a `feedback` type:
**Rule:** For this project, prefer explicit error types over generic Error objects. **Why:** The error handling middleware needs to distinguish between validation errors (400) and server errors (500) — string matching on error messages is fragile. **How to apply:** When writing any error-throwing code in the API layer, create or use a typed error class (ValidationError, AuthError, etc.).
Good memory entry for a `project` type:
The payments module uses Stripe's older API (v2019-10-17) pinned in config — do not upgrade without coordinating with the billing team. **Why:** An upgrade in 2025-Q3 broke webhook signature validation and caused missed payment events. The pin is intentional. **How to apply:** When touching payments code, verify any Stripe API usage against the v2019-10-17 docs, not the latest.
Transform the wisdom of classic books into AI Agent Skills. book2skills is an open-source project focused on systematically distilling high-quality practical books into Agent Skills format, enabling AI agents like Claude and Claude Code to directly apply the
Restructures a chaotic or overgrown MEMORY.md into a clean 2-layer architecture based on how Claude Code's autoDream system…
Define agent tools using the fail-closed design pattern — unified name/schema/security/execution in one class, with three-layer…
Apply Xiao Xing's financial statement analysis framework from 一本书读懂财报 (Understanding Financial Reports in One Book). Use this…
Use Business Adventures for "why did this fail?", "analyze this crisis", "what pattern applies?", or "what would Brooks notice?
Apply John Bogle stewardship capitalism logic to separate investing from
Apply John Bogle index investing rules for low-cost funds, asset allocation,