skills/mmx-quota-guard/SKILL.md
--- name: mmx-quota-guard description: Budget-aware governance for MiniMax CLI. Activates when: (1) before any mmx command runs; (2) when Arif asks about quota, cost, or budget; (3) before any multi-step multimodal session (image batch, video, music). Prevents ASI-speed runaway billing by enforcing hard budget bands per session. Uses mmx quota and mmx config show. metadata: {"openclaw": {"emoji": "💰"}} --- # MMX Quota Guard — Budget Governance for MiniMax ASI-speed generation without budget a
npx skillsauth add ariffazil/openclaw-workspace skills/mmx-quota-guardInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ASI-speed generation without budget awareness = silent auto-burn. This skill enforces budget bands and will trigger HOLD if limits are approached.
mmx quota
mmx config show # check region, default model, token plan
| Band | Quota Status | Action | |---|---|---| | GREEN | > 50% remaining | Full operations, no restrictions | | YELLOW | 20-50% remaining | Warn before large jobs (video, batch image) | | ORANGE | 5-20% remaining | Downgrade model to highspeed, reduce batch size | | RED | < 5% remaining | HOLD all non-trivial mmx calls — Arif approval required | | EMPTY | 0% or error | VOID all mmx calls — do not proceed |
[ ] Run mmx quota — get current spend vs limit
[ ] Estimate cost of this command (see cost table below)
[ ] Check if command pushes band into ORANGE or RED
[ ] If ORANGE: announce degradation (highspeed model, single image)
[ ] If RED: trigger HOLD — do not proceed without Arif approval
[ ] Log: command, estimated cost, band before/after
| Command | Relative Cost | Notes |
|---|---|---|
| mmx search | 1x (cheapest) | Always safe unless RED |
| mmx text chat --stream | 1x | Safe even in YELLOW |
| mmx text chat --model MiniMax-Text-01 | 3x | Use highspeed in YELLOW+ |
| mmx image --n 1 | 5x | Reduce batch in YELLOW |
| mmx image --n 3+ | 15x | Only in GREEN |
| mmx speech synthesize | 2x | Safe in YELLOW |
| mmx music generate | 10x | Only in GREEN/YELLOW |
| mmx video generate | 50x (most expensive) | Only in GREEN, never in ORANGE+ |
When YELLOW:
--model MiniMax-M2.7-highspeed for text--n 1When ORANGE:
When RED:
mmx quota and mmx config show allowedMaintain in memory during session:
MMX SESSION BUDGET:
- Session start: [quota reading]
- Commands run this session: [count + estimated cost]
- Current band: [GREEN/YELLOW/ORANGE/RED]
- Remaining estimated: [compute from quota]
Every mmx command: log to memory/vault999-triage.md:
HH:MM UTC | mmx | [command type] | [estimated cost] | band: [before] → [after]
This gives Arif a running bill for the session.
When crossing into YELLOW or ORANGE, proactively announce:
⚠️ MMX BUDGET: [YELLOW/ORANGE] band. [Remaining]% quota left.
Degraded mode active: [what changed]
Do not wait to be asked.
testing
OpenClaw edge agent bridge — operational triage, doctor, restart, and A2A bridge routing for the federation edge (Telegram surface). USE WHEN: "openclaw unhealthy", "gateway down", "edge bot not responding", "a2a bridge disconnected", "watchdog tripped", "openclaw doctor", "openclaw restart". NOT for token/security audit — use FORGE-telegram-audit.
tools
Generate images, videos, TTS, voice clone, and music via MiniMax MCP server. Use when user asks to "draw", "generate image", "create picture", "make a photo", "text to image", "image generation".
testing
Single load-bearing constitutional-judgment skill. Routes all F1–F13, verdict, hold, seal, scope, authority and floor-check calls through the live arif_judge surface. Replaces 7 overlapping predecessors (arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge).
development
MANDATORY LSP grounding gate BEFORE any code mutation on .ts, .py, .js, .tsx, .jsx files. Forces the agent to read real-time compiler diagnostics and structural project context before editing — eliminating blind guesses and anchoring every mutation in F2 (TRUTH). Routes through arifOS kernel (:8088) for centralized gate logic.