← 返回 Skills 市场
70
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install api-health-monitor
功能描述
Parses recent OpenClaw session logs for LLM API errors and returns a structured health report.
使用说明 (SKILL.md)
api-health-monitor
Scans ~/.openclaw/agents/main/sessions/ for recent LLM API error patterns (500 errors, token failures, cooldowns, service_busy) and produces a JSON health report.
Usage
const { checkApiHealth } = require('./skills/api-health-monitor');
const report = await checkApiHealth();
// { healthy: bool, errors: [...], recommendation: string }
Report Shape
| Field | Type | Description |
|---|---|---|
healthy |
boolean | true if no errors found |
errors |
array | [{ type, message, count, lastSeen }] |
recommendation |
string | Suggested action based on findings |
安全使用建议
This skill appears to do exactly what it says: read recent files in ~/.openclaw/agents/main/sessions/ and report LLM API error patterns. Before installing or enabling it broadly: (1) Inspect a few session files manually to see if they contain sensitive data (API keys, tokens, private user content). (2) Run the skill in a sandbox or on a copy of logs first so you can confirm its output does not leak secrets. (3) If you allow autonomous invocation, be aware the skill can be run by agents and may surface sensitive log contents — consider restricting when/which agents can invoke it. (4) If you need safer behavior, request or modify the code to redact known secrets or limit returned message length/content.
功能分析
Type: OpenClaw Skill
Name: api-health-monitor
Version: 1.0.1
The skill is a utility for monitoring LLM API health by parsing local session logs within the application's own data directory (~/.openclaw). The logic in index.js is limited to reading log files, matching regex patterns for common API errors (e.g., 429 rate limits, 500 server errors), and returning a structured report; it contains no network activity, external dependencies, or suspicious execution patterns.
能力评估
Purpose & Capability
Name/description, SKILL.md, and index.js all target ~/.openclaw/agents/main/sessions/ and search for LLM API error patterns. The declared requirements (none) are consistent with the simple local-log-parsing task. Minor metadata inconsistencies: package.json version (1.0.0) differs from registry metadata (1.0.1) and the SKILL.md example path is a generic require path, but these are bookkeeping issues not functional mismatches.
Instruction Scope
Instructions and runtime code exclusively read files under the session directory and produce a JSON report; they do not call external endpoints or access unrelated system paths. Note: reading session logs can surface sensitive data (user content, API keys, tokens) because the code returns message snippets and file basenames without redaction; SKILL.md does not warn about this privacy sensitivity.
Install Mechanism
No install spec or remote downloads; the skill is instruction-only but includes a local index.js and package.json (no external dependencies). Nothing in the manifest installs third-party code from remote URLs or writes unexpected binaries.
Credentials
No environment variables or credentials are required. The code uses HOME/USERPROFILE only to locate the expected sessions directory, which is proportional to the stated purpose.
Persistence & Privilege
always is false and the skill does not request persistent system-wide configuration or modify other skills. Autonomous invocation is allowed (platform default); combined with the skill's access to session logs, this is a privacy consideration but not a coherence/security mismatch on its own.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install api-health-monitor - 安装完成后,直接呼叫该 Skill 的名称或使用
/api-health-monitor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: Resolve version conflict, initial publish retry
v1.0.0
Initial release
元数据
常见问题
API Health Monitor 是什么?
Parses recent OpenClaw session logs for LLM API errors and returns a structured health report. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。
如何安装 API Health Monitor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install api-health-monitor」即可一键安装,无需额外配置。
API Health Monitor 是免费的吗?
是的,API Health Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
API Health Monitor 支持哪些平台?
API Health Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 API Health Monitor?
由 toller892(@toller892)开发并维护,当前版本 v1.0.1。
推荐 Skills