Skip to content
Agent Memory
Skill

/health-check

System health check dispatched by the activity monitor via Control queue. Checks PM2 services, disk space, and memory usage. Use when receiving a control message containing "health-check".

From plugin
zylos-core
1.2k14 skills

Claude Code

$ npx -y skills add zylos-ai/zylos-core --skill health-check --agent claude-code

SKILL.md

health-check.SKILL.md
name: health-check
description: |
  System health check dispatched by the activity monitor via Control queue.
  Checks PM2 services, disk space, and memory usage.
  Use when receiving a control message containing "health-check".
user-invocable: false
allowed-tools: Bash, Read, Grep

System Health Check

Periodic system health check delivered via the C4 Control queue.

When to Use

  • Receiving a control message with "health-check" in the content
  • The activity monitor enqueues this automatically at regular intervals

Steps

1. Check PM2 Services

node ~/zylos/.claude/skills/health-check/scripts/pm2-snapshot.js

The helper parses `pm2 jlist` internally and prints only the allowlisted health fields (`name`, `status`, `pid`, and `restart_time`). Never run or print raw `pm2 jlist` output because it contains each process's inherited environment. Every service should have `status: "online"`. Record which services are stopped or errored.

2. Check Disk Space

df -h / /home 2>/dev/null || df -h /

Thresholds:

  • OK: < 80% used
  • Warning: 80-90% used
  • Critical: > 90% used

3. Check Memory

free -m

Thresholds:

  • OK: < 80% used
  • Warning: 80-90% used
  • Critical: > 90% used (or swap > 50% used)

4. Report Results

If all checks pass, log to `~/zylos/logs/health.log`:

[YYYY-MM-DD HH:MM:SS] Health Check: PM2 X/X online, Disk XX%, Memory XX% - ALL OK

If any issues found, notify whoever is most likely to help: 1. Check your memory files for a designated owner or ops person 2. If none designated, notify the person you normally work with most 3. Use `c4-send.js` with the appropriate channel and endpoint to send the alert

Issue Resolution

| Issue | Action | |-------|--------| | PM2 service stopped | `pm2 restart <service>` and report | | High disk usage | Check logs directories, report findings | | High memory / swap | Report findings, check for runaway processes |

Read more
@zylos-ai
Ships withzylos-core

Zylos (/ˈzaɪ.lɒs/ 赛洛丝) — Give your AI a life

Stars on GitHub

Momentum

stars in total
1.2k
Star history of zylos-ai/zylos-core on GitHub, a chart by star-history.com

Other skills on zylos-core.

activity-monitor

activity-monitor

Guardian service that monitors the active runtime agent's state and automatically restarts it if stopped. Use when checking agent…

@zylos-ai@zylos-aiInstall Skill
check-context

check-context

Accurately check current context window and token usage. Use when the user asks about context usage, token consumption, or when…

@zylos-ai@zylos-aiInstall Skill
comm-bridge

comm-bridge

C4 communication bridge — central gateway for ALL external communication (Telegram, Lark, etc.). Use when replying to users via…

@zylos-ai@zylos-aiInstall Skill
component-management

component-management

Guidelines for managing zylos components via CLI and C4 channels. Use when installing, upgrading, or uninstalling components, or…

@zylos-ai@zylos-aiInstall Skill
create-skill

create-skill

Guide for creating effective skills. Use when asked to create a new skill (or update an existing skill) that extends Claude's…

@zylos-ai@zylos-aiInstall Skill
http

http

Caddy-based web server providing web console hosting, file sharing, and health check endpoints. Use when configuring HTTP access,…

@zylos-ai@zylos-aiInstall Skill

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem13d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

hindsight13d60k
@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about health-check.

Which coding agents can use health-check?
health-check installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.