據 AlphaMoat 統計,截至 2026-09,Context Sentinel 累計下載 2,510 次、獲 4 個星標,在全部 5,078 個 AI 技能中排名第 4,090 位,在「AI 智慧體」分類(969 個)中排名第 832 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 76 | 2510 | 4 | 2 |
| SkillHub ↗ | 102 | 2474 | 4 | — |
各平台的計數口徑不同,統計時間不一致。
文件建議將檢查指令碼定期用於 cron 或 heartbeat;但當前材料未提供被引用的指令碼實現。自動接入前應先審閱實際邏輯,並確認模型切換和交接操作的授權邊界,不應僅憑輸出字串執行未核實的動作。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 2510 | — | 4 |
| 2026-08 | 2362 | +8.4% | 4 |
| 2026-07 | 2178 | — | 4 |
| 2026-05 | 1777 | — | 4 |
| 2026-03 | 1207 | — | 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 用的瀏覽器自動化命令列技能。
將使用者明確糾正與自我檢視整理成分層記憶,並依使用情況升級或封存。
在安裝第三方技能之前,按清單審查來源、許可權與危險模式的技能。
將代理記憶與跨技能狀態整理成具型別與約束的知識圖譜。
規劃 AI 代理主動跟進、工作記憶與回顧流程的工作區設定指南。
指導如何建立與更新有效 Claude 技能的寫作指南。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。