name: compress description: > Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman:compress FILEPATH or "compress memory file"
Compress natural language files (CLAUDE.md, todos, preferences) into caveman-speak to reduce input tokens. Compressed version overwrites original. Human-readable backup saved as <filename>.original.md.
/caveman:compress <filepath> or when user asks to compress a memory file.
This SKILL.md lives alongside scripts/ in the same directory. Find that directory.
Run:
cd
if still failing after 2 retries: report error to user, leave original file untouched
Return result to user
更多技能請訪問小蔥技能站7w4.net。
backtick content)/src/components/..., ./config.yaml)npm install, git commit, docker build)$HOME, NODE_ENV)CRITICAL RULE:
Anything inside ... must be copied EXACTLY.
Do not:
- remove comments
- remove spacing
- reorder lines
- shorten commands
- simplify anything
Inline code (...) must be preserved EXACTLY.
Do not modify anything inside backticks.
If file contains code blocks: - Treat code blocks as read-only regions - Only compress text outside them - Do not merge sections around code
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.
這個Skill質量不錯,壓縮效果明顯,操作簡便。優點是安全防護做得好,不會誤壓縮敏感檔案,還有備份機制防止出錯。驗證機制能確保程式碼、連結等重要內容不被改動。不足是缺少示例檔案,普通使用者可能不太清楚怎麼用;某些情況下壓縮結果可能丟失細微語義,建議壓縮後自己檢查一遍。總體適合需要減少文件token消耗的開發者使用。