← 返回 Skills 市场
ckpxgfnksd-max

https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw

作者 ckpxgfnksd-max · GitHub ↗ · v0.2.0 · MIT-0
cross-platform ✓ 安全检测通过
259
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install prompt-token-saver
功能描述
Saves 20-40% of LLM tokens by teaching the agent to write compressed responses, compressed memory logs, and compressed pre-compaction summaries. Works via SO...
安全使用建议
This skill appears to do exactly what it says: add compression rules to your agent and optionally install a local hook. Before installing, back up your existing SOUL.md and manually review soul-snippet.md so you understand the global behavioral changes (it removes greetings/hedging and shortens phrasing). If you enable the handler.js hook later, only copy it into ~/.openclaw/hooks and enable hooks if you trust the code — the hook runs locally and does not contact external services, but it will transform messages before the LLM sees them (which can change intent or tone). No credentials or network access are requested by this skill.
功能分析
Type: OpenClaw Skill Name: prompt-token-saver Version: 0.2.0 The 'prompt-token-saver' skill is a utility designed to reduce LLM token consumption by enforcing concise communication and data logging. It achieves this through a JavaScript hook (handler.js) that uses regex to strip filler words from user input and by providing instructions (soul-snippet.md) to be appended to the agent's core SOUL.md file. The code and instructions are transparent, align with the stated purpose of token efficiency, and show no signs of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
Name/description claim token savings via compressed outputs and compressed memory; the package contains a SOUL snippet to append to ~/.openclaw/SOUL.md and an optional local handler.js hook that implements regex-based compression — all items relate directly to the stated purpose. No unrelated env vars, binaries, or external services are requested.
Instruction Scope
SKILL.md instructs you to append soul-snippet.md to SOUL.md (global agent instructions) and to run /new. That is expected for this capability, but it changes the agent's global behavior across sessions — you should review the snippet before appending. The snippet explicitly protects code, URLs, API keys, and numbers from compression, which aligns with its purpose.
Install Mechanism
No installer or remote downloads; installation is manual append of a local file or optional copying handler.js into ~/.openclaw/hooks. No network fetches or archive extraction are used — low install risk.
Credentials
The skill requires no environment variables, no credentials, and no config paths beyond the SOUL.md and optional ~/.openclaw/hooks directory it documents — these are proportionate to a skill that modifies agent instructions or installs a local hook.
Persistence & Privilege
The primary persistence mechanism is appending text to SOUL.md (persistent agent policy). always is false and the skill does not demand elevated system privileges, but appending to SOUL.md will permanently change agent behavior until edited — back up SOUL.md before installing. The handler.js hook is optional and local; enabling it requires writing to ~/.openclaw/hooks and running openclaw hooks enable.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install prompt-token-saver
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /prompt-token-saver 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.0
- 154 compression rules optimized through 300+ evolutionary variants - Scored 96.3% on a 24-test benchmark - Architecture research (217 variants) evaluated hooks, proxies, plugins, and SOUL.md approaches - SOUL.md won for Clawdbot v2026.1.x: zero deps, zero config, two-command install
元数据
Slug prompt-token-saver
版本 0.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw 是什么?

Saves 20-40% of LLM tokens by teaching the agent to write compressed responses, compressed memory logs, and compressed pre-compaction summaries. Works via SO... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 259 次。

如何安装 https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install prompt-token-saver」即可一键安装,无需额外配置。

https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw 是免费的吗?

是的,https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw 支持哪些平台?

https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 https://github.com/ckpxgfnksd-max/prompt-compressor-openclaw?

由 ckpxgfnksd-max(@ckpxgfnksd-max)开发并维护,当前版本 v0.2.0。

💬 留言讨论