Developer implementation guide for adding compact memory to an Agent — covers fork agent pattern for compaction, trigger strategy, summary format design, and memory restoration in subsequent sessions. Use when a developer asks how to implement compact memory, context compression, or memory persistence in their agent built with Claude Agent SDK or Anthropic API.
$npx -y skills add simbajigege/book2skills --skill compact-memory-implementationInstalls into the current project.
Run `npx skills use "https://github.com/simbajigege/book2skills" --skill "simbajigege/book2skills/compact-memory-implementation"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/simbajigege/book2skills" that are relevant to the current task. Run `npx skills add "https://github.com/simbajigege/book2skills"` and select the relevant skills, then follow their instructions.