360 Secure SkillHub
360 安全技能中心

ai-quota-check

通过 Node 脚本调用各 AI 提供商的配额接口,生成统一的配额仪表盘,并按编码/推理等任务给出模型优先级与降级阈值(默认 20%)建议,设计上可由 Cron 周期性调用做配额监控与重置检测。

分类:自动化
kr1json
kr1json
热度 56.19
最近更新 2026-05-18 11:57:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kr1json/ai-quota-check
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
ai-quota-check
description
**DEFAULT quota checker** - Use this skill FIRST when user says '쿼타', '쿼터', 'quota', '쿼타확인', '쿼터확인', or asks about quotas. Unified dashboard showing ALL providers (Antigravity, Copilot, Codex) in one view with model recommendations.
metadata
{"clawdbot":{"emoji":"🧮","requires":{"bins":["node","codex"]}}}

ai-quota-check

Unified quota monitor and intelligent model recommender for all providers.

Output Instructions

IMPORTANT: When executing this skill, display the script output EXACTLY as-is in markdown format. Do NOT summarize or rephrase the output. The script produces a formatted dashboard that should be shown directly to the user.

Example execution:

node skills/ai-quota-check/index.js --current-model="<current_model_name>"

Then copy the entire output and send it as your response.

Features

  1. Provider Login Check - Detects which providers are logged in
  2. Unified Quota Dashboard - Antigravity + Copilot + OpenAI Codex
  3. Task-based Recommendations - Optimal model selection with fallback
  4. Reset Detection - Identifies models ready for ping (new cycle)
  5. Risk Level Info - Warns about weekly caps and lockout risks

Usage

# Full dashboard
node skills/ai-quota-check/index.js

# Specific task recommendation
node skills/ai-quota-check/index.js --task=coding
node skills/ai-quota-check/index.js --task=reasoning

Model Routing Rules

Coding / Debugging

Priority Model Fallback Condition
1st openai-codex/gpt-5.3-codex -
2nd openai-codex/gpt-5.2-codex Primary < 20%
3rd google-antigravity/gemini-3-pro-high All above < 20%

Complex Reasoning / Analysis

Priority Model Fallback Condition
1st google-antigravity/claude-opus-4.6-thinking -
2nd github-copilot/claude-4.6-opus Primary < 20%
3rd github-copilot/claude-3.5-opus If 4.6 unavailable
4th openai-codex/gpt-5.3 All above < 20%
5th openai-codex/gpt-5.2 Last fallback

Fallback Threshold

Default: 20% - Switches to fallback when primary drops below this.

Cron Integration

This skill is designed to be called periodically via Cron for:

  • Quota monitoring
  • Reset detection (ping optimization)
  • Automatic model switching recommendations