openclaw/workspace/skills/provider-check/SKILL.md
测试 OpenClaw 配置中 LLM provider 的可用性。触发方式:/provider_check 或用户问"测试 provider 可用性"、"检查 provider 状态"、"provider 健康检查"。
npx skillsauth add dragonkid/dotfiles provider-checkInstall 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 配置中所有 LLM provider 的连通性和 API 可用性。
node -e "
const cfg = require(process.env.HOME + '/.openclaw/openclaw.json');
for (const [name, p] of Object.entries(cfg.models.providers)) {
console.log([name, p.baseUrl, p.apiKey, p.api || 'openai-completions', p.models[0].id].join('|'));
}
"
输出格式:name|baseUrl|apiKey|api|modelId
根据 api 字段选择请求格式:
openai-completions:
curl -s --connect-timeout 10 -X POST "<baseUrl>/chat/completions" \
-H "Authorization: Bearer <apiKey>" \
-H "Content-Type: application/json" \
-d '{"model":"<modelId>","messages":[{"role":"user","content":"hi"}],"max_tokens":5}'
anthropic-messages:
curl -s --connect-timeout 10 -X POST "<baseUrl>/v1/messages" \
-H "x-api-key: <apiKey>" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"<modelId>","max_tokens":5,"messages":[{"role":"user","content":"hi"}]}'
响应中有 choices 或 content 字段即为成功;否则提取 error.message 作为错误详情。
| Provider | 状态 | 详情 |
|----------|---------|------------------|
| bailian | ✅ 正常 | glm-5 响应正常 |
| skyapi | ❌ 异常 | HTTP 500 内部错误 |
异常时展示具体错误信息。连接超时(curl 返回空或 000)标记为"连接失败"。
tools
Use when user wants to manage TODO items - adding tasks, listing pending items, marking done, removing, or searching. Triggers on /todo command or TODO-related requests.
tools
Use when creating a new skill, updating an existing skill, or troubleshooting skill frontmatter, gating, or slash command registration issues in OpenClaw.
tools
手动触发自我改进与记忆维护。分析近期 memory 文件,维护工作区文件,提出改进提案。触发方式:/self_improve 或用户说"自我改进"、"self improve"。
tools
Summarize documents (URLs, text, or existing Clippings) and save to Obsidian vault. Triggers on /summary command, document summary requests, URL processing for knowledge base, or when user shares an article/link to process into notes.