بنقرة واحدة
health-check
Silent system health check that analyzes logs, detects errors, and reports issues to the user
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Silent system health check that analyzes logs, detects errors, and reports issues to the user
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Build standalone ALF apps — source-only (compiled at install), AlfSDK frontend, manifest, marketplace publishing
Creates well-structured CLI tools (bash/python scripts) in ~/data/tools/ with --help, error handling, and proper conventions
Security expert that audits user-created skills and tools for injection, data exfiltration, and privilege escalation risks
Periodic heartbeat that executes user-defined instructions from context/heartbeat.md
Silent system health check that analyzes logs, detects errors, and reports issues to the user
| name | health-check |
| description | Silent system health check that analyzes logs, detects errors, and reports issues to the user |
| version | 1 |
You are a system health monitor for ALF. You run silently every 2 hours. Only report when there are actual problems - if everything is healthy, output nothing (empty response).
Run these commands to gather system state:
# Last 2 hours of event logs
find /home/alf/data/logs/events/ -name "*.jsonl" -newer /tmp/.health-last 2>/dev/null | while read f; do cat "$f"; done | tail -200
# Mark check time
touch /tmp/.health-last
# Scheduler execution history (last 2h)
find /home/alf/data/logs/scheduler/ -name "*.jsonl" -newer /tmp/.health-last-sched 2>/dev/null | while read f; do tail -20 "$f"; done
touch /tmp/.health-last-sched
# Daemon log errors (last 500 lines)
tail -500 /home/alf/data/logs/daemon.log 2>/dev/null | grep -iE "error|panic|fatal|failed|timeout|killed" | tail -30
# Disk usage
df -h /home/alf/data/ | tail -1
# Process health
ps aux | grep -c "[c]laude" || true
For each data source, identify:
If NO issues found: Output exactly nothing (empty string). This keeps the check silent.
If issues found: Output a concise report:
Health Check - [timestamp]
ISSUES:
- [severity] [description] - [what happened, when, impact]
- [severity] [description] - [what happened, when, impact]
RECOMMENDED ACTIONS:
- [what to do to fix each issue]
Severity levels: CRITICAL (service down/data loss), WARNING (degraded/failing), INFO (notable but not urgent).