CRUX-Compress: Skill for Cursor

.cursor/skills/crux-skill-memory-compress/SKILL.md

crux-skill-memory-compress is a skill for Cursor from zotoio/CRUX-Compress. It costs 59 tokens per session (2,430 once invoked), scanned A, original, MIT.

A skill for shortening CRUX memory files, restoring them, migrating older files, and enforcing a maximum size. It can archive the original source before compression.

In plain words
What is it for?
Use it when memory compression is enabled and files need compressing, decompressing, migrating, or checking against the configured size cap.
Why use it?
It keeps stored memories within configured size limits while preserving the original material for reference.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is zotoio/CRUX-Compress's own configuration. It tells Cursor how to work on CRUX-Compress itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CRUX-Compress configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/zotoio/CRUX-Compress/main/.cursor/skills/crux-skill-memory-compress/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zotoio/CRUX-Compress

Made for: Cursor.

Wrote 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.

agentmods badge for crux-skill-memory-compress

README.md
[![agentmods](https://agentmods.dev/badge/skills/zotoio/crux-compress/crux-skill-memory-compress/github.svg)](https://agentmods.dev/skills/zotoio/crux-compress/crux-skill-memory-compress)
Your own site
<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.

agentmods 80×15 button for crux-skill-memory-compress

Your own site · 80×15
<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>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,430 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 41183ff0fb36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

.cursor/skills/crux-skill-memory-compress/SKILL.md · 185 lines

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:

  1. Read config: Load .crux/crux-memories.json and extract:
    • flags.enableMemoryCompression — must be "true" or abort with message
    • cruxMemories.compressionTarget — target percentage (default 33)
    • cruxMemories.sizeUnit — unit for size thresholds: "lines" or "bytes" (default "lines")
    • cruxMemories.compressionMinLines — minimum file size in lines before compression is considered (default 500)
    • cruxMemories.maxMemorySize — hard cap in configured sizeUnit (default 1000 lines)
    • cruxMemories.storage.compressionSourceArchive — archive path (default .ai-ignored/memories/sources)
    • cruxMemories.storage.memoriesDir — where memories live (default memories)
  2. Load CRUX spec: Read CRUX.md from project root for encoding symbols and compression rules
  3. Guard check: If flags.enableMemoryCompression is 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:

  1. Read the memory file and separate frontmatter from body
  2. Check compressionMinLines — count the total lines in the file. If below compressionMinLines (default 500), skip compression and return the file unchanged. Files below this threshold are too small to benefit from CRUX compression.
  3. Frontmatter is NEVER compressed — preserve it exactly as-is (title, description, type, tags, strength, scope, etc.)
  4. Estimate body token count using crux-utils skill (--token-count) if available, otherwise LLM estimation (prose: 4 chars/token, code: 3.5 chars/token, CRUX symbols: 1 token each)
  5. Apply CRUX compression to the body only, targeting compressionTarget% of original body size
  6. Measure compressed body size in the configured sizeUnit (default: lines)
  7. Adaptive sizing — determine the applicable size cap: use maxConsolidatedSize if the file has consolidation_topic in its frontmatter, otherwise maxMemorySize. If compressed output exceeds the cap (measured in sizeUnit):
    • 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
  8. Archive the original (see Source Archival)
  9. Write compressed output as {slug}.memory.crux.md in the same directory
  10. Delete the original .memory.md from the working directory (it has been archived in step 7)
  11. 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>

Read the full file on GitHub · 185 lines

Changes

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.

  1. 12d ago First seen · 185 lines · 59 tokens per session scan A 41183ff0fb36

Subscribe to this mod's changes

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.

Related

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.

aiming-lab/SimpleMem · 58 tokens

[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.

team-reflect/reflect-open · 51 tokens

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'.

Astro-Han/karpathy-llm-wiki · 67 tokens

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.

grpcer/ownmem · 43 tokens

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…

huytieu/COG-second-brain · 107 tokens

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…

alivecontext/alive · 76 tokens