ワンクリックで
health-probe
Health probes for both sides of the AGI stack — openclaw + arifOS MCP
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Health probes for both sides of the AGI stack — openclaw + arifOS MCP
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
The mandatory operational guide and metabolic flow for agents interacting with arifOS. Ditempa Bukan Diberi.
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the ariffazil profile repository. Use when the user asks to explain or design AAA, route agentic work, reduce chaos/entropy in an arifOS federation task, create AREP/task declarations, classify risk, plan multi-repo changes, review governance boundaries, or translate human intent into evidence-backed, authority-safe, recursively agentic workflows. Provides deterministic F1-F13 floor checking, bounded abduction, and FederationReceipt composition.
Instrument arifOS constitutional AI kernel with Langfuse LLM tracing. Use when (1) adding Langfuse tracing to arifOS tool calls, (2) wiring arifOS telemetry to Langfuse cloud or self-hosted, (3) querying arifOS trace data from Langfuse, (4) migrating arifOS mind_reason/heart_critique calls to Langfuse spans. DITEMPA BUKAN DIBERI — Forged, Not Given.
GitHub operations — issues, PRs, commits, code search, CI/CD via gh CLI
AGI-level autonomous controller — self-healing, self-optimizing, constitutionally governed by arifOS F1-F13
Invoke arifOS constitutional MCP tools (000-999 pipeline, F1-F13 enforced)
| name | health-probe |
| description | Health probes for both sides of the AGI stack — openclaw + arifOS MCP |
| user-invocable | true |
Triggers: "health", "probe", "is everything ok", "check stack", "gateway health", "arifos health", "container health", "is arifos sick", "system status"
curl -sf http://arifosmcp:8080/health | jq '{status, tools_loaded, version, uptime}'
Expected: status: "healthy", tools_loaded: 13
Alert if: tools_loaded < 13 or status != "healthy"
curl -sf http://localhost:18789/ | head -c 200 2>/dev/null && echo "GATEWAY_UP" || echo "GATEWAY_UNREACHABLE"
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep -v "^NAME"
Flag any container NOT showing healthy or Up:
unhealthy → CRITICALExited / Restarting → CRITICALUp X minutes without healthy → WARNING (check if has healthcheck)df -h / | awk 'NR==2 {
used=$5+0
if (used > 85) print "DISK_CRITICAL: " used "% used"
else if (used > 75) print "DISK_WARNING: " used "% used"
else print "DISK_OK: " used "% used"
}'
free -h | awk '/^Mem:/ {
total=$2; avail=$7
print "RAM: total=" total " available=" avail
}'
docker stats --no-stream --format "{{.Name}}: {{.MemUsage}}" | sort -t'/' -k1 -rh | head -5
docker exec ollama_engine ollama list 2>/dev/null | tail -n +2
echo "{\"ts\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\",\"event\":\"health_probe\",\"agent\":\"arifOS_bot\"}" \
>> ~/.openclaw/workspace/logs/audit.jsonl
| Metric | WARNING | CRITICAL | Action |
|---|---|---|---|
| Disk usage | >75% | >85% | Notify Arif on Telegram |
| RAM available | <3 GiB | <1.5 GiB | Notify + pause heavy tasks |
| tools_loaded | <13 | <10 | Restart arifosmcp |
| Container state | Restarting | Exited/unhealthy | docker compose up -d |
| Model count | 0 | — | docker exec ollama_engine ollama pull qwen2.5:3b |
# Restart unhealthy arifOS
docker compose -f /mnt/arifos/docker-compose.yml restart arifosmcp
# Restart unhealthy openclaw (from host — self-restart)
docker compose -f /mnt/arifos/docker-compose.yml restart openclaw
# Clear disk if >80%
docker builder prune -f
docker image prune -f --filter "dangling=true"
Run this skill on every session start to establish baseline. Alert Arif via Telegram if CRITICAL.
# Send alert to Arif via Telegram bot
send_telegram_alert() {
local MESSAGE="$1"
if [ -n "${TELEGRAM_BOT_TOKEN:-}" ] && [ -n "${TELEGRAM_CHAT_ID:-}" ]; then
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
-d "chat_id=${TELEGRAM_CHAT_ID}" \
-d "text=⚠️ arifOS_bot: ${MESSAGE}" \
-d "parse_mode=Markdown" > /dev/null
fi
}
# Example alerts:
# send_telegram_alert "🔴 arifosmcp UNHEALTHY — tools_loaded=$(curl ...)"
# send_telegram_alert "💿 Disk ${DISK_PCT}% — run: docker builder prune -f"
# send_telegram_alert "🧠 RAM critical — available: ${RAM_AVAIL}MiB"
Note: TELEGRAM_CHAT_ID is the numeric chat ID of Arif's chat with @arifOS_bot.
To get it: message the bot, then check https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/getUpdates