{
  "schemaVersion": "1.0",
  "item": {
    "slug": "self-monitor",
    "name": "Self Monitor",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/suryast/self-monitor",
    "canonicalUrl": "https://clawhub.ai/suryast/self-monitor",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/self-monitor",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=self-monitor",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/self-monitor"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/self-monitor",
    "agentPageUrl": "https://openagent3.xyz/skills/self-monitor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/self-monitor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/self-monitor/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Self Monitor",
        "body": "Proactive self-monitoring: infrastructure, services, and health."
      },
      {
        "title": "Usage",
        "body": "Run during heartbeats or scheduled checks."
      },
      {
        "title": "1. Infrastructure Health",
        "body": "# Disk usage\ndf -h / | awk 'NR==2 {print $5}' | tr -d '%'\n\n# Memory usage  \nfree -m | awk 'NR==2 {printf \"%.0f\", $3/$2*100}'\n\n# Load average\nuptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}'\n\n# Top processes by memory\nps aux --sort=-%mem | head -10\n\n# Top processes by CPU\nps aux --sort=-%cpu | head -10\n\nThresholds:\n\nMetricWarningCriticalDisk> 80%> 90%Memory> 85%> 95%Load> 2.0> 4.0"
      },
      {
        "title": "2. Service Health",
        "body": "# Check if a process is running\npgrep -f \"your_process_name\" >/dev/null && echo \"OK\" || echo \"FAIL\"\n\n# Check HTTP endpoint\ncurl -s -o /dev/null -w \"%{http_code}\" http://localhost:8080/health\n\n# Check systemd service\nsystemctl is-active --quiet nginx && echo \"OK\" || echo \"FAIL\"\n\n# Check Docker container\ndocker ps --filter \"name=mycontainer\" --filter \"status=running\" -q | grep -q . && echo \"OK\" || echo \"FAIL\"\n\n# Tailscale (if using)\ntailscale status --json 2>/dev/null | jq -r '.Self.Online' || echo \"FAIL\""
      },
      {
        "title": "3. Cron Job Health",
        "body": "# Check recent cron executions\ngrep CRON /var/log/syslog | tail -20\n\n# Count failures in last 24h\ngrep -c \"CRON.*error\\|CRON.*fail\" /var/log/syslog\n\n# List scheduled jobs\ncrontab -l"
      },
      {
        "title": "4. Recent Errors",
        "body": "# Check system logs for errors\njournalctl -p err --since \"1 hour ago\" 2>/dev/null | tail -20\n\n# Check application logs\ntail -50 ~/workspace/projects/*/logs/*.log 2>/dev/null | grep -i \"error\"\n\n# Check dmesg for hardware/kernel issues\ndmesg | tail -20 | grep -i \"error\\|fail\\|warn\""
      },
      {
        "title": "Quick Health Check (for heartbeat)",
        "body": "#!/bin/bash\n# Quick health snapshot\n\nDISK=$(df -h / | awk 'NR==2 {print $5}' | tr -d '%')\nMEM=$(free -m | awk 'NR==2 {printf \"%.0f\", $3/$2*100}')\nLOAD=$(uptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}' | xargs)\n\necho \"Disk: ${DISK}% | Mem: ${MEM}% | Load: ${LOAD}\"\n\n# Alert if thresholds exceeded\n[ \"$DISK\" -gt 90 ] && echo \"⚠️ Disk critical!\"\n[ \"$MEM\" -gt 95 ] && echo \"⚠️ Memory critical!\""
      },
      {
        "title": "Proactive Actions",
        "body": "When issues detected:\n\nIssueAuto-ActionAlert?Disk > 90%Clean temp files, old logsYesKey process downAttempt restartYesCron 3+ failuresGenerate reportYesMemory > 95%List top processesYes\n\nAuto-fixable (safe):\n\n# Clean old logs (> 7 days)\nfind /var/log -name \"*.log\" -mtime +7 -delete 2>/dev/null\nfind ~/.cache -type f -mtime +7 -delete 2>/dev/null\n\n# Clean temp files\nrm -f /tmp/agent-temp-* 2>/dev/null\nrm -rf ~/.cache/pip 2>/dev/null"
      },
      {
        "title": "Report Format",
        "body": "## 🔍 Self-Monitor Report - [TIME]\n\n### Health Summary\n| Metric | Value | Status |\n|--------|-------|--------|\n| Disk | XX% | ✅/⚠️/🔴 |\n| Memory | XX% | ✅/⚠️/🔴 |\n| Load | X.X | ✅/⚠️/🔴 |\n| Services | X/Y up | ✅/⚠️ |\n\n### Issues Found\n- [Issue 1]: [Action taken or recommended]\n\n### Top Resource Consumers\n| Process | CPU% | MEM% |\n|---------|------|------|\n| ... | ... | ... |"
      },
      {
        "title": "Integration with Scheduled Tasks",
        "body": "Add to your crontab or task scheduler:\n\n# Run health check every 30 minutes\n*/30 * * * * /path/to/health-check.sh >> /var/log/health-check.log 2>&1\n\nOr run manually as part of your workflow:\n\n./health-check.sh"
      }
    ],
    "body": "Compatible with Claude Code, Codex CLI, Cursor, Windsurf, and any SKILL.md-compatible agent.\n\nSelf Monitor\n\nProactive self-monitoring: infrastructure, services, and health.\n\nUsage\n\nRun during heartbeats or scheduled checks.\n\n1. Infrastructure Health\n# Disk usage\ndf -h / | awk 'NR==2 {print $5}' | tr -d '%'\n\n# Memory usage  \nfree -m | awk 'NR==2 {printf \"%.0f\", $3/$2*100}'\n\n# Load average\nuptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}'\n\n# Top processes by memory\nps aux --sort=-%mem | head -10\n\n# Top processes by CPU\nps aux --sort=-%cpu | head -10\n\n\nThresholds:\n\nMetric\tWarning\tCritical\nDisk\t> 80%\t> 90%\nMemory\t> 85%\t> 95%\nLoad\t> 2.0\t> 4.0\n2. Service Health\n# Check if a process is running\npgrep -f \"your_process_name\" >/dev/null && echo \"OK\" || echo \"FAIL\"\n\n# Check HTTP endpoint\ncurl -s -o /dev/null -w \"%{http_code}\" http://localhost:8080/health\n\n# Check systemd service\nsystemctl is-active --quiet nginx && echo \"OK\" || echo \"FAIL\"\n\n# Check Docker container\ndocker ps --filter \"name=mycontainer\" --filter \"status=running\" -q | grep -q . && echo \"OK\" || echo \"FAIL\"\n\n# Tailscale (if using)\ntailscale status --json 2>/dev/null | jq -r '.Self.Online' || echo \"FAIL\"\n\n3. Cron Job Health\n# Check recent cron executions\ngrep CRON /var/log/syslog | tail -20\n\n# Count failures in last 24h\ngrep -c \"CRON.*error\\|CRON.*fail\" /var/log/syslog\n\n# List scheduled jobs\ncrontab -l\n\n4. Recent Errors\n# Check system logs for errors\njournalctl -p err --since \"1 hour ago\" 2>/dev/null | tail -20\n\n# Check application logs\ntail -50 ~/workspace/projects/*/logs/*.log 2>/dev/null | grep -i \"error\"\n\n# Check dmesg for hardware/kernel issues\ndmesg | tail -20 | grep -i \"error\\|fail\\|warn\"\n\nQuick Health Check (for heartbeat)\n#!/bin/bash\n# Quick health snapshot\n\nDISK=$(df -h / | awk 'NR==2 {print $5}' | tr -d '%')\nMEM=$(free -m | awk 'NR==2 {printf \"%.0f\", $3/$2*100}')\nLOAD=$(uptime | awk -F'load average:' '{print $2}' | awk -F',' '{print $1}' | xargs)\n\necho \"Disk: ${DISK}% | Mem: ${MEM}% | Load: ${LOAD}\"\n\n# Alert if thresholds exceeded\n[ \"$DISK\" -gt 90 ] && echo \"⚠️ Disk critical!\"\n[ \"$MEM\" -gt 95 ] && echo \"⚠️ Memory critical!\"\n\nProactive Actions\n\nWhen issues detected:\n\nIssue\tAuto-Action\tAlert?\nDisk > 90%\tClean temp files, old logs\tYes\nKey process down\tAttempt restart\tYes\nCron 3+ failures\tGenerate report\tYes\nMemory > 95%\tList top processes\tYes\n\nAuto-fixable (safe):\n\n# Clean old logs (> 7 days)\nfind /var/log -name \"*.log\" -mtime +7 -delete 2>/dev/null\nfind ~/.cache -type f -mtime +7 -delete 2>/dev/null\n\n# Clean temp files\nrm -f /tmp/agent-temp-* 2>/dev/null\nrm -rf ~/.cache/pip 2>/dev/null\n\nReport Format\n## 🔍 Self-Monitor Report - [TIME]\n\n### Health Summary\n| Metric | Value | Status |\n|--------|-------|--------|\n| Disk | XX% | ✅/⚠️/🔴 |\n| Memory | XX% | ✅/⚠️/🔴 |\n| Load | X.X | ✅/⚠️/🔴 |\n| Services | X/Y up | ✅/⚠️ |\n\n### Issues Found\n- [Issue 1]: [Action taken or recommended]\n\n### Top Resource Consumers\n| Process | CPU% | MEM% |\n|---------|------|------|\n| ... | ... | ... |\n\nIntegration with Scheduled Tasks\n\nAdd to your crontab or task scheduler:\n\n# Run health check every 30 minutes\n*/30 * * * * /path/to/health-check.sh >> /var/log/health-check.log 2>&1\n\n\nOr run manually as part of your workflow:\n\n./health-check.sh"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/suryast/self-monitor",
    "publisherUrl": "https://clawhub.ai/suryast/self-monitor",
    "owner": "suryast",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/self-monitor",
    "downloadUrl": "https://openagent3.xyz/downloads/self-monitor",
    "agentUrl": "https://openagent3.xyz/skills/self-monitor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/self-monitor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/self-monitor/agent.md"
  }
}