Memory refresh

From Fr-e-d/GAAI-framework · View interactive version

Memory refresh is an AI agent skill from the GitHub repository Fr-e-d/GAAI-framework. Periodic memory maintenance — archive session files, convert recurring knowledge into summaries, update the memory index. Activate at end of a major phase (Discovery complete, sprint done) or when memory spans many sessions. For emergency context-window pressure mid-task, use memory-compact instead.

How to use this skill

Skill file

Memory Refresh

Purpose / When to Activate

Activate:

This skill governs and optimizes existing memory only — it does not create new knowledge.


Process

  1. Read memory index
  2. Extract durable knowledge from session memory
  3. Convert recurring or validated information into summary memory
  4. Archive raw session files to contexts/memory/archive/
  5. Compact with R7 category-aware rules:

5b. Summary lifecycle — mandatory when extending summary coverage: When creating or extending a decisions summary file that supersedes an existing one (e.g., decisions-90-145.summary.md → decisions-90-155.summary.md):

a. Write the new summary file with updated frontmatter (id, updated_at, source range).

b. Update index.md Summaries section: replace the old filename with the new one.

c. Delete the old summary file from disk (it is now superseded; do not leave orphan files).

d. Verify: confirm old filename is gone from disk AND index.md pointer is updated before proceeding.

Also check decisions/_log.md for any ⚠️ PENDING: extend summary range notes — process them and remove the notes once handled.

  1. Update memory index: update index.md frontmatter updated_at to reflect this refresh run.

Quality Checks


Non-Goals

This skill must NOT:

Governs existing memory. Keeps it clean, cheap, and precise.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.