← 返回 Skills 市场
dgkim311

Prompt Diet

作者 dgkim311 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
112
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install prompt-diet
功能描述
Analyze and optimize OpenClaw system prompt token usage by compressing workspace files (AGENTS.md, SOUL.md, USER.md, TOOLS.md, IDENTITY.md, HEARTBEAT.md, MEM...
安全使用建议
This skill appears coherent and safe for its stated purpose, but you should: (1) confirm the workspace path before running (it defaults to /home/aif/.openclaw/workspace/ or a local .openclaw/workspace), (2) review recommendations and approve any 🟡 items before edits, (3) ensure sensitive tool auth or secret references in TOOLS.md or MEMORY.md are not accidentally included in automatic changes (the rules say to skip them but double-check), and (4) keep the backups the skill creates until you verify behavior. Optionally install the tiktoken package for more accurate token counts (pip install tiktoken).
功能分析
Type: OpenClaw Skill Name: prompt-diet Version: 1.0.0 The 'prompt-diet' skill is a utility designed to optimize token usage in OpenClaw workspace files by identifying and removing redundant content. The bundle includes a Python script (scripts/token_count.py) for estimating token counts and detailed guidelines (references/compression-rules.md) for safe text reduction. The instructions in SKILL.md emphasize a 'safety-first' approach, requiring explicit user approval before any modifications and mandating the creation of backups. No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found.
能力评估
Purpose & Capability
Name/description match actual behavior: it measures token usage and recommends/edits workspace .md files. No unrelated binaries, env vars, or network access are requested.
Instruction Scope
SKILL.md limits operations to workspace markdown files, requires explicit user approval before applying 🟡 review edits, and outlines safe/skip rules. It does read and may modify files in the workspace (expected for this task); it does not instruct exfiltration or access to unrelated system areas.
Install Mechanism
Instruction-only skill with a small included Python script. No install spec, no external downloads, and optional dependency on tiktoken (falls back to chars/4 approximation).
Credentials
No required environment variables, credentials, or config paths are declared. The operations (reading/writing workspace files) are proportional to the stated goal.
Persistence & Privilege
always is false and the skill does not auto-register periodic jobs. It edits only workspace files (with backups) and does not claim to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install prompt-diet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /prompt-diet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: audit/recommend/apply workflow for OpenClaw system prompt token optimization. Includes token_count.py script with tiktoken/fallback support, 3-tier safety classification, per-file compression rules, and MEMORY.md special handling.
元数据
Slug prompt-diet
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Prompt Diet 是什么?

Analyze and optimize OpenClaw system prompt token usage by compressing workspace files (AGENTS.md, SOUL.md, USER.md, TOOLS.md, IDENTITY.md, HEARTBEAT.md, MEM... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。

如何安装 Prompt Diet?

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

Prompt Diet 是免费的吗?

是的,Prompt Diet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Prompt Diet 支持哪些平台?

Prompt Diet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Prompt Diet?

由 dgkim311(@dgkim311)开发并维护,当前版本 v1.0.0。

💬 留言讨论