📦 Context Budgeting — 上下文预算管理
v1.0.0通过分区、预压缩检查点及信息生命周期管理,智能优化 OpenClaw 上下文窗口占用,在会话接近上限(>80%)、代理压缩后“失忆”或需降低长任务 token 成本与延迟时使用。
5· 3.7k·39 当前·41 累计
下载技能包
最后更新
2026/3/1
安全扫描
OpenClaw
可疑
medium confidenceNULL
评估建议
This skill is plausible for managing OpenClaw context, but review and adjust before using. Specific steps to take: (1) Confirm you have a real 'openclaw' CLI and that its commands are as the script expects; (2) Change the hard-coded WORKSPACE path to a safe, correct workspace for your environment (do not run with the included '/Users/yang/...' path unless that's yours); (3) Inspect and clarify the heartbeat '/status' check — where that endpoint lives and what it returns — before enabling periodi...详细分析 ▾
⚠ 用途与能力
The SKILL.md and the script clearly expect an 'openclaw' CLI to exist and to operate on a local workspace (memory/hot/HOT_MEMORY.md), but the skill declares no required binaries or environment variables. A legitimate 'context budgeting' helper would reasonably require the OpenClaw CLI (or document how compaction is triggered). The script also hard-codes WORKSPACE="/Users/yang/clawd", which is a personal path and unlikely to be correct for most users.
⚠ 指令范围
The instructions require updating HOT_MEMORY.md and running the provided shell script; they also state a heartbeat should check '/status' every 30m and 'clear raw data' once summaries are extracted. 'Clear raw data' is underspecified (could imply deletion of large files) and the /status endpoint is not defined. The included script itself does not perform deletions (the find cleanup line is commented out), so the prose and the executable are not fully consistent.
ℹ 安装机制
There is no install spec (instruction-only plus a small script), which minimizes supply-chain risk. The only shipped code is a 917-byte bash script; it contains no network downloads or obfuscated code. That said, the script invokes an external CLI and uses a hard-coded filesystem path — things to validate locally before running.
⚠ 凭证需求
The skill claims no required env vars or credentials, yet it assumes filesystem access to a workspace and the presence of the 'openclaw' CLI. Requesting no credentials is fine, but the hard-coded path and implicit expectation of local-file writes/reads are unannounced and could lead to the agent touching user files unexpectedly if run.
✓ 持久化与权限
always is false and there is no install-time mechanism to persist or auto-enable the skill. The script does not modify other skills or system-wide configuration. Autonomous invocation is allowed by default (normal) but not a unique risk here.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/2/8
NULL
● 无害
安装命令
点击复制官方npx clawhub@latest install context-budgeting
镜像加速npx clawhub@latest install context-budgeting --registry https://cn.longxiaskill.com