Emergency single-pass memory compression when context window pressure is high mid-task.

Custom licenceAuto-check passedAgent Workflows

Install Memory Compact

skills CLI
$ npx skills add digipulse-engineering/GAAI-framework --skill memory-compact -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install digipulse-engineering/GAAI-framework memory-compact --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/digipulse-engineering/GAAI-framework.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.gaai/core/skills/cross/memory-compact .claude/skills/memory-compact && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory-compact
GitHub stars
163
Token cost
~874 tokens
SKILL.md length
309 words
Files
1
Skills in repo
55
Repo updated
First seen
Licence
Custom licence

At a glance

Emergency single-pass memory compression when context window pressure is high mid-task.

  • Works in 6 steps: Select memory by category or tags. Read… → Classify entries by durability (R7… → Extract key decisions, constraints,… → …
  • Tasks that involve Context engineering
  • SKILL.md covers Purpose / When to Activate, Process, Outputs and Quality Checks, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Memory Compact is an agent skill from digipulse-engineering/GAAI-framework. 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.

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Works with any filesystem-based AI coding agent

It sits in Agent Workflows, covering Context engineering. The repository describes itself as: Turns AI coding tools into reliable software delivery systems. Drop a .gaai/ folder into any project — Discovery defines what to build, Delivery executes autonomously until…

When your agent uses it

  • Tasks that involve Context engineering

Example prompts

  • “/memory-compact”

Requirements

  • Compatibility (from SKILL.md): Works with any filesystem-based AI coding agent

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Select memory by category or tags. Read contexts/memory/index.md. Prioritize categories by: (a) largest file count first, (b) oldest…
  2. Classify entries by durability (R7 gate). Before compacting, classify each entry
  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…
  5. Archive detailed originals (ephemeral and superseded only). Archive originals to contexts/memory/archive/{category}-{YYYY-MM-DD}.archive.md…
  6. Update memory index

What it can do on your machine

Read from SKILL.md and the folder at commit a26ea7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Works with any filesystem-based AI coding agent

    From compatibility in the SKILL.md frontmatter.

Context cost

Memory Compact loads about 874 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 309 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~874

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 309 words (~874 tokens).

name
memory-compact
compatibility
Works with any filesystem-based AI coding agent
license
ELv2
metadata.author
gaai-framework
metadata.version
1.0
metadata.category
cross
metadata.track
cross-cutting
metadata.id
SKILL-MEMORY-COMPACT-001
metadata.updated_at
2026-03-01
metadata.status
stable
inputs
contexts/memory/index.md, contexts/memory/**/*
outputs
contexts/memory/summaries/*.summary.md, contexts/memory/archive/**, contexts/memory/index.md (updated)

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .gaai/core/skills/cross/memory-compact of digipulse-engineering/GAAI-framework.

Open the folder on GitHubat commit a26ea7a

Compare with similar skills

Memory Compact next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory Compact compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory Compact this skilldigipulse-engineering/GAAI-framework163—~874Automated safety check: PassCustom licence
Context Mode Output Sandboxmksglu/context-mode26k—~4.1kAutomated safety check: PassCustom licence
Memori Long-Term MemoryMemoriLabs/Memori17k—~2kAutomated safety check: NotesCustom licence
Picoclaw Skill Creatorsipeed/picoclaw30k—~4.4kAutomated safety check: PassMIT
ccc Semantic Code Searchcocoindex-io/cocoindex-code2.7k—~938Automated safety check: PassApache-2.0
Context Mode for Antigravity CLImksglu/context-mode26k—~850Automated safety check: PassCustom licence

Similar skills

  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Memori Long-Term Memory

    MemoriLabs/Memori

    Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.

    17k GitHub stars~2k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check: notes
  • Picoclaw Skill Creator

    sipeed/picoclaw

    Guidance for creating, updating and reviewing Picoclaw skills, from the SKILL.md structure to organizing bundled scripts, references and assets.

    30k GitHub stars~4.4k tokensUpdated 13 days ago
    Agent WorkflowsAuto-check passed
  • ccc Semantic Code Search

    cocoindex-io/cocoindex-code

    Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.

    2.7k GitHub stars~938 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.

    26k GitHub stars~850 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Token Optimizer

    alexgreensh/token-optimizer

    Audit a Claude Code or Codex setup for context-window waste, then fix it and measure the savings.

    2.5k GitHub stars~3.6k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed

More from digipulse-engineering/GAAI-framework

All 55 skills in this repo
  • Eval Run

    digipulse-engineering/GAAI-framework

    Evaluate any output file against a structured evals.yaml assertions file and produce a score report with per-assertion pass/fail results.

    163 GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • Pattern Transfer

    digipulse-engineering/GAAI-framework

    Discover structurally similar patterns across domains, assess transfer viability via structural invariant checking, and propose domain adaptations with risk gates.

    163 GitHub stars~2.3k tokensUpdated 8 days ago
    Auto-check passed
  • Skill Optimize

    digipulse-engineering/GAAI-framework

    Run a structured evaluate-analyze-improve cycle on any GAAI skill to measure quality, detect regressions, and propose targeted improvements.

    163 GitHub stars~2k tokensUpdated 8 days ago
    Auto-check passed
  • Abort Safe Handler

    digipulse-engineering/GAAI-framework

    Orchestrator-level Stage 4 entry gate for /gaai:bootstrap. An agent skill from digipulse-engineering/GAAI-framework.

    163 GitHub stars~2.6k tokensUpdated 8 days ago
    Auto-check passed
  • Create Skill

    digipulse-engineering/GAAI-framework

    Guide creation of a new GAAI skill following the agentskills.io spec and GAAI best practices.

    163 GitHub stars~1.7k tokensUpdated 8 days ago
    Auto-check passed
  • Discovery High Level Plan

    digipulse-engineering/GAAI-framework

    Transform vague or high-level human intent into a governed Discovery action plan.

    163 GitHub stars~570 tokensUpdated 8 days ago
    Auto-check passed

Categories

Questions about Memory Compact

What does Memory Compact do?

Emergency single-pass memory compression when context window pressure is high mid-task. Memory Compact is an agent skill from digipulse-engineering/GAAI-framework. Emergency single-pass memory compression when context window pressure is high mid-task.

When should I use Memory Compact?

Memory Compact fits situations like: tasks that involve Context engineering.

How do I install Memory Compact in Claude Code?

Run `npx skills add digipulse-engineering/GAAI-framework --skill memory-compact -a claude-code`. Or copy the skill folder (.gaai/core/skills/cross/memory-compact in digipulse-engineering/GAAI-framework) into .claude/skills/memory-compact in your project. Claude Code loads it when a task matches its description.

How do I install Memory Compact in Codex?

Run `npx skills add digipulse-engineering/GAAI-framework --skill memory-compact -a codex`. Or copy the skill folder (.gaai/core/skills/cross/memory-compact in digipulse-engineering/GAAI-framework) into .agents/skills/memory-compact in your project. Codex loads it when a task matches its description.

Can I use Memory Compact in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add digipulse-engineering/GAAI-framework --skill memory-compact -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-compact, .gemini/skills/memory-compact, .github/skills/memory-compact and .opencode/skills/memory-compact in your project.

What does Memory Compact need to run?

SKILL.md names no scripts, command-line tools or credentials: Memory Compact is instructions for the agent only. Compatibility (from SKILL.md): Works with any filesystem-based AI coding agent.

Does Memory Compact access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory Compact safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memory Compact use?

Memory Compact has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Memory Compact use?

About 874 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memory Compact?

Skills that share tags, products or a category with Memory Compact: Context Mode Output Sandbox (mksglu/context-mode, 26k stars), Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), Picoclaw Skill Creator (sipeed/picoclaw, 30k stars) and ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory Compact?

digipulse-engineering (a GitHub organization) maintains it in digipulse-engineering/GAAI-framework, which has 163 GitHub stars. The repository holds 55 skills in this directory. The repository was last updated on September 29, 2026.

Source: digipulse-engineering/GAAI-framework on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.