← Back to Skills Marketplace
171
Downloads
0
Stars
1
Active Installs
5
Versions
Install in OpenClaw
/install smart-compact
Description
Smart context compaction for OpenClaw agents. 4-phase progressive strategy: Scan, Extract, Check, Compact. Before running /compact, this skill scans tool out...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install smart-compact - After installation, invoke the skill by name or use
/smart-compact - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Smart Compact?
Smart context compaction for OpenClaw agents. 4-phase progressive strategy: Scan, Extract, Check, Compact. Before running /compact, this skill scans tool out... It is an AI Agent Skill for Claude Code / OpenClaw, with 171 downloads so far.
How do I install Smart Compact?
Run "/install smart-compact" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Smart Compact free?
Yes, Smart Compact is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Smart Compact support?
Smart Compact is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Smart Compact?
It is built and maintained by wavmson (@wavmson); the current version is v1.0.4.
More Skills