Token导航 LogoToken导航

Agent Skill · 效率

willow-context-sentinel(柳树上下文哨兵)

willow-context-sentinel 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

willow-context-sentinel 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 19,564。

总安装 1,983周安装 81GitHub Stars 公开资料未说明下载 642核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:willow-context-sentinel(柳树上下文哨兵)
来源仓库:https://github.com/rudi193-cmd/willow-context-sentinel
安装命令:
openclaw skills install willow-context-sentinel
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install willow-context-sentinel

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

监控当前会话上下文长度,判断是否接近模型限制并建议压缩、切换或继续策略。适用于长时间对话或多轮交互中管理 token 消耗与响应质量的场景。实现级联检测机制,在关键节点主动预警以避免截断风险。安装命令为 openclaw skills install willow-context-sentinel,无需额外依赖。

决策建议基于当前负载估算,实际效果可能因模型版本而异,需人工确认。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install willow-context-sentinel;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

willow-context-sentinel 怎么安装?

在终端执行 openclaw skills install willow-context-sentinel。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

willow-context-sentinel 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

willow-context-sentinel 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

willow-context-sentinel 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

willow-context-sentinel 用的人多吗?

公开数据是累计安装 1,983 次,近一周安装 81 次,下载 642 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

willow-context-sentinel 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
willow-context-sentinel

柳树上下文哨兵 · 本页

1,983—只读MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
willow-context-sentinel
version
1.0.0
description
Use when you need to check whether the current session is approaching context limits and decide whether to compact, hand off, or continue. Implements a cascading model protocol for Willow/OpenClaw stacks on Linux — monitoring prompt_count as a context proxy and routing to strategic-compact or willow_task_submit as needed.
metadata
{ "openclaw": { "emoji": "🧭", "os": ["linux"], "requires": { "bins": ["bash"] } } }

Willow Context Sentinel

Monitor session context usage and apply a cascading relief protocol before context exhaustion silently degrades response quality.

OutputMeaning
STATUS_OKprompt_count < 15 — session is healthy, continue normally
COMPACT_NOWprompt_count 15–25 — approaching limit, invoke strategic-compact
HANDOFF_NOWprompt_count > 25 — near ceiling, invoke handoff + willow_task_submit
POSTGRES_DOWNsession_anchor.json reports postgres as down — fix infra before proceeding

When to use

  • Heartbeat: run at the start of every session and every ~10 prompts
  • Before large tasks: check before any operation that will generate many tool calls or long output
  • Proactively: if responses feel slower, less coherent, or you notice unusual hedging, run this check immediately
  • After a branch merge or plan execution: context spikes are common at transition points

Step 1 — Run the sentinel script

bash {baseDir}/scripts/check_context.sh

The script reads two Willow state files:

  • ~/.willow/anchor_state.json — prompt_count field (context proxy)
  • ~/.willow/session_anchor.json — postgres status field

Step 2 — Interpret the output

Run the script and act on the single-line output:

STATUS_OK

No action needed. Session is healthy.

STATUS_OK

Continue with the current task. Optionally note the prompt_count in a heartbeat log entry.

COMPACT_NOW

COMPACT_NOW

Context is filling. Invoke the strategic-compact skill immediately before proceeding:

/strategic-compact

After compact completes, re-run the sentinel. If it still reports COMPACT_NOW or escalates to HANDOFF_NOW, proceed to the handoff protocol below.

HANDOFF_NOW

HANDOFF_NOW

Session is near the context ceiling. Invoke the handoff skill and submit the next task to Willow:

  1. Run /handoff to produce a structured handoff document
  2. Call willow_task_submit with the next bite as the task body
  3. End the session cleanly — do not attempt further large operations

POSTGRES_DOWN

POSTGRES_DOWN

Willow's backing store is unreachable. KB reads and writes will fail silently. Do not proceed with memory-dependent tasks. Check the Willow server status:

willow status
# or
systemctl status willow-postgres

Resolve the infra issue before resuming work.

Step 3 — Integration with HEARTBEAT.md

Add a sentinel call to your heartbeat template so it runs automatically. Minimal example:

## Heartbeat — {timestamp}

**Sentinel:** `bash ~/.openclaw/skills/willow-context-sentinel/scripts/check_context.sh`

| Check    | Result    |
| -------- | --------- |
| Context  | STATUS_OK |
| Postgres | up        |

Next bite: {next_task}

If the sentinel output is anything other than STATUS_OK, record the output and the action taken before moving on.

Cascading protocol reference

Claude Sonnet 4.6
    │
    ├─ prompt_count ≥ 15  →  COMPACT_NOW  →  /strategic-compact
    │                              │
    │                              └─ still ≥ 15 after compact
    │                                         │
    └─ prompt_count > 25  →  HANDOFF_NOW  →  /handoff + willow_task_submit

Relief valves are applied in order. Skip to HANDOFF_NOW if compact has already been run in this session and context remains high.

Notes

  • prompt_count is a proxy, not a direct token count. Actual context consumption varies by response length. Treat thresholds as conservative triggers, not hard limits.
  • Both state files (anchor_state.json, session_anchor.json) are written by the Willow server. If either file is missing, the script outputs STATUS_OK and logs a warning to stderr — it fails open, not closed.
  • This skill does not modify any state files. It is read-only and safe to run at any time.

平台分布

OpenClaw

82.67%
按下载量换算531

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills