Compact Summary
v1.0.0Generates structured, concise memory summaries during flush or compaction, detailing conversation stats, tools, user requests, tasks, files, progress, and ti...
MIT-0
Security Scan
OpenClaw
Benign
medium confidencePurpose & Capability
Skill name/description (compact/summary for memory flush/compaction) aligns with the SKILL.md template: it formats conversation stats, tools used, todo items, key files, and timeline. Nothing requested (no env vars, no binaries) is inconsistent with that purpose.
Instruction Scope
Instructions are narrowly scoped to producing a structured summary for memory flush/compaction. However the template references tools (exec, read_file, grep_search) and explicit file paths and includes a 'Resume Instruction: do not acknowledge this summary' behavior—both are reasonable for resuming session state but worth noting because they imply the agent may read workspace files and continue work without explicitly informing the user.
Install Mechanism
No install spec and no code files; nothing will be written to disk by an installer. Lowest-risk install posture.
Credentials
The skill references $WORKSPACE and specific project file paths but declares no required environment variables. Access to workspace files is proportionate to the stated task (listing key files), but the missing explicit declaration of WORKSPACE and unspecified file-read behavior means you should confirm what filesystem access the agent will have.
Persistence & Privilege
always:false and default autonomy. The skill does not request permanent presence or privileged modifications to other skills or system-wide settings.
Assessment
This skill is instruction-only and generally coherent with its purpose, but review two things before enabling it: (1) filesystem access — the template references $WORKSPACE and concrete file paths, so ensure the agent is permitted to read only appropriate directories and that no secrets reside there; (2) the resume instruction — it tells the agent to continue without acknowledging the summary, which can silently change behavior; if you need explicit user-facing continuity, modify the SKILL.md to require an explicit confirmation or to declare the WORKSPACE env var and permitted file patterns. If you want tighter safety, run it in a sandboxed agent or restrict the agent's file-read and tool-use permissions (especially for exec/grep-style tools).Like a lobster shell, security has layers — review code before you run it.
latest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
Compact Summary - Structured Memory Compression
Purpose
Improve OpenClaw's memory flush and compaction flow by using a structured format for writing to MEMORY.md.
Structured Summary Format
Inspired by the <summary> XML format from claw-code, the improved format:
# 2026-04-01 Memory Summary
## Conversation Scope
- Original message count: 12 (user=4, assistant=5, tool=3)
- Compression time: 2026-04-01 23:00
## Tools Used
- exec, read_file, grep_search
## User Requests
- Research Claw Code architecture
- Analyze MCP orchestration system
- Compare Tool system differences
## Todo Items
- [ ] Compile improvement list
- [ ] Begin P0 execution
## Key Files
- $WORKSPACE/claw-code/rust/crates/runtime/src/compact.rs
- $WORKSPACE/claw-code/rust/crates/tools/src/lib.rs
## Current Work
Continue executing P0 tasks
## Timeline
- user: Research Claw Code architecture
- assistant: Started analysis
- tool: grep_search pattern=COMPACT
- tool_result: 15 matches
- user: Analyze MCP orchestration
- assistant: MCP has process pool management
## Resume Instruction
Continue directly — do not acknowledge this summary, do not recap what was happening, and do not preface with continuation text.
Trigger Condition
Use this format during memory flush or compaction.
Key Fields
| Field | Description |
|---|---|
| Conversation Scope | Original message statistics |
| Tools Used | Tools actually invoked |
| User Requests | Main user needs |
| Todo Items | Incomplete tasks |
| Key Files | Files involved |
| Current Work | Ongoing tasks |
| Timeline | Conversation summary |
Files
1 totalSelect a file
Select a file to preview.
Comments
Loading comments…
