← Back to Skills Marketplace
jpengcheng523-netizen

Agent Health Monitor

by jpengcheng523-netizen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
164
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install agent-health-monitor
Description
Monitors agent health status and detects failures for fault-tolerant agent systems. **Trigger scenarios:** - User asks about agent health or status - User me...
README (SKILL.md)

Agent Health Monitor

Monitors agent and session health to detect failures and ensure system reliability.

Usage

const monitor = require('./skills/agent-health-monitor');

// Check all agents health
const health = await monitor.checkHealth();

// Get failed agents
const failed = await monitor.getFailedAgents();

// Monitor continuously
monitor.startMonitoring(30000); // Check every 30s

Features

  • Session Status Check: Verifies active sessions
  • Agent Liveness Detection: Detects unresponsive agents
  • Resource Monitoring: Tracks CPU/memory usage
  • Failure Alerts: Notifies on detected failures

Output

Returns a health report with:

  • Total agents/sessions count
  • Healthy vs unhealthy count
  • Failed agents list
  • Resource usage summary
Usage Guidance
This skill largely does what it claims, but it runs shell commands and reads files under your home directory: it calls the openclaw CLI, reads /proc and /proc/meminfo (Linux-specific), and checks ~/.openclaw and a hard-coded workspace path (feishu-evolver-wrapper) by running node lifecycle.js there. Before installing: (1) review the index.js source to confirm the wrapper path and commands are acceptable in your environment; (2) ensure any lifecycle.js or wrapper code in ~/.openclaw/workspace/skills is trusted (the monitor will invoke it); (3) be aware this runs local commands and inspects files but does not contact external endpoints or request credentials; (4) consider running it in a restricted/sandboxed environment first. If you need tighter assurance, ask the author to document all filesystem paths and shell commands used, or modify the code to make paths configurable rather than hard-coded.
Capability Analysis
Type: OpenClaw Skill Name: agent-health-monitor Version: 1.0.0 The skill monitors system and agent health using high-risk capabilities, including shell command execution via `execSync` and direct filesystem access via `fs` in `index.js`. It performs broad checks on system resources (`/proc/meminfo`, `/proc/loadavg`) and specifically attempts to execute a lifecycle script from another skill's directory (`feishu-evolver-wrapper`), which is an unusual cross-skill interaction. While these actions are plausibly needed for the stated purpose, the use of powerful system APIs and the execution of external scripts from the workspace meet the threshold for a suspicious classification.
Capability Assessment
Purpose & Capability
The code implements session listing, liveness checks, resource monitoring, and wrapper status checks which align with an agent health monitor. One unexpected hard-coded target is the '.openclaw/workspace/skills/feishu-evolver-wrapper' wrapper path — this ties the monitor to a specific wrapper component not mentioned in the README.
Instruction Scope
SKILL.md describes the monitoring API but does not enumerate the runtime actions the code performs: it executes local shell commands (openclaw CLI, cat /proc files, node lifecycle.js), reads files under ~/.openclaw, and inspects skill workspace contents. Those file and command accesses are broader than the metadata (which declared no config paths) and should be documented.
Install Mechanism
No install spec or external downloads — the skill is a local Node module. No package installation from remote URLs occurs.
Credentials
The package declares no required environment variables or credentials, but the code reads process.env.HOME and accesses files under the user's home directory (~/.openclaw). While HOME is standard, the un-declared config path access (workspace skills directory) is a modest mismatch with metadata and should be documented.
Persistence & Privilege
The skill does not request 'always: true' or modify other skills' configs. It runs on demand or via startMonitoring; autonomous invocation is allowed by default but not a special privilege here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-health-monitor
  3. After installation, invoke the skill by name or use /agent-health-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of agent-health-monitor. - Monitors agent and session health to detect failures and maintain reliability. - Detects unresponsive agents and checks active sessions. - Tracks CPU and memory usage for resource monitoring. - Provides failure alerts and detailed health reports, including status counts and usage summaries.
Metadata
Slug agent-health-monitor
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Agent Health Monitor?

Monitors agent health status and detects failures for fault-tolerant agent systems. **Trigger scenarios:** - User asks about agent health or status - User me... It is an AI Agent Skill for Claude Code / OpenClaw, with 164 downloads so far.

How do I install Agent Health Monitor?

Run "/install agent-health-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent Health Monitor free?

Yes, Agent Health Monitor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent Health Monitor support?

Agent Health Monitor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent Health Monitor?

It is built and maintained by jpengcheng523-netizen (@jpengcheng523-netizen); the current version is v1.0.0.

💬 Comments