skills/ai-ml/model-failover/SKILL.md
# model-failover 自动检测模型失败并切换到备用模型 ## 描述 监控 OpenClaw 模型健康状态,当检测到模型失败时自动切换到 fallback 列表中的下一个模型,无需重启整个 Gateway ## 核心功能 - 检测模型失败(timeout/ratelimit/api error) - 自动切换 fallback 模型 - 平滑重载配置(不重启 Gateway) - 记录切换日志 ## 使用方法 ```bash # 手动执行 ~/.openclaw/workspace/skills/model-failover/scripts/check-model-health.sh # 如果检测失败,自动执行 ~/.openclaw/workspace/skills/model-failover/scripts/switch-model.sh ``` ## 工作原理 1. 调用 `openclaw doctor` 检查模型健康 2. 如果检测到失败,读取 openclaw.json 的 fallbacks 列表 3. 当前模型 + 失败原因 记录到 lo
npx skillsauth add hongmaple0820/agent-academy skills/ai-ml/model-failoverInstall 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.
自动检测模型失败并切换到备用模型
监控 OpenClaw 模型健康状态,当检测到模型失败时自动切换到 fallback 列表中的下一个模型,无需重启整个 Gateway
# 手动执行
~/.openclaw/workspace/skills/model-failover/scripts/check-model-health.sh
# 如果检测失败,自动执行
~/.openclaw/workspace/skills/model-failover/scripts/switch-model.sh
openclaw doctor 检查模型健康openclaw config set 更新配置openclaw gateway reload 平滑重载无需额外配置
小琳
1.0.0
development
Builds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.
development
Guided statistical analysis with test selection and reporting. Use when you need help choosing appropriate tests for your data, assumption checking, power analysis, and APA-formatted results. Best for academic research reporting, test selection guidance. For implementing specific models programmatically use statsmodels.
testing
Execute read-only SQL queries against multiple PostgreSQL databases. Use when: (1) querying PostgreSQL databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.
development
Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for interactive plots use plotly; for publication-ready multi-panel figures with journal styling, use scientific-visualization.