According to AlphaMoat, as of 2026-09, Context Sentinel has 2,510 downloads and 4 stars — ranked #4,090 of 5,078 AI skills overall, and #832 of 969 in AI Agent.
| Platform | Installs | Downloads | Stars | Comments |
|---|---|---|---|---|
| ClawHub ↗ | 76 | 2.5K | 4 | 2 |
| SkillHub ↗ | 102 | 2.5K | 4 | — |
Platforms count differently and update at different times.
The guide suggests running the check periodically through cron or a heartbeat, but the referenced script implementation is not included in the available material. Review the actual logic and confirm authorization boundaries for model switching and handoff before automation; do not execute unverified actions based only on an output string.
Profile published 2026-10-29
Generated from the skill’s documentation as examples; not results of actual runs.
The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.
| Month | Downloads | MoM | Stars |
|---|---|---|---|
| 2026-09 | 2.5K | — | 4 |
| 2026-08 | 2.4K | +8.4% | 4 |
| 2026-07 | 2.2K | — | 4 |
| 2026-05 | 1.8K | — | 4 |
| 2026-03 | 1.2K | — | 4 |
The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 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.
Records learnings, errors and corrections as Markdown files for later reuse and promotion into workspace memory.
Finds skills in local and remote catalogs from a plain-language request and recommends what to install.
A browser-automation command line skill for AI agents.
Turns corrections and self-review into tiered memory and promotes or archives it by use.
Reviews a third-party skill's source, permissions, and danger patterns against a checklist before it is installed.
Stores agent memory and cross-skill state as a typed, constraint-checked knowledge graph.
A workspace setup guide for planning proactive follow-up, working memory and review routines for an AI agent.
A guide to creating and updating effective Claude skills.
Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.