model-fallback

模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。

33 stars

Best use case

model-fallback is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。

Teams using model-fallback should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/model-fallback/SKILL.md --create-dirs "https://raw.githubusercontent.com/aAAaqwq/AGI-Super-Team/main/skills/model-fallback/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/model-fallback/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How model-fallback Compares

Feature / Agentmodel-fallbackStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 模型自动降级与故障切换

- Author: Daniel Li
- Copyright © Daniel Li. All rights reserved.

## 当使用此技能

- 模型请求失败
- API 超时
- 达到速率限制
- 配额耗尽
- 需要确保服务连续性

## 工作原理

1. **监控**: 检测模型请求状态
2. **判断**: 识别失败类型(超时/限额/错误)
3. **切换**: 自动降级到备用模型
4. **重试**: 失败请求自动重试
5. **恢复**: 主模型恢复后自动切回

## 多供应商支持

- 优先级配置
- 跨供应商故障转移
- 智能负载均衡

## 错误类型

- **超时**: 切换到更快模型
- **限额**: 切换到有配额模型
- **错误**: 切换到不同供应商

## 触发词

- "模型降级"
- "自动切换"
- "模型故障"
- "API 失败"

Related Skills

startup-financial-modeling

33
from aAAaqwq/AGI-Super-Team

Use when the user asks to create financial projections, build a financial model, forecast revenue, calculate burn rate, estimate runway, model cash flow, or do 3-5 year startup financial planning.

model-usage

33
from aAAaqwq/AGI-Super-Team

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.

model-usage-linux

33
from aAAaqwq/AGI-Super-Team

Track OpenClaw AI token usage and cost per model on Linux by parsing session JSONL files. Use when asked about: token usage, API cost, how much has been spent, which model was used most, usage summary, billing, cost breakdown. Linux replacement for the macOS-only model-usage/CodexBar skill.

model-provider-manager

33
from aAAaqwq/AGI-Super-Team

Unified LLM provider and model configuration, health monitoring, and key management

model-hierarchy-skill

33
from aAAaqwq/AGI-Super-Team

> 模型层级调度——根据任务复杂度自动选择合适的 LLM 模型

model-health-check

33
from aAAaqwq/AGI-Super-Team

检查已配置模型供应商的连通性、延迟和可用性,用于快速诊断模型侧故障。

cron-model-migration

33
from aAAaqwq/AGI-Super-Team

Safely change models for OpenClaw cron jobs without leaving behind session/model mismatch errors. Use when creating or editing cron jobs with `payload.model`, when moving a job between models/providers, when diagnosing `LiveSessionModelSwitchError`, or when deciding whether a cron should run in `sessionTarget: "isolated"`, `"current"`, `"main"`, or a custom persistent session.

agent-model-switcher

33
from aAAaqwq/AGI-Super-Team

批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。

wemp-operator

33
from aAAaqwq/AGI-Super-Team

> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装

Content & Documentation

zsxq-smart-publish

33
from aAAaqwq/AGI-Super-Team

Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.

zoom-automation

33
from aAAaqwq/AGI-Super-Team

Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.

zoho-crm-automation

33
from aAAaqwq/AGI-Super-Team

Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.