返回顶部
w

wcs-helper-server-skill

Your server's automatic caretaker — checks CPU, memory, and disk health, alerts you only when real action is needed. Use when: server feels slow, a cron job failed, disk is running out of space, or you want a daily health report.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
76
下载量
0
收藏
概述
安装方式
版本历史

wcs-helper-server-skill

# WCS Helper: Server Skill > Your server's caretaker — quietly monitors health, tells you only when something needs your attention. --- ## What It Does | Problem | How It Helps | |---------|-------------| | Memory running high | Shows which processes are eating RAM, tells you how to fix | | Disk full | Finds what's taking up space, cleans it up | | Too many background processes | Finds and removes stuck/zombie processes | | Server slow | Diagnoses the root cause | **Default behavior:** no alerts unless something needs action. No noise. --- ## One-Command Health Check ```bash # Full diagnostic report sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/health-check.sh ``` Output looks like: ``` === System Load === Load: 1.2 (4 cores) — OK === Memory === Memory: 67% used — OK Available: 2.1 GB === Disk === Disk: 43% used — OK Largest: /var/log (4.2 GB) ``` **Status colors:** ✅ OK / ⚠️ Warning / 🚨 Alert --- ## Quick Fix Commands Run these when something is wrong: ```bash # Preview what a fix would do (safe — shows what will change) sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --preview all # Actually run memory fix (restart memory-hungry processes) sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --execute memory # Clean disk space sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --execute disk # Remove stuck processes sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --execute zombie ``` **Rule:** Preview mode (no `--execute`) never changes anything. Safe to run. --- ## When to Use | Situation | Command | |-----------|---------| | Server feels slow | `health-check.sh` — see what's wrong | | "Disk full" warning | `auto-fix.sh --preview disk` → `auto-fix.sh --execute disk` | | Too many processes | `auto-fix.sh --preview zombie` → `auto-fix.sh --execute zombie` | | Just checking in | `health-check.sh --summary` — 1-line status | --- ## Alerts (Optional) Enable automatic alerts to Feishu when issues are found: ```bash # Add to crontab — checks every 30 minutes, alerts if needed # Run: crontab -e (then paste these lines) # Every 30 min: health check + Feishu alert if issues found */30 * * * * sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh all 2>&1 | tee -a /var/log/server-alerts.log # Daily at 2am: full preview (safe — no actual changes) 0 2 * * * sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --preview all >> /var/log/server-auto-fix.log 2>&1 ``` Without a cron, the skill runs on demand only. Add it to get automatic alerts. --- ## What Gets Alerted Only these trigger a push: - Memory above 50% with leaky processes - Disk above 90% full - Zombie/stuck processes detected - Cron job failures Everything else is logged only, no push. --- ## Architecture ``` health-check.sh — Read-only diagnosis (always safe) auto-fix.sh — Changes system state (needs --execute to apply) ``` - `health-check.sh`: No changes, just reports. Run anytime. - `auto-fix.sh`: With `--preview` = safe, shows what would happen. With `--execute` = applies changes. --- ## Troubleshooting ### "Permission denied" Use `sudo`: `sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/health-check.sh` ### "Command not found" The skill is installed at `~/.openclaw/skills/wcs-helper-server-skill/`. Use the full path or `cd` there first. ### "Nothing happens when I run --execute" Preview mode (`--preview`) is default. You need `--execute` to apply changes. ### "Alerts not coming through" 1. Check Feishu is connected: `openclaw status` 2. Verify the cron is running: `crontab -l | grep server-skill` 3. Test manually: `CRON_MODE=1 bash auto-fix.sh --execute memory` --- ## Self-Test Verify the skill is working: ```bash # 1. Health check (should always work without sudo on this server) bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/health-check.sh --summary # 2. Preview mode (should show current state) sudo bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --preview all # 3. Notify test (sends a Feishu card) DISABLE_NOTIFY=0 CRON_MODE=1 bash ~/.openclaw/skills/wcs-helper-server-skill/scripts/auto-fix.sh --preview memory ``` Expected: Step 1 shows a status table. Step 2 shows what would be cleaned. Step 3 sends a Feishu card. --- ## Uninstall ```bash # Remove from crontab crontab -e # delete the line with wcs-helper-server-skill # Remove skill files rm -rf ~/.openclaw/skills/wcs-helper-server-skill ``` No system changes remain after uninstall.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wcs-helper-server-skill-1776024242 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wcs-helper-server-skill-1776024242 技能

通过命令行安装

skillhub install wcs-helper-server-skill-1776024242

下载 Zip 包

⬇ 下载 wcs-helper-server-skill v1.0.0

文件大小: 13.17 KB | 发布时间: 2026-4-13 12:32

v1.0.0 最新 2026-4-13 12:32
- Initial release of wcs-helper-server-skill.
- Monitors server CPU, memory, and disk health with actionable alerts.
- Provides easy commands for health checks, quick fixes, and on-demand or automatic (cron-based) operation.
- Only alerts when intervention is needed (e.g., high memory/disk usage, zombie processes, cron job failures).
- Includes preview mode for safe fixes and clear troubleshooting/uninstall instructions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部