name: text-compressor description: Compress and decompress text files using smart abbreviation and whitespace normalization. Use when user asks to compress, shrink, reduce, or optimize text file size while preserving readability. Also use for batch text processing, file size reduction, or text cleanup.
Compress text files using configurable levels of text abbreviation while keeping content readable.
python scripts/compress.py <input_file> [output_file] [--level 1-3]
python scripts/compress.py <input_file> [output_file] --decompress [--level 1-3]
小蔥技能7w4.net持續更新中。
compress.py report.txt — compress report.txt → report.txt.compressedcompress.py input.txt output.txt --level 2 — medium compression to specific outputcompress.py compressed.txt --decompress — attempt to restore (approximate)Shows bytes saved and percentage reduction.
--decompress to attempt restoration (approximate only).這是一個實用的文本壓縮工具,三級壓縮策略設計合理,文件說明清晰。基礎壓縮功能實現得不錯,但解壓功能只能部分恢復原文,準確性有限;最高級別壓縮會影響閱讀體驗,實用性打折扣。整體質量中上,基礎功能紮實,細節打磨還需加強。適合對壓縮率要求不高但需要保持基本可讀性的場景使用。