← 返回 Skills 市场
sarielwang93

Model Guard

作者 SarielWang93 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1307
总下载
2
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install model-guard
功能描述
Monitors Anti-Gravity model quotas and automatically switches to the model with highest quota or falls back to gemini-flash if all are below 20%.
使用说明 (SKILL.md)

Model Guard

Automatically monitors Anti-Gravity model quotas and switches the default model to the one with the highest remaining quota. If all Anti-Gravity models are below 20%, it falls back to the native gemini-flash model.

Usage

  • Manual trigger: model-guard
  • Auto trigger: Designed to be run via cron or heartbeat.

Configuration

Edit guard.js to change the THRESHOLD (default 20%) or FALLBACK_MODEL.

安全使用建议
Before installing: (1) confirm you have the 'openclaw' CLI on PATH and test 'openclaw models status' and 'openclaw models set' manually; the package metadata currently omits this required binary. (2) Review the CANDIDATES and FALLBACK_MODEL strings in guard.js to ensure they are models you trust and that switching to them is acceptable. (3) Because the script runs shell commands, prefer running it in a controlled environment and/or review logs/audit for automatic runs; you may restrict autonomous invocation or run it on a cron job you control. (4) Consider hardening the script (use execFile/spawn with args or validate model names strictly) to reduce shell-injection risk if you ever change candidate sources. (5) If provenance matters, seek a published source/homepage or contact the owner before trusting this skill in production.
功能分析
Type: OpenClaw Skill Name: model-guard Version: 1.0.0 The skill is classified as benign. It uses `child_process.execSync` to interact with the `openclaw` CLI, specifically to query model status and set the default model. While `execSync` is a powerful primitive, the commands executed (`openclaw models status` and `openclaw models set`) are directly related to the skill's stated purpose of managing Anti-Gravity model quotas. Crucially, all arguments passed to `openclaw models set` are derived from hardcoded lists or constants within `guard.js`, preventing command injection from untrusted sources. There is no evidence of data exfiltration, persistence mechanisms, obfuscation, or prompt injection attempts in `SKILL.md`.
能力评估
Purpose & Capability
The SKILL.md and guard.js implement a coherent feature: query 'openclaw models status' and switch models via 'openclaw models set'. However the skill's declared requirements list no required binaries even though the script depends on the 'openclaw' CLI being present on PATH. The skill also has no human-friendly description or provenance information (homepage/source unknown), which reduces trust.
Instruction Scope
Runtime instructions and the script stay within the stated purpose: they only call the local 'openclaw' CLI, parse status output, and may call 'openclaw models set'. The script does not contact external network endpoints, read arbitrary filesystem locations, or access environment variables. It directs no data off-host.
Install Mechanism
No install spec is provided (instruction-only + included script). Nothing is downloaded or written by an installer. The package exposes a CLI via package.json, which is expected for this type of tool.
Credentials
The skill requests no environment variables or credentials and the code does not reference secrets or external tokens. This is proportionate to the stated task.
Persistence & Privilege
always:false (normal). The skill can be invoked autonomously by the agent (default), and when executed it will change the agent/system default model via 'openclaw models set'—a legitimate but impactful action. Consider whether autonomous runs should be allowed or limited by scheduling/auditing.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install model-guard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /model-guard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of model-guard. - Automatically monitors Anti-Gravity model quotas. - Switches the default model to the one with the highest remaining quota. - Falls back to the native gemini-flash model if all quotas are below 20%. - Can be triggered manually or configured to run automatically (e.g., via cron). - Threshold and fallback model settings are configurable in guard.js.
元数据
Slug model-guard
版本 1.0.0
许可证
累计安装 8
当前安装数 5
历史版本数 1
常见问题

Model Guard 是什么?

Monitors Anti-Gravity model quotas and automatically switches to the model with highest quota or falls back to gemini-flash if all are below 20%. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1307 次。

如何安装 Model Guard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-guard」即可一键安装,无需额外配置。

Model Guard 是免费的吗?

是的,Model Guard 完全免费(开源免费),可自由下载、安装和使用。

Model Guard 支持哪些平台?

Model Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Model Guard?

由 SarielWang93(@sarielwang93)开发并维护,当前版本 v1.0.0。

💬 留言讨论