据 AlphaMoat 统计,截至 2026-09,Context Sentinel 累计下载 2,510 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 4,090 位,在「AI 智能体」分类(969 个)中排名第 832 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 76 | 2,510 | 4 | 2 |
| SkillHub ↗ | 102 | 2,474 | 4 | — |
各平台的计数口径不同,统计时间不一致。
文档建议将检查脚本定期用于 cron 或 heartbeat;但当前材料未提供被引用的脚本实现。自动接入前应先审阅实际逻辑,并确认模型切换和交接操作的授权边界,不应仅凭输出字符串执行未核实的动作。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 2,510 | — | 4 |
| 2026-08 | 2,362 | +8.4% | 4 |
| 2026-07 | 2,178 | — | 4 |
| 2026-05 | 1,777 | — | 4 |
| 2026-03 | 1,207 | — | 4 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: context-sentinel description: "Monitors session context and automatically manages model switching based on a cascading protocol. Use as part of a heartbeat or cron job to maintain session health and optimize token usage." version: 1.0.0 --- # Context Sentinel This skill provides a script to automate the "Cascading Model Protocol," ensuring the agent gracefully degrades from high-cost models to high-context models as the session grows.
## Protocol Summary
1. **Opus 4.6:** Use until 80% context, then switch to Opus 4.5.
2. **Opus 4.5:** Use until 80% context, then switch to Gemini 2.5 Pro.
3. **Gemini Pro:** Use until 80% context, then trigger a handoff.
This skill operationalizes the logic defined in `MEMORY.md`.
## How to Use
This skill is designed to be run periodically, either via a `cron` job or as part of the main agent's `HEARTBEAT.md` checklist.
### Workflow
1. **Execute the script:**
Run the `check_context.ps1` script to get the current session status and determine the required action.
```powershell
powershell -File scripts/check_context.ps1
```
2. **Evaluate the output:**
The script will return one of three possible string commands:
* `SWITCH_TO:<model_id>`
* `HANDOFF_NOW`
* `STATUS_OK`
3. **Take Action:**
Based on the output, execute the appropriate agent command.
* If `SWITCH_TO:<model_id>`, run `session_status` with the new model ID:
```
session_status model=<model_id>
```
* If `HANDOFF_NOW`, trigger the handoff process by writing to the handoff file. This is typically done by running a specific, pre-defined prompt or script.
* If `STATUS_OK`, no action is needed.
### Example Usage in `HEARTBEAT.md`
You can replace the manual checks in your `HEARTBEAT.md` with a call to this skill's script.
**Old `HEARTBEAT.md`:**
```markdown
## Cascading Model Protocol (Check Every Heartbeat)
1. **Check Status:** Get current model and context %.
2. **Opus 4.6:** If model is `Opus 4.6` and context > 80% -> Switch to `Opus 4.5`.
...
```
**New `HEARTBEAT.md` using this skill:**
```markdown
## Context Sentinel (Check Every Heartbeat)
1. Run `powershell -File skills/context-sentinel/scripts/check_context.ps1`.
2. Evaluate the output and take action (`SWITCH_TO`, `HANDOFF_NOW`, or `STATUS_OK`).
```
This makes the logic reusable and keeps the `HEARTBEAT.md` file clean and focused on execution.
把开发过程中的经验、错误与纠正记录为 Markdown 文件,供后续复用并晋升为工作区记忆。
用自然语言描述需求,在本地与远程技能市场里找技能并给出推荐的技能。
给 AI agent 用的浏览器自动化命令行技能。
把用户纠正与自我复盘沉淀成分层记忆、并按使用情况升降级的技能。
在安装第三方技能之前,按清单审查来源、权限与危险模式的技能。
把 agent 的记忆与跨技能状态存成带类型和约束的知识图谱的技能。
一份为 AI 代理规划主动跟进、工作记忆与复盘流程的工作区配置指南。
指导如何创建与更新有效 Claude 技能的写作指南。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。