CRUX-Compress: Command for Claude Code

.cursor/commands/crux-test.md

crux-test is a command for Claude Code, Cursor from zotoio/CRUX-Compress. It costs 0 tokens per session (2,816 once invoked), scanned A, original, MIT.

A chat command that exercises CRUX features through agent interactions and writes the results to a Markdown test report.

In plain words
What is it for?
Running all CRUX tests or testing only compression, decompression, utilities, or semantic validation, with the report saved as CRUX-TEST-REPORT.md.
Why use it?
It checks whether compression, decompression, utilities, and semantic validation behave as expected, while producing a record of the results.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md). Also seen: mentions subagents.

This is zotoio/CRUX-Compress's own configuration. It tells Claude Code and 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/commands/crux-test.md
Clone the repo
git clone --depth 1 https://github.com/zotoio/CRUX-Compress

Made for: Claude Code, 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-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/zotoio/crux-compress/crux-test/github.svg)](https://agentmods.dev/commands/zotoio/crux-compress/crux-test)
Your own site
<a href="https://agentmods.dev/commands/zotoio/crux-compress/crux-test"><img src="https://agentmods.dev/badge/commands/zotoio/crux-compress/crux-test/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-test

Your own site · 80×15
<a href="https://agentmods.dev/commands/zotoio/crux-compress/crux-test"><img src="https://agentmods.dev/badge/commands/zotoio/crux-compress/crux-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.02816
Opus 5 $0.00000 $0.01408
Sonnet 5 $0.00000 $0.00563
Haiku 4.5 $0.00000 $0.00282

Measured 10d ago against content hash 8eafe26f5998, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

crux-test scanned grade A with 1 finding 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 10d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl usage example
.cursor/commands/crux-test.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

crux-test

Run comprehensive tests on all CRUX features via LLM interaction and produce a markdown test report.

Repository: github.com/zotoio/CRUX-Compress

Usage

/crux-test                    - Run all tests
/crux-test compression        - Test compression only
/crux-test decompression      - Test decompression only
/crux-test utilities          - Test crux-utils skill only
/crux-test validation         - Test semantic validation only

Instructions

When this command is invoked, you will exercise each CRUX feature systematically and produce a test report saved as CRUX-TEST-REPORT.md in the project root.

Test Suite

Execute the following tests in order:


Pre-Test Cleanup

Purpose: Delete existing CRUX output files so freshly generated versions can be committed.

Before running any tests, delete the following files if they exist:

  • tests/fixtures/sample-rule.crux.md
  • tests/fixtures/compress-test.crux.md

This ensures the compression tests generate fresh output that reflects the current state of the source files and can be included in commits.

Note: Do NOT delete tests/fixtures/no-change.crux.md - it is a permanent baseline for drift detection.

Alternative: The --force flag in /crux-compress can be used to achieve the same effect by deleting CRUX files before recompression. However, for test isolation, we delete files explicitly in this pre-test phase.


Test 1: Compression Test

Purpose: Verify CRUX compression works correctly.

  1. Read the sample rule file at tests/fixtures/sample-rule.md
  2. Spawn a crux-cursor-rule-manager subagent to compress it
  3. Verify the output was created at tests/fixtures/sample-rule.crux.md
  4. Check the output has required frontmatter fields:
    • generated (timestamp)
    • sourceChecksum (checksum value)
    • beforeTokens (number)
    • afterTokens (number)
  5. Verify the CRUX block contains ⟦CRUX:sample-rule.md header
  6. Record: PASS/FAIL, token reduction percentage

Read the full file on GitHub · 319 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. 10d ago First seen · 319 lines · 0 tokens per session scan A 8eafe26f5998

Subscribe to this mod's changes

crux-test is a command published in the GitHub repository zotoio/CRUX-Compress (8 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,816 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.