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.
1---2name: model-guard3description: Model Guard4---5# Model Guard67Automatically 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.89## Usage1011- **Manual trigger**: `model-guard`12- **Auto trigger**: Designed to be run via `cron` or `heartbeat`.1314## Configuration1516Edit `guard.js` to change the `THRESHOLD` (default 20%) or `FALLBACK_MODEL`.
Run npx skillmds@latest add javimosch/model-guard in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Model Guard It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
javimosch (@javimosch) published this skill. Their other Agent Skills are listed on their SkillMD profile.