← 返回 Skills 市场
model-troubleshooter
作者
Viratkumar123
· GitHub ↗
· v1.0.0
· MIT-0
46
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install model-troubleshooter
功能描述
Automatically diagnose and fix model-related errors in OpenClaw/AutoClaw including API issues, timeouts, config errors, and gateway problems.
使用说明 (SKILL.md)
Model Troubleshooter Skill
PURPOSE
OpenClaw/AutoClaw mein model-related issues ko automatically identify aur permanently resolve karega.
TRIGGERS
Use when user mentions:
- "model error", "JSON parsing error", "API error"
- "model not working", "model timeout", "connection failed"
- "Unexpected end of JSON", "model switched", "bad model response"
- Model configuration issues
- API authentication failures
DIAGNOSIS FLOW
Step 1: Collect Context
# Check current model
/whoami
# Check gateway logs
Get-Content "C:\Users\IDL\.openclaw-autoclaw\logs\gateway.log" -Tail 50
# Check config
openclaw config.get models
Step 2: Identify Issue Type
| Error Pattern | Likely Cause | Fix |
|---|---|---|
| "Unexpected end of JSON" | Incomplete streaming chunks | Restart gateway + enable chunk validation |
| "401 Unauthorized" | API key expired/wrong | Update openclaw.json with fresh key |
| "429 Too Many Requests" | Rate limit hit | Switch model or implement retry logic |
| "timeout" | Model too slow | Switch to faster model (GLM-5-Turbo) |
| "connection refused" | Network/endpoint down | Check provider status + failover model |
| "model not found" | Invalid model ID | Validate model exists in config |
Step 3: Apply Fixes
Fix A: Gateway Restart (Quick Fix)
# Trigger graceful restart
openclaw gateway restart
Fix B: Model Switch (Permanent Fix)
If current model consistently fails:
- Check available models:
openclaw config.get models.providers - Switch to reliable fallback:
{ "agents": { "defaults": { "model": { "primary": "zai/zai_glm-5-turbo" } } } } - Apply config:
openclaw config.patch
Fix C: API Key Refresh
- Get fresh API key from provider
- Update in openclaw.json:
{ "models": { "providers": { "custom_xxx": { "apiKey": "NEW_KEY_HERE" } } } }
Fix D: Streaming Chunk Validation
Add retry logic to handle incomplete chunks:
- Enable
agents.defaults.compaction.reserveTokensFloor: 40000 - Set timeout:
agents.defaults.timeoutSeconds: 1800
Step 4: Verify Fix
# Test model response
openclaw sessions.list --limit 1
# Confirm no errors in next 5 minutes
Get-Content "C:\Users\IDL\.openclaw-autoclaw\logs\gateway.log" -Tail 100 | Select-String -Pattern "error" -CaseSensitive:$false
AVAILABLE MODELS (Ranked by Reliability)
Tier 1: Most Reliable
- zai/zai_glm-5-turbo - Fast, stable
- zai/zai_glm-5.1 - Balanced performance
- minimaxai/minimax-m2.7 - Good for complex tasks
Tier 2: Medium Reliability
- qwen/qwen3.5-122b-a10b - Powerful but occasional timeouts
- deepseek-ai/deepseek-v4-pro - Good reasoning, rate limits
Tier 3: Less Reliable
- poolside/laguna-m.1:free - Free but unstable
- openrouter/owl-alpha - Variable performance
COMMON FIXES IN ORDER
- Gateway Restart -> Fixes 60% of transient errors
- Model Switch -> Fixes provider-specific issues
- API Key Refresh -> Fixes auth errors
- Timeout Increase -> Fixes slow response errors
- Compaction Adjustments -> Fixes context overflow
RESPONSE TEMPLATE
When model issue detected:
[MODEL ISSUE DETECTED]
Error: [specific error message]
Model: [current model]
Root Cause: [diagnosis]
Fix Applied:
- [action taken]
- Status: [success/fail]
Recommendation: [future prevention tip]
Want me to switch to a more reliable model?
- GLM-5-Turbo (fast/stable)
- GLM-5.1 (balanced)
- MINIMAX M2.7 (complex tasks)
RED LINES
- Never expose API keys in logs/messages
- Always confirm before switching providers
- Don't disable safety checks during troubleshooting
- Preserve user's preferred model if possible
RELATED SKILLS
- gateway config management
- sessions_spawn for isolated testing
- exec for CLI operations
安全使用建议
Before installing, understand that the skill may guide your agent to inspect OpenClaw logs, restart the gateway, change model settings, and update API-key configuration. Confirm those changes before applying them, adapt the hard-coded Windows log path if needed, and never paste real API keys into chat or logs.
能力标签
能力评估
Purpose & Capability
The skill's instructions match its stated purpose: diagnose model/API/timeouts/authentication failures and guide fixes such as gateway restart, model switch, timeout changes, and API key refresh.
Instruction Scope
It asks the agent to read local OpenClaw logs and apply configuration changes, including API-key-related configuration, but these actions are disclosed and paired with user-safety constraints such as not exposing keys and confirming provider switches.
Install Mechanism
The artifact contains only one non-executable markdown file and declares no dependencies, scripts, package installs, or automatic setup behavior.
Credentials
The Windows-specific log path and OpenClaw CLI commands are proportionate for troubleshooting, though users may need to adapt the path and confirm commands before use.
Persistence & Privilege
No background workers, startup persistence, privilege escalation, or hidden credential/session access were found; persistent impact is limited to user-directed OpenClaw configuration changes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install model-troubleshooter - 安装完成后,直接呼叫该 Skill 的名称或使用
/model-troubleshooter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release—automatically diagnose and resolve model-related issues in OpenClaw/AutoClaw:
- Detects common errors such as model errors, JSON/API errors, timeouts, and authentication failures.
- Guides through context collection, error diagnosis, and step-by-step permanent fixes (gateway restart, model switch, API key update, timeout/config tweaks).
- Ranks available models by reliability and offers recommendations to minimize recurring issues.
- Includes a response template to communicate issues, actions taken, and prevention tips.
- Emphasizes user safety: no API key leakage, provider confirmation, and preservation of model preferences.
元数据
常见问题
model-troubleshooter 是什么?
Automatically diagnose and fix model-related errors in OpenClaw/AutoClaw including API issues, timeouts, config errors, and gateway problems. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 46 次。
如何安装 model-troubleshooter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-troubleshooter」即可一键安装,无需额外配置。
model-troubleshooter 是免费的吗?
是的,model-troubleshooter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
model-troubleshooter 支持哪些平台?
model-troubleshooter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 model-troubleshooter?
由 Viratkumar123(@viratkumar123)开发并维护,当前版本 v1.0.0。
推荐 Skills