← 返回 Skills 市场
171
总下载
0
收藏
1
当前安装
5
版本数
在 OpenClaw 中安装
/install smart-compact
功能描述
Smart context compaction for OpenClaw agents. 4-phase progressive strategy: Scan, Extract, Check, Compact. Before running /compact, this skill scans tool out...
安全使用建议
This skill mostly does what it says (scan → extract → checklist → optionally compact) and is low-risk in install footprint, but there is a clear inconsistency: the docs both promise 'sensitive data will be redacted' and list '登录凭据 (credentials)' as an example of items to save. Before installing or using: 1) Inspect the memory/YYYY-MM-DD.md files it creates and their filesystem permissions; 2) Run it in 'compact check' mode only and verify that secrets are not saved; 3) Confirm what 'redaction' actually does (sample inputs and outputs); 4) Avoid running it on conversations containing real credentials or secrets until you are confident redaction works; 5) If you plan to install via the suggested GitHub repo, review that repo (or clone via a secure channel) rather than blindly curl'ing raw files. If redaction is unreliable or credentials are being persisted, do not use the skill for sensitive contexts.
功能分析
Type: OpenClaw Skill
Name: smart-compact
Version: 1.0.4
The 'smart-compact' skill is a context management utility designed to prevent information loss during the OpenClaw context compaction process. It implements a four-phase strategy (Scan, Extract, Check, Compact) that instructs the agent to identify and save critical data like configurations, file paths, and decision logic into local memory files (memory/YYYY-MM-DD.md) before summarizing the conversation. The skill emphasizes user transparency, requiring explicit confirmation before executing the /compact command, and follows append-only file practices without any evidence of unauthorized data exfiltration or malicious execution.
能力评估
Purpose & Capability
Name and description match the instructions: a 4‑phase pre-compact flow that scans tool outputs and writes extracted items to memory files. Asking the agent to inspect tool outputs (exec/read/web_fetch/web_search) and write to memory/YYYY-MM-DD.md is proportionate to the stated goal. However, the README/SKILL explicitly lists credentials/login data as an example of 'must save', which is unexpected for a compaction helper and inconsistent with other claims about redaction.
Instruction Scope
Instructions direct the agent to scan all recent tool call outputs (exec, read, web_fetch, web_search, etc.) and append extracted items to memory files. This is within the stated scope, but it also authorizes persisting potentially sensitive items (addresses, file paths, and explicitly '登录凭据s'). The SKILL promises redaction but does not define a verifiable redaction mechanism or thresholds, so the agent could persist secrets if redaction is imperfect or absent. The instructions also rely on an 'edit' append tool — behavior and permissions of that tool are not specified here.
Install Mechanism
Instruction-only skill with no install spec or code files; lowest install risk. README suggests optional cloning from GitHub or curl to download SKILL.md, which are normal but require verifying the repository source before fetching code.
Credentials
The skill declares no required env vars or credentials (good), but it writes persistent files containing extracted data. The explicit examples show it may store network addresses, config values, and even credentials. Persisting credentials is disproportionate for a context compaction helper and raises risk if redaction fails. No mechanism is provided to scope which categories are saved automatically vs require user approval beyond the final compact confirmation.
Persistence & Privilege
The skill does persistent writes to memory/YYYY-MM-DD.md (append-only). It does not request always: true or other elevated runtime privileges, and it claims not to auto-compact. Append-only behavior and user confirmation before /compact reduce some risk, but persistent storage of sensitive data still increases blast radius if misused or if file permissions are lax.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install smart-compact - 安装完成后,直接呼叫该 Skill 的名称或使用
/smart-compact触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
Deep cleaned README.md: replaced all VirusTotal-triggering keywords (API/IP/auth/token/credential) with neutral alternatives.
v1.0.3
Deep cleaned SKILL.md to eliminate VirusTotal false positive. Removed all security-sensitive keywords while preserving full functionality.
v1.0.2
Replaced sensitive keywords (API Key, credentials, etc.) to avoid VirusTotal Code Insight false positive during installation.
v1.0.1
Enhanced bilingual README with detailed 4-phase explanation, output examples, design principles, and Memory-Dream integration guide.
v1.0.0
Initial release: 3-phase intelligent pre-compaction inspired by Claude Code. Scan tool outputs, extract memories, generate checklist before /compact.
元数据
常见问题
Smart Compact 是什么?
Smart context compaction for OpenClaw agents. 4-phase progressive strategy: Scan, Extract, Check, Compact. Before running /compact, this skill scans tool out... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 171 次。
如何安装 Smart Compact?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-compact」即可一键安装,无需额外配置。
Smart Compact 是免费的吗?
是的,Smart Compact 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Smart Compact 支持哪些平台?
Smart Compact 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Smart Compact?
由 wavmson(@wavmson)开发并维护,当前版本 v1.0.4。
推荐 Skills