Borrowing it
Nothing to install: this file belongs to zotoio/CRUX-Compress. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/zotoio/CRUX-Compress/main/.cursor/skills/crux-skill-memory-compress/SKILL.mdgit clone --depth 1 https://github.com/zotoio/CRUX-CompressWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zotoio/crux-compress/crux-skill-memory-compress)<a href="https://agentmods.dev/skills/zotoio/crux-compress/crux-skill-memory-compress"><img src="https://agentmods.dev/badge/skills/zotoio/crux-compress/crux-skill-memory-compress/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zotoio/crux-compress/crux-skill-memory-compress"><img src="https://agentmods.dev/badge/skills/zotoio/crux-compress/crux-skill-memory-compress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01914 |
| Opus 5.5 | $0.00024 | $0.00766 |
| Sonnet 5.5 | $0.00012 | $0.00383 |
| Haiku 4.5 | $0.00006 | $0.00191 |
Grade A, and why
crux-skill-memory-compress scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CRUX Memory Compress
Applies CRUX compression to memory file bodies, enforces size caps, archives originals, and handles migration of pre-existing uncompressed memories.
Prerequisites
Before any operation:
- Read config: Load
.crux/crux-memories.json. This skill needsflags.enableMemoryCompression,cruxMemories.compressionTarget,sizeUnit,compressionMinLines,maxMemorySize,maxConsolidatedSize, andstorage.compressionSourceArchive/memoriesDir. Defaults and full key descriptions live in.cursor/skills/_memory-shared.md#config-referenceand.crux/crux-memories.json(authoritative). - Load CRUX spec: Read
CRUX.mdfrom project root for encoding symbols and compression rules. - Guard check: If
flags.enableMemoryCompressionis not"true", refuse all operations and inform the caller that memory compression is disabled.
Operations
1. Compress
Compress a single memory file's body using CRUX notation.
Input: Path to a .memory.md file
Steps:
- Read the memory file and separate frontmatter from body
- Check
compressionMinLines— count the total lines in the file. If belowcompressionMinLines(default500), skip compression and return the file unchanged. Files below this threshold are too small to benefit from CRUX compression. - Frontmatter is NEVER compressed — preserve it exactly as-is (title, description, type, tags, strength, scope, etc.)
- Estimate body token count using
crux-utilsskill (--token-count) if available, otherwise LLM estimation (prose: 4 chars/token, code: 3.5 chars/token, CRUX symbols: 1 token each) - Apply CRUX compression to the body only, targeting
compressionTarget% of original body size - Measure compressed body size in the configured
sizeUnit(default: lines) - Adaptive sizing — determine the applicable size cap: use
maxConsolidatedSizeif the file hasconsolidation_topicin its frontmatter, otherwisemaxMemorySize. If compressed output exceeds the cap (measured insizeUnit):- Increase compression aggressiveness (reduce target by 10 percentage points)
- Re-compress and re-measure
- Repeat until under the cap or target reaches 5%
- If still over the cap at maximum compression, flag for manual review and do NOT write the file
- Archive the original (see Source Archival)
- Write compressed output as
{slug}.memory.crux.mdin the same directory - Delete the original
.memory.mdfrom the working directory (it has been archived in step 7) - Add compression metadata to the output frontmatter:
compressed: true,compressionTarget,beforeTokens,afterTokens,reducedBy,compressedDate,sourceArchive(see Output format below for a filled example).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -40 lines b8a243d9e93e
- 2mo ago First seen · 185 lines · 59 tokens per session scan A 41183ff0fb36
crux-skill-memory-compress is a skill published in the GitHub repository zotoio/CRUX-Compress (8 stars, last pushed 14d ago), licensed MIT. It adds 59 tokens to every session and 1,914 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
crux-skill-memory-compress compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| crux-skill-memory-compresszotoio/CRUX-Compress | Skill | 8 | 14d ago | MIT | A | 59 | Cursor |
| kiro-steering-customgotalab/cc-sdd | Skill | 3.8k | 15d ago | MIT | A | 14 | Claude Code, Codex |
| [object Object]team-reflect/reflect-open | Skill | 1.6k | yesterday | MIT | A | 51 | Claude Code, Codex |
| identity-snapshotdavekilleen/Dex | Skill | 512 | 8d ago | MIT | A | 74 | Claude Code, Codex |
| daily-journalhuytieu/COG-second-brain | Skill | 1.3k | 14d ago | MIT | A | 107 | Claude Code |
| simplemem-skillaiming-lab/SimpleMem | Skill | 3.9k | 3mo ago | MIT | A | 58 | Claude Code, Codex |
| alive:session-historyalivecontext/alive | Skill | 132 | 1mo ago | MIT | A | 76 | Claude Code |