SkillHub

model-guard

v1.0.0

监控 Anti-Gravity 模型配额,自动切换至配额最高者,全部低于20%时回退至 gemini-flash。

Sourced from ClawHub, Authored by SarielWang93

Installation

Please help me install the skill `model-guard` from SkillHub official store. npx skills add SarielWang93/model-guard

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.