memory-compact

Solid

Emergency single-pass memory compression when context window pressure is high mid-task. Activate when approaching token limits during active work. For scheduled end-of-phase cleanup, use memory-refresh instead.

Code & Development 155 stars 28 forks Updated 2 days ago NOASSERTION

Install

View on GitHub

Quality Score: 83/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Memory Compact ## Purpose / When to Activate Activate when: - Context window pressure is high - Memory has grown across many sessions - A single targeted compression pass is needed More focused than `memory-refresh` — this is a single-pass compression operation. --- ## Process 1. **Select memory by category or tags.** Read `contexts/memory/index.md`. Prioritize categories by: (a) largest file count first, (b) oldest entries first, (c) categories not referenced by the current task last. Under extreme pressure, compact the single largest category only. 2. **Classify entries by durability (R7 gate).** Before compacting, classify each entry: - **Durable** (decisions, patterns, project, ops, contacts, domains): only entries with explicit supersession markers (`> SUPERSEDED by DEC-XX`, `> RETRACTED`, `> OBSOLETE — {reason}`) may be archived. All other entries are ACTIVE and MUST NOT be archived regardless of file size. Note: decisions are already individual ADR files (`decisions/DEC-{N}.md`). For other oversized durable files → domain-split, not archive. - **Ephemeral** (sessions): standard compaction applies — summarize and archive. 3. Extract key decisions, constraints, priorities 4. **Generate a single summary file replacing multiple entries.** Produce one summary file per compacted category using bullet format: one bullet per decision, constraint, or durable fact. Target ≤20% of the original token count. Use the format: ```markdown # {Category} — Compact Summa...

Details

Author
Fr-e-d
Repository
Fr-e-d/GAAI-framework
Created
5 months ago
Last Updated
2 days ago
Language
Shell
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category