← 返回 Skills 市场
82
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-compact-improver
功能描述
优化 OpenClaw 4.2 的 /compact 压缩命令提示词,生成结构化摘要。当用户提到压缩效果差、摘要不完整、上下文丢失、/compact 格式不好,或要求改进压缩提示词时触发。
安全使用建议
This skill intends to improve OpenClaw's /compact prompt and is instruction-only, but review these before installing or using it:
- Source/trust: The skill has no homepage and an unknown source — verify the author before allowing it to modify your agent config.
- Config injection: SKILL.md tells the agent to inject a new systemPrompt into ~/.openclaw/openclaw.json. The registry metadata did not declare any config-path access; do not let it modify your config without an explicit, reviewed change and a backup.
- File exposure: The prompts request preserving exact file paths and full runnable code snippets and instruct the agent to grep and verify files. That can expose source code and secrets. Only enable this behavior when you explicitly want code included and after confirming which directories are in scope.
- Contradictory guidance: The files say both 'do not use tools' and to run grep — clarify with the author which actions the skill will actually perform.
Recommendations:
- Ask the author to update the manifest to declare the config-path and justify file access, or provide a non-persistent workflow (manual prompt you paste into the UI).
- If you test it, do so on a sandboxed project or with a backup of ~/.openclaw/openclaw.json.
- Limit the agent's filesystem access or restrict which directories it may read to avoid accidental exfiltration of sensitive code/config.
Given these mismatches (undeclared config modification and broad file-reading instructions), treat the skill as suspicious until the author clarifies and documents the exact behaviors and required permissions.
功能分析
Type: OpenClaw Skill
Name: openclaw-compact-improver
Version: 1.0.0
The skill bundle is a prompt-engineering utility designed to improve the quality of OpenClaw's '/compact' command by implementing a structured 9-part summary format. It contains no executable code, exfiltration logic, or malicious instructions; instead, it provides templates and 'trust rules' (e.g., verifying file paths via grep) to ensure the agent maintains technical accuracy and context during conversation compression (SKILL.md, references/compact-prompt.md).
能力评估
Purpose & Capability
The skill claims only to improve the /compact prompt and produce structured summaries — that legitimately can require more detailed prompts and guidance. However, the SKILL.md explicitly instructs modifying ~/.openclaw/openclaw.json (agents.defaults.systemPrompt) and preserving exact file paths and full runnable code snippets from the user's workspace. The registry metadata lists no required config paths or credentials, so there is a mismatch between what the skill describes and the config/filesystem access it asks the agent to perform.
Instruction Scope
SKILL.md and references instruct the agent to: inspect and possibly inject into ~/.openclaw/openclaw.json; run grep to verify files/functions; preserve exact file paths, line numbers, and full runnable code snippets in summaries; and extract Pending Tasks with file paths. These instructions broaden scope beyond just rewriting a prompt: they direct filesystem reads and persistent configuration changes, and they demand full source/code be included in outputs (which could expose sensitive code). There is also a contradiction: some parts say 'do not use any tools' and output pure text, while other parts require using grep/verification steps.
Install Mechanism
Instruction-only skill with no install spec and no bundled executables or downloads. This is low install risk; nothing is written by an installer. The runtime instructions, however, do tell the agent how to modify a config file manually, which is not an install-time action but is persistent if followed.
Credentials
The manifest declares no env vars, credentials, or config paths, yet the instructions ask the agent to read and/or modify ~/.openclaw/openclaw.json and to grep workspace files. Requesting full file contents and runnable code in summaries is disproportionate for a simple prompt-improvement helper unless the user explicitly consents to exposing those files. The absence of declared config paths or permissions is an incoherence.
Persistence & Privilege
The SKILL.md recommends injecting the improved prompt into the agent config (~/.openclaw/openclaw.json) or via hooks, which is a persistent change to the agent's systemPrompt. The skill metadata does not declare or justify this persistence. The skill is not set always:true, but instructions explicitly encouraging persistent config modification increase the blast radius if followed and were not declared in the manifest.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-compact-improver - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-compact-improver触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: optimize OpenClaw 4.2 memory search + compact + freshness + trust validation
元数据
常见问题
OpenClaw: compact improver 是什么?
优化 OpenClaw 4.2 的 /compact 压缩命令提示词,生成结构化摘要。当用户提到压缩效果差、摘要不完整、上下文丢失、/compact 格式不好,或要求改进压缩提示词时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 OpenClaw: compact improver?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-compact-improver」即可一键安装,无需额外配置。
OpenClaw: compact improver 是免费的吗?
是的,OpenClaw: compact improver 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw: compact improver 支持哪些平台?
OpenClaw: compact improver 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw: compact improver?
由 NICSHLIU(@nicshliu)开发并维护,当前版本 v1.0.0。
推荐 Skills