·context-management
</>

context-management

rysweet/amplihack

通过令牌监控、智能提取和选择性补充进行主动上下文窗口管理。 具有预测性预算监控、上下文健康指标和基于优先级的保留功能。 当接近令牌限制或需要保留基本上下文时使用。 通过主动优化补充 /transcripts 和 PreCompact 挂钩。

24安装·3热度·@rysweet

安装

$npx skills add https://github.com/rysweet/amplihack --skill context-management

SKILL.md

This skill enables proactive management of Claude Code's context window through intelligent token monitoring, context extraction, and selective rehydration. Instead of reactive recovery after compaction, this skill helps users preserve essential context before hitting limits and restore it efficiently when needed.

Start with essential and upgrade if more context is needed.

Instead of just checking current usage, predict when thresholds will be reached:

通过令牌监控、智能提取和选择性补充进行主动上下文窗口管理。 具有预测性预算监控、上下文健康指标和基于优先级的保留功能。 当接近令牌限制或需要保留基本上下文时使用。 通过主动优化补充 /transcripts 和 PreCompact 挂钩。 来源:rysweet/amplihack。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/rysweet/amplihack --skill context-management
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 context-management?

通过令牌监控、智能提取和选择性补充进行主动上下文窗口管理。 具有预测性预算监控、上下文健康指标和基于优先级的保留功能。 当接近令牌限制或需要保留基本上下文时使用。 通过主动优化补充 /transcripts 和 PreCompact 挂钩。 来源:rysweet/amplihack。

如何安装 context-management?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/rysweet/amplihack --skill context-management 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/rysweet/amplihack