registries/antigravity/skills/vps-health-ops/SKILL.md
VPS health and diagnostics runbook. Load when checking system resources, Docker state, disk pressure, service ports, logs, SSL/Caddy, databases, or memory pressure on af-forge.
npx skillsauth add ariffazil/openclaw-workspace vps-health-opsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# System resources
echo "=== DISK ===" && df -h | grep -E "Filesystem|/$"
echo "=== MEMORY ===" && free -h | grep -E "total|Mem:"
echo "=== CPU ===" && uptime
echo "=== SWAP ===" && free -h | grep Swap
# All container status
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
# Only unhealthy or dead
docker ps -a --filter "status=exited" --filter "status=restarting"
# Resource hogs
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}" | sort -k2 -r
# Find what's eating space
du -sh /var/lib/docker/* 2>/dev/null | sort -rh | head -10
du -sh /root/*/ 2>/dev/null | sort -rh | head -10
# Docker cleanup (safe)
docker builder prune -f
docker image prune -f
# Docker cleanup (need ARIF: docker system prune -af --volumes)
# Check all federation ports respond
for port in 8080 8081 8082 8083 3001 3002 7071 8100 5001; do
status=$(curl -sf -o /dev/null -w "%{http_code}" http://localhost:$port/health 2>/dev/null || echo "DOWN")
echo "Port $port: $status"
done
# Last 100 lines of service logs
docker compose -f /root/compose/docker-compose.yml logs --tail=100 <service>
# Search logs for errors
docker compose -f /root/compose/docker-compose.yml logs <service> 2>&1 | grep -i error | tail -20
# System logs
journalctl -u docker --since "1 hour ago" --no-pager
caddy validate --config /etc/caddy/Caddyfile
docker compose -f /root/compose/docker-compose.yml logs caddy --tail 30
# PostgreSQL
docker exec postgres psql -U arifos_admin -d vault999 -c "SELECT count(*) FROM vault_seals;"
# Redis
docker exec redis redis-cli PING
docker exec redis redis-cli INFO memory | grep used_memory_human
# Top memory consumers
ps aux --sort=-%mem | head -10
# OOM killer history
dmesg | grep -i "out of memory" | tail -5
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.