← Back to Skills Marketplace
prompt-compress
by
jackzh1982
· GitHub ↗
· v1.0.0
· MIT-0
225
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install prompt-compress
Description
提示词压缩与优化技能。用于分析提示词、提取关键词、精简冗余内容、压缩后输出给大模型以减少 Token 消耗。触发词:压缩提示词、精简prompt、减少token、优化提示词、提示词优化、token节省、关键词提取、提示词精简。
Usage Guidance
该技能在功能和实现上自洽且风险较低:脚本只做基于正则的文本处理并估算 token,不会联网或读取凭据。但注意:
- 压缩是基于规则和模式匹配,极端压缩等级可能丢失重要上下文或改变语义,安装后在将压缩结果发送给模型前务必人工核对。
- 如果你会压缩包含敏感信息(如密码、私有密钥或受保护数据)的提示,请避免在自动流程中直接压缩并发送,先手动审阅。
- 若你的环境不允许执行第三方脚本,考虑审查代码或在受控环境中运行。
Capability Analysis
Type: OpenClaw Skill
Name: prompt-compress
Version: 1.0.0
The prompt-compress skill bundle is designed to optimize and shorten AI prompts to reduce token consumption. The included Python scripts (prompt_analyzer.py and prompt_compressor.py) use standard regular expressions and string manipulation to identify redundant phrases and restructure text; they do not perform any network requests, file system modifications, or sensitive data access. The SKILL.md instructions are strictly aligned with the stated purpose of prompt optimization and contain no malicious prompt-injection attempts.
Capability Assessment
Purpose & Capability
技能名字与描述(提示词压缩/关键词提取/减少 Token)与包含的 Python 脚本和文档一致;没有声明或请求与该目的无关的权限、环境变量或外部服务。
Instruction Scope
SKILL.md 明确描述了分析与压缩流程,脚本只处理输入文本(命令行参数或 stdin),没有读取系统配置、凭据或其他文件路径,也不把数据发送到外部端点。
Install Mechanism
没有安装规范(instruction-only 风格),随附的脚本是本地 Python 文件;无需从不可信的 URL 下载或执行额外二进制,风险低。
Credentials
不要求任何环境变量、凭据或配置路径;脚本仅使用标准库并读取输入文本,所需权限与功能相符且最小化。
Persistence & Privilege
flags 显示 always:false,技能不会强制常驻或修改其他技能配置;脚本也不写入系统级配置或保存持久凭据。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install prompt-compress - After installation, invoke the skill by name or use
/prompt-compress - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of "prompt-compress" skill for prompt compression and optimization.
- Analyzes prompts, extracts keywords, removes redundancy, and outputs compressed prompts to save tokens.
- Provides clear workflow and practical examples covering different prompt scenarios.
- Offers multi-level compression options and structural templates for effective prompt reduction.
- Includes techniques for politeness filtering, symbol use, merging content, and keyword extraction.
- Useful for tasks like long prompt compression, keyword extraction, API cost reduction, and improved input efficiency.
Metadata
Frequently Asked Questions
What is prompt-compress?
提示词压缩与优化技能。用于分析提示词、提取关键词、精简冗余内容、压缩后输出给大模型以减少 Token 消耗。触发词:压缩提示词、精简prompt、减少token、优化提示词、提示词优化、token节省、关键词提取、提示词精简。 It is an AI Agent Skill for Claude Code / OpenClaw, with 225 downloads so far.
How do I install prompt-compress?
Run "/install prompt-compress" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is prompt-compress free?
Yes, prompt-compress is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does prompt-compress support?
prompt-compress is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created prompt-compress?
It is built and maintained by jackzh1982 (@jackzh1982); the current version is v1.0.0.
More Skills