Other v1.0.0

bot-openclaw-compact-summary

Compact Summary - Structured Memory Compression

hanxiao 更新于 2026-04-02 1 浏览
下载 SKILL

技能说明

Compact Summary - Structured Memory Compression

使用场景

Compact Summary - Structured Memory Compression

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/bot-openclaw-compact-summary
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 17 kB
SKILL.md text/markdown
# 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:

```markdown
# 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 |

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。