# Model Guard

> Model Guard

- Skill: `javimosch/model-guard` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/model-guard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/model-guard/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/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`.

