← Back to Skills Marketplace
sarielwang93

Model Guard

by SarielWang93 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1307
Downloads
2
Stars
5
Active Installs
1
Versions
Install in OpenClaw
/install model-guard
Description
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%.
README (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.

Usage Guidance
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.
Capability Analysis
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`.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install model-guard
  3. After installation, invoke the skill by name or use /model-guard
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug model-guard
Version 1.0.0
License
All-time Installs 8
Active Installs 5
Total Versions 1
Frequently Asked Questions

What is 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%. It is an AI Agent Skill for Claude Code / OpenClaw, with 1307 downloads so far.

How do I install Model Guard?

Run "/install model-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Model Guard free?

Yes, Model Guard is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Model Guard support?

Model Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Model Guard?

It is built and maintained by SarielWang93 (@sarielwang93); the current version is v1.0.0.

💬 Comments