model-fallback

$npx mdskill add aAAaqwq/AGI-Super-Team/model-fallback

Automatically switch models when primary requests fail.

  • Maintains service continuity during timeouts or rate limits.
  • Integrates with multiple model providers and APIs.
  • Evaluates failure types to select optimal backup models.
  • Executes automatic retries and restores primary connections.

SKILL.md

.github/skills/model-fallbackView on GitHub ↗
---
name: model-fallback
description: 模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。
license: MIT
metadata:
  version: 1.0.0
  domains:
  - reliability
  - model-management
  - fault-tolerance
  type: system
author: Daniel Li
---

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

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

## 当使用此技能

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

## 工作原理

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

## 多供应商支持

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

## 错误类型

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

## 触发词

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

More from aAAaqwq/AGI-Super-Team

SkillDescription
a-fund-monitor监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。
add-leadAdd company/person/relationship to CRM
ads-agentAI-агент для управления Facebook рекламой. Вызывай для анализа, оптимизации, создания кампаний и отчётов.
afrexai-compliance-auditRun internal compliance audits against major governance and security
afrexai-personal-financeComplete personal finance system — budgeting, debt payoff, investing, tax optimization, net worth tracking, and financial independence planning. Use when managing money, building wealth, paying off debt, planning retirement, or optimizing taxes. Zero dependencies.
after-salesUse when managing post-purchase experience, building customer loyalty, or increasing repeat purchases
agent-contactsAI agent contacts — add, list, remove MCP contacts. Use when someone gives an agent URL, or when you need to view/remove contacts.
agent-model-switcher批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
agent-patternsFormat SPAWN REQUEST messages to launch parallel agents, generate structured agent status reports, and define communication protocols within the sprint system. Use when the user needs to coordinate multiple agents, format spawn requests, produce agent reports, or establish inter-agent communication patterns.
agent-task-confirmUse when confirming whether a dispatched agent task was actually received, activated, and progressing after sessions_send or other task handoff actions.