skills/ARCHIVE-chaos-quarantine/model-fallback-monitor/SKILL.md
Monitor the model fallback chain: MiniMax (primary), DeepSeek (hot-swap), Kimi, Ollama qwen2.5:7b (local). Track latency, billing failures (402), cold-start failures, and auto-pause dead models. USE WHEN: "model health", "check fallback chain", "DeepSeek balance", "model latency", "billing alert".
npx skillsauth add ariffazil/openclaw-workspace model-fallback-monitorInstall 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.
Tracks Arif's model federation health. Prevents the DeepSeek 402 scenario from going unnoticed.
Primary: minimax/MiniMax-M2.7 (hot)
Fallback 1: deepseek/deepseek-chat
Fallback 2: kimi/kimi-for-coding
Fallback 3: ollama/qwen2.5:7b (cold/local)
# Check DeepSeek balance (will 402 if empty)
curl -s -X POST https://api.deepseek.com/v1/models \
-H "Authorization: Bearer $DEEPSEEK_KEY" \
--max-time 10 | jq '.error.code' 2>/dev/null
# Quick MiniMax ping (adjust endpoint as needed)
curl -s -o /dev/null -w "%{http_code}" --max-time 10 \
https://api.minimax.chat/v1/models 2>/dev/null
# Check Ollama is responsive
curl -s --max-time 5 localhost:11434/api/tags | jq '.models[].name'
# Time each model in chain
for model in "mini-mini" "deepseek" "kimi" "ollama"; do
start=$(date +%s%N)
# lightweight ping for each
echo "$model: $(($(date +%s%N) - $start))ns"
done
| Model | Failure Mode | Detection | |---|---|---| | deepseek-v4-pro | 402 Insufficient Balance | HTTP 402 | | deepseek-chat | Rate limit | HTTP 429 | | kimi | Unknown model key | Config mismatch | | ollama/qwen2.5:7b | Cold start slow | > 30s response |
MODEL FALLBACK MONITOR — $(date -u)
────────────────────────────────────
MiniMax: ✅ OK (latency: Xms)
DeepSeek: ⚠️ LOW BALANCE (estimated $Y remaining)
Kimi: ✅ OK / ❌ UNCONFIGURED
Ollama: ✅ OK (qwen2.5:7b loaded)
────────────────────────────────────
Active model: minimax/MiniMax-M2.7
Fallback chain: healthy / degraded / critical
# Run every 30 min
*/30 * * * * /root/.openclaw/workspace/skills/model-fallback-monitor/check.sh >> /var/log/model-monitor.log 2>&1
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.