🦀 ClawHub
Lobster Compact
by @wangxiaofei860208-source
Summarize long conversations to preserve context. Automatically triggered when context window approaches limits, or manually with /compact.
TERMINAL
clawhub install lobster-compact📖 About This Skill
name: lobster-compact description: "Summarize long conversations to preserve context. Automatically triggered when context window approaches limits, or manually with /compact." allowed-tools: - read - write - edit - memory_search - memory_get when_to_use: "Use when the conversation becomes very long and context may be lost. Examples: 'summarize so far', 'compact', '我们聊了太多了', '总结一下'."
Compact — 长会话压缩
Inputs
$args: Optional focus area for the summaryGoal
Create a detailed summary of the conversation so far that preserves all critical context for continuing work.Steps
1. Analyze the Conversation
Chronologically analyze each exchange:2. Generate Summary
Write a summary with these sections:# 会话摘要1. 主要请求和意图
[用户的核心需求]2. 关键技术概念
[涉及的技术、框架、工具]3. 文件和代码
[涉及的文件和关键代码片段]4. 错误和修复
[遇到的问题及解决方案]5. 用户反馈
[用户给出的指导、纠正、偏好]6. 待办任务
[尚未完成的任务]7. 当前工作
[最近在做什么,精确到文件和代码]8. 下一步
[紧接着应该做什么]
3. Update Memory
memory_search to avoid duplicatesSuccess criteria: Summary captures all critical context; memory files updated.