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.02430 |
| Opus 5 | $0.00030 | $0.01215 |
| Sonnet 5 | $0.00012 | $0.00486 |
| Haiku 4.5 | $0.00006 | $0.00243 |
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 12d 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 — 185 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.jsonand extract:flags.enableMemoryCompression— must be"true"or abort with messagecruxMemories.compressionTarget— target percentage (default33)cruxMemories.sizeUnit— unit for size thresholds:"lines"or"bytes"(default"lines")cruxMemories.compressionMinLines— minimum file size in lines before compression is considered (default500)cruxMemories.maxMemorySize— hard cap in configured sizeUnit (default1000lines)cruxMemories.storage.compressionSourceArchive— archive path (default.ai-ignored/memories/sources)cruxMemories.storage.memoriesDir— where memories live (defaultmemories)
- 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 frontmatter of the output file:
compressed: true
compressionTarget: 33
beforeTokens: <original body tokens>
afterTokens: <compressed body tokens>
reducedBy: <percentage>
compressedDate: <YYYY-MM-DD>
sourceArchive: <path to archived original>
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.
- 12d 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 5d ago), licensed MIT. It adds 59 tokens to every session and 2,430 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
simplemem-skill
Store and retrieve conversation memories across sessions. Use when asked to 'remember this', 'save conversation', 'add to memory', 'what did we discuss about...', 'query memories', or 'import chat history'. Also use proactively to preserve important dialogue context and decisions.
[object Object]
Read, search, and open notes in the user's "{{GRAPHNAME}}" Reflect graph via the reflect CLI. Use when the user asks about their notes, daily notes, journal, or anything they may have written down in Reflect.
karpathy-llm-wiki
Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.
init
Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.
daily-journal
A passive daily work journal that Claude keeps FOR you so you never have to write it yourself. Append short entries after meaningful work (what was done, what you focused on, artifacts touched) to 01-daily/journal/YYYY-MM-DD.md. Run a guided reflection at night or in the morning. Use when you run /daily-journal, say…
alive:session-history
Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…