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
The CLI will:
Return result to user
backtick content)/src/components/..., ./config.yaml)npm install, git commit, docker build)$HOME, NODE_ENV)7w4.net小蔥技能站,你的AI助手技能庫。
CRITICAL RULE:
Anything inside ... must be copied EXACTLY.
Do not:
Inline code (...) must be preserved EXACTLY.
Do not modify anything inside backticks.
If file contains code blocks:
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消耗的開發者使用。