packages/forge/src/skills/soleri-compress/SKILL.md
Triggers: "compress this file", "compress CLAUDE.md", "compress memory", "shrink this", "reduce tokens in file", or invokes /compress. Compresses natural language files to save input tokens.
npx skillsauth add adrozdenko/soleri soleri-compressInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Compress natural language files (CLAUDE.md, instructions, vault notes) into terse format. Reduces input tokens ~40-50% while preserving all technical substance. Compressed version overwrites original. Human-readable backup saved as <filename>.original.md.
.original.md suffix (backups)Read the target file. Classify it:
| Type | Action | | ---------------------------- | ----------------------------------------------------------------- | | Natural language (.md, .txt) | Proceed to compress | | Code / config | Stop. Tell user: "Skipping — file is code/config, not prose." | | Mixed (prose + code blocks) | Compress ONLY prose sections. Code blocks pass through unchanged. |
Before any modification, copy the original to <filename>.original.md.
HARD-GATE: If .original.md backup already exists, STOP. Tell user: "Backup already exists at {path}. Remove or rename it before re-compressing." This prevents accidental loss of the original.
Apply these rules to natural language sections only:
Remove:
Preserve EXACTLY (never modify):
backtick content)/src/components/..., ./config.yaml)npm install, git commit, docker build)$HOME, NODE_ENV)Preserve Structure:
<!-- soleri:xxx -->)Compress:
After compression, verify:
| Check | How | | ------------- | --------------------------------------------- | | Heading count | Same number of headings, same text | | Code blocks | Byte-identical to original | | URLs | All URLs from original present in compressed | | File paths | All paths from original present in compressed | | Inline code | All backtick content preserved | | Bullet count | Within 15% of original (merging allowed) |
If validation fails:
Tell user:
Original:
You should always make sure to run the test suite before pushing any changes to the main branch. This is important because it helps catch bugs early and prevents broken builds from being deployed to production.
Compressed:
Run tests before push to main. Catch bugs early, prevent broken prod deploys.
Original:
The application uses a microservices architecture with the following components. The API gateway handles all incoming requests and routes them to the appropriate service. The authentication service is responsible for managing user sessions and JWT tokens.
Compressed:
Microservices architecture. API gateway route all requests to services. Auth service manage user sessions + JWT tokens.
| Action | Command |
| ---------------- | ----------------------------------------- |
| Compress a file | /compress path/to/file.md |
| Check backup | Look for path/to/file.original.md |
| Restore original | Copy .original.md back to original path |
testing
Triggers: "terse mode", "be brief", "less tokens", "fewer tokens", "compress output", "caveman", or invokes /terse. Token-efficient responses with full technical accuracy.
testing
Triggers: "release", "bump version", "publish packages", "cut a release", "version bump", "npm publish". Bumps monorepo versions, commits, tags, pushes to trigger CI release. Use deliver-and-ship for quality gates.
development
Triggers: "implement X", "build Y", "fix Z", "add feature", or any work task needing planning + execution. Full orchestration loop: plan, execute, complete with vault context and brain recs.
tools
Triggers: "start a loop", "run until done", "iterate until X", "loop status", "cancel loop". Iterative execution until condition met or grade threshold reached.