← 返回 Skills 市场
Context Booster
作者
pagoda111king
· GitHub ↗
· v0.1.4
· MIT-0
247
总下载
0
收藏
1
当前安装
5
版本数
在 OpenClaw 中安装
/install context-booster
功能描述
Use this skill when managing long-context conversations and tasks. Provides intelligent compression, key extraction, context enhancement, memory retrieval, a...
使用说明 (SKILL.md)
context-booster - 上下文增强器
版本:v0.1.0
定位:L1 增强层 - ECC 式上下文管理,解决 AI 记忆限制
📖 技能说明
context-booster 是一个上下文增强引擎,能够:
- 捕获执行上下文 - 记录技能执行前后的完整上下文
- 压缩记忆 - 智能压缩历史对话,保留关键信息
- 语义检索 - 基于语义检索相关上下文
- 注入上下文 - 在执行前注入相关上下文
- 状态持久化 - SQLite 存储,支持跨会话持久化
核心价值:
- 解决 AI 上下文窗口限制
- 保持长对话的连贯性
- 提升复杂任务的执行效果
🎯 使用场景
| 场景 | 示例 |
|---|---|
| 长对话 | 「继续我们昨天讨论的技能进化方案」 |
| 复杂任务 | 「帮我完成这个多步骤的研究任务」 |
| 跨会话 | 「继续上次未完成的技能创建」 |
| 上下文丢失 | 「我刚才说的需求是什么?」 |
🚀 使用方法
方式 1:直接调用
请增强当前上下文:
[任务描述]
方式 2:检索上下文
检索相关上下文:
[关键词或主题]
方式 3:压缩记忆
压缩过去 24 小时的对话记忆
📋 核心功能
1. 上下文捕获
// 捕获执行上下文
const context = await captureContext({
sessionId: 'session-123',
skillId: 'first-principle-analyzer',
input: userInput,
ecosystemState: getEcosystemState()
});
2. 记忆压缩
// 压缩历史对话
const compressed = await compressMemory({
timeRange: 'last-24-hours',
retentionRate: 0.3, // 保留 30% 关键信息
method: 'semantic' // 语义压缩
});
3. 语义检索
// 检索相关上下文
const related = await retrieveContext('技能进化', {
limit: 5,
minRelevance: 0.7
});
4. 上下文注入
// 注入到执行环境
await injectContext(executionId, related, {
priority: 'high',
format: 'structured'
});
🔧 技术架构
ECC 模式应用
基于 ECC 的上下文管理模式:
- 执行前捕获 - SessionStart Hook
- 执行后总结 - SessionStop Hook
- SQLite 存储 - 持久化状态
- 语义索引 - 快速检索
数据结构
interface ContextRecord {
id: string;
sessionId: string;
skillId?: string;
// 输入/输出
input: any;
output?: any;
// 压缩后的摘要
summary: string;
keywords: string[];
// 语义向量(用于检索)
embedding?: number[];
// 时间
createdAt: Date;
expiresAt?: Date;
// 元数据
importance: number; // 重要性 0-1
accessCount: number; // 访问次数
}
📊 效果评估
评估维度
| 维度 | 说明 | 目标 |
|---|---|---|
| 压缩率 | 原始大小/压缩后大小 | ≥3:1 |
| 检索准确率 | 检索结果相关性 | ≥85% |
| 响应时间 | 检索 + 注入时间 | \x3C500ms |
| 上下文完整度 | 关键信息保留率 | ≥90% |
使用示例
# 上下文增强效果报告
## 压缩效果
- 原始对话:10,000 tokens
- 压缩后:3,000 tokens
- 压缩率:3.3:1 ✓
## 检索效果
- 查询:"技能进化"
- 检索结果:5 条
- 相关率:100% ✓
## 执行效果
- 响应时间:320ms ✓
- 关键信息保留:95% ✓
⚠️ 使用注意
何时使用
- ✅ 长对话需要保持连贯性
- ✅ 复杂任务需要多步骤上下文
- ✅ 跨会话继续未完成任务
- ✅ 上下文窗口即将耗尽
何时不使用
- ❌ 短对话(\x3C10 轮)
- ❌ 简单任务(单步骤)
- ❌ 敏感信息(需特殊处理)
📚 版本演进
当前版本:v0.1.0
- 基础上下文捕获
- 记忆压缩(语义)
- 语义检索
- SQLite 存储
下一版本:v0.2.0 (规划中)
- 自动过期清理
- 多会话关联
- 上下文可视化
创建时间:2026-03-30
创建者:王的奴隶 · 严谨专业版
版本:v0.1.0
状态:初始版本
💰 购买与授权
本技能版本:v0.1.0(基础版)
授权类型:
- 个人版:$49.9(永久使用,个人非商业用途)
- 商业版:$149.9(永久使用,商业用途)
- 企业版:$499.9(永久使用 + 定制支持)
购买后获得:
- ✅ 技能完整源码
- ✅ 使用文档
- ✅ 1 年免费更新
- ✅ 邮件支持
联系方式:
- 📧 邮箱:[email protected]
- 💬 微信:CloudShrimpSupport(备注:技能名称)
技能版本:v0.1.0
创建时间:2026-03-30
维护者:王的奴隶 · 严谨专业版
授权:商业许可(购买后)
安全使用建议
This package looks functionally coherent with its stated goal but has important inconsistencies and ambiguous capture behavior you should address before installing. Ask the publisher for: (1) the actual source code (src/index.js and any CLI) so you can review what captureContext/getEcosystemState do; (2) an explicit install spec (how the CLI is installed) instead of only docs; (3) a clear data schema showing exactly which fields are captured and persisted; (4) whether the DB is encrypted by default and how to delete or export stored contexts safely. Until you can review the code, avoid using it with sensitive conversations or granting the agent access to system files or other skills' data. If you proceed, restrict filesystem permissions to the stated DB path and require user consent before any export or cross-session capture.
功能分析
Type: OpenClaw Skill
Name: context-booster
Version: 0.1.4
The context-booster bundle is a meta-skill designed for long-term memory management, utilizing SQLite for local persistence and semantic retrieval to overcome AI context window limitations. The documentation (SKILL.md, README.md, FAQ.md) describes standard RAG (Retrieval-Augmented Generation) patterns such as context capture, compression, and injection without any evidence of data exfiltration or malicious intent. While the skill handles sensitive conversation data and includes a commercial licensing model, it explicitly states that data remains stored locally in '~/.openclaw/context-booster/context.db' and does not communicate with external servers.
能力评估
Purpose & Capability
Name and description match the documented features (compression, retrieval, SQLite persistence). However, package.json and README advertise a Node.js package and CLI (context-booster / cb) even though no source code or binaries are present in the bundle. That mismatch (instruction-only skill that nevertheless documents an installable package) is incoherent and could lead to runtime failures or surprising behavior if the agent assumes a CLI exists.
Instruction Scope
SKILL.md repeatedly instructs the agent to 'capture the complete execution context' and calls helpers like getEcosystemState(), captureContext(), and SessionStart/Stop hooks. Those terms are vague: ‘complete context’ can include other skills' data, environment variables, and user-sensitive content. The FAQ/README specify a persistent SQLite DB at ~/.openclaw/context-booster/context.db and export commands — meaning the skill will read/write persistent local data and can export it. The instructions do not clearly limit what fields are captured or require explicit consent for sensitive items, creating a risk of unintended data collection/exfiltration.
Install Mechanism
There is no install spec in the registry and no code files shipped, making this an instruction-only skill. Yet README/package.json describe npm install, a main entry (src/index.js), and CLI usage. That inconsistency is a red flag: the runtime instructions assume binaries/JS code exist, but the bundle provides only docs. This could cause the agent to attempt commands that don't exist, or a malicious/incorrect install step might be introduced later to satisfy the documented behavior.
Credentials
The skill declares no required environment variables or credentials (good). However, it asks to persist context to a local SQLite DB in the user's home directory and to read 'ecosystemState' and full execution context, which can include environment/config data. While no explicit secret requests are present, the informal instruction to capture broad context increases the chance of recording sensitive env/config data unintentionally. The documentation's claim 'does not upload to external servers' mitigates network exfil but is self-reported and not enforced by the bundle.
Persistence & Privilege
The skill intends to persist data across sessions (SQLite at ~/.openclaw/context-booster/context.db) and provides CLI cleanup/export commands. It does not set always: true and does not request elevated system privileges in metadata. Persisting a local DB is expected for a memory/context skill, but users should be aware this creates a durable store of potentially sensitive conversations unless encryption/permissions are verified (enterprise version mentions encryption as a paid feature).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install context-booster - 安装完成后,直接呼叫该 Skill 的名称或使用
/context-booster触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.4
Update to v0.1.4: improved context capture and retrieval
v0.1.3
context-booster v0.1.3
- Major update to documentation: expanded and restructured SKILL.md with more detailed usage methods, feature breakdowns, commercial scenarios, and known limitations.
- Added VERSION_HISTORY.md.
- Removed obsolete files: CLAWHUB-UPLOAD.md and package.json.
v0.1.2
上下文增强功能完善 - 添加智能压缩和记忆检索
v0.1.1
- No changes detected in this version.
- All documentation and configuration remain the same as the previous release.
v0.1.0
Initial release of context-booster:
- Provides intelligent compression, key extraction, context enhancement, memory retrieval, and context prediction for managing long-context conversations.
- Optimizes context window usage and maintains conversation coherence in complex, multi-turn, or long-term tasks.
- Supports scenarios such as task resumption, historic conversation retrieval, project background supplementation, knowledge memory queries, and context usage optimization.
- Offers different subscription tiers (Personal, Business, Enterprise) with varying features and memory capacity.
- Ensures privacy with encrypted storage and compliance with data regulations.
元数据
常见问题
Context Booster 是什么?
Use this skill when managing long-context conversations and tasks. Provides intelligent compression, key extraction, context enhancement, memory retrieval, a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 247 次。
如何安装 Context Booster?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install context-booster」即可一键安装,无需额外配置。
Context Booster 是免费的吗?
是的,Context Booster 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Context Booster 支持哪些平台?
Context Booster 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Context Booster?
由 pagoda111king(@pagoda111king)开发并维护,当前版本 v0.1.4。
推荐 Skills