Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aaaaqwq avatar

Model Fallback

  • 47 installs
  • 82 repo stars
  • Updated August 2, 2026
  • aaaaqwq/claude-code-skills

model-fallback is a Claude Code skill that automatically fails over to a backup model when the primary model request fails, times out, or hits rate or quota limits.

About

model-fallback is a Claude Code skill that provides automatic model downgrade and failover. When a primary model request fails, times out, or hits a rate limit or quota, it switches to a backup model to keep service running. It supports multi-provider, priority-based model selection with health monitoring, auto-retry, and error recovery, and switches back once the primary recovers. A developer uses it to keep an AI agent reliable across model outages. The SKILL.md is written in Chinese.

  • Automatically switches to a backup model when the primary fails, times out, or hits rate/quota limits
  • Supports multi-provider, priority-based failover with health monitoring and auto-retry
  • Switches back to the primary model once it recovers

Model Fallback by the numbers

  • 47 all-time installs (skills.sh)
  • Ranked #7,461 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
At a glance

model-fallback capabilities & compatibility

Capabilities
model failover · auto retry · rate limit handling · model routing
Use cases
orchestration
Pricing
Free
From the docs

What model-fallback says it does

当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。
SKILL.md
**切换**: 自动降级到备用模型
SKILL.md
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill model-fallback

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs47
repo stars82
Last updatedAugust 2, 2026
Repositoryaaaaqwq/claude-code-skills

What it does

Automatically fail over to a backup model when the primary model errors, times out, or is rate-limited.

Who is it for?

Keeping an AI agent running when a model fails, times out, or is rate-limited

Skip if: Choosing a model by task complexity or cost (that is model routing, not failover)

When should I use this skill?

A model request fails, times out, hits a rate limit, or exhausts quota

What you get

Continuous service through automatic failover to a backup model, with retry and automatic switch-back once the primary recovers.

  • Automatic failover to a backup model
  • Auto-retry of failed requests
  • Automatic switch-back on primary recovery

By the numbers

  • Handles 3 error classes: timeout, quota/rate-limit, error

Files

SKILL.mdMarkdownGitHub ↗

模型自动降级与故障切换

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

当使用此技能

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

工作原理

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

多供应商支持

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

错误类型

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

触发词

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

Related skills

FAQ

When does model-fallback switch models?

On request failure, API timeout, rate-limit hit, or quota exhaustion.

Does it switch back to the primary?

Yes, it automatically switches back once the primary model recovers.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.