Context Monitor Helper

# context-monitor - 上下文使用率监控

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Context Monitor Helper" with this command: npx skills add rfdiosuao/context-monitor-helper

context-monitor - 上下文使用率监控

实时监控会话上下文使用率,在每次回复底部显示占用百分比,超过阈值时主动提醒用户清理上下文。

🚀 功能特性

  • 实时显示:每次回复自动附加上下文使用百分比
  • 进度条可视化:直观的进度条展示使用率
  • 智能预警:超过 70% 时提醒使用 /new/compact
  • 多模型支持:自动识别不同模型的上下文窗口大小
  • 零配置:安装即用,无需额外设置

📦 安装

claw skill install context-monitor

💡 使用场景

场景说明
长对话管理避免上下文超限导致遗忘早期内容
多轮调试监控 Token 消耗,优化对话策略
成本控制了解每次对话的 Token 使用情况
主动清理在达到限制前及时使用 /new/compact

🎯 输出示例

[你的回复内容]

---
📊 上下文使用:45% ▓▓▓▓▓▓▓▓░░░░░░░░░ (4500/10000 tokens)

超过 70% 时:

[你的回复内容]

---
⚠️ 上下文使用:78% ▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ (7800/10000 tokens)
💡 建议:使用 /new 开启新会话 或 /compact 压缩上下文

⚙️ 配置选项

配置项默认值说明
warningThreshold70警告阈值(百分比)
criticalThreshold90严重警告阈值(百分比)
showProgressBartrue是否显示进度条
showTokenCounttrue是否显示具体 Token 数

🔧 命令

命令说明
/new开启全新会话(清空上下文)
/compact压缩上下文(保留核心信息)
/context手动查看当前上下文状态

📝 注意事项

  1. Token 计算:基于实际消息内容估算,可能存在±5% 误差
  2. 模型差异:不同模型上下文窗口不同,自动识别
  3. 性能影响:每次回复增加约 10-20ms 处理时间
  4. 隐私安全:不存储任何对话内容,仅实时计算

🐛 常见问题

Q: 为什么显示的 Token 数和平台统计不一致? A: 本 Skill 使用估算算法,实际 Token 数以平台为准。误差通常在±5% 内。

Q: 可以关闭上下文显示吗? A: 可以,使用 /context off 临时关闭,/context on 重新开启。

Q: 支持哪些模型? A: 支持所有 OpenClaw 集成的模型,自动识别上下文窗口大小。

📄 许可证

MIT License

🔗 相关链接

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

通义晓蜜 - 智能外呼

触发阿里云晓蜜外呼机器人任务,自动批量拨打电话。适用于批量外呼、客户回访、满意度调查、简历筛查约面试等场景。可从前置工具或节点获取外呼名单。

Registry SourceRecently Updated
General

Letterboxd Watchlist

Scrape a public Letterboxd user's watchlist into a CSV/JSONL list of titles and film URLs without logging in. Use when a user asks to export, scrape, or mirror a Letterboxd watchlist, or to build watch-next queues.

Registry SourceRecently Updated
General

Seedance Video Generation

Generate AI videos using ByteDance Seedance. Use when the user wants to: (1) generate videos from text prompts, (2) generate videos from images (first frame, first+last frame, reference images), or (3) query/manage video generation tasks. Supports Seedance 1.5 Pro (with audio), 1.0 Pro, 1.0 Pro Fast, and 1.0 Lite models.

Registry SourceRecently Updated
4.2K17jackycser
General

Universal Skills Manager

The master coordinator for AI skills. Discovers skills from multiple sources (SkillsMP.com, SkillHub, and ClawHub), manages installation, and synchronization...

Registry SourceRecently Updated