← Back to Skills Marketplace
82
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-compact-improver
Description
优化 OpenClaw 4.2 的 /compact 压缩命令提示词,生成结构化摘要。当用户提到压缩效果差、摘要不完整、上下文丢失、/compact 格式不好,或要求改进压缩提示词时触发。
Usage Guidance
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.
Capability Analysis
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).
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-compact-improver - After installation, invoke the skill by name or use
/openclaw-compact-improver - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: optimize OpenClaw 4.2 memory search + compact + freshness + trust validation
Metadata
Frequently Asked Questions
What is OpenClaw: compact improver?
优化 OpenClaw 4.2 的 /compact 压缩命令提示词,生成结构化摘要。当用户提到压缩效果差、摘要不完整、上下文丢失、/compact 格式不好,或要求改进压缩提示词时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.
How do I install OpenClaw: compact improver?
Run "/install openclaw-compact-improver" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenClaw: compact improver free?
Yes, OpenClaw: compact improver is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does OpenClaw: compact improver support?
OpenClaw: compact improver is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenClaw: compact improver?
It is built and maintained by NICSHLIU (@nicshliu); the current version is v1.0.0.
More Skills