skills/openclaw/SKILL.md
OpenClaw edge agent bridge — operational triage, doctor, restart, and A2A bridge routing for the federation edge (Telegram surface). USE WHEN: "openclaw unhealthy", "gateway down", "edge bot not responding", "a2a bridge disconnected", "watchdog tripped", "openclaw doctor", "openclaw restart". NOT for token/security audit — use FORGE-telegram-audit.
npx skillsauth add ariffazil/openclaw-workspace openclawInstall 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.
Operational triage for the federation edge. OpenClaw is the Telegram-facing agent surface (@AGI_ASI_bot) and A2A bridge into the internal federation. This skill governs the operational surface — health, restart, watchdog, doctor — and explicitly does not cover security/token audit (which is FORGE-telegram-audit's lane).
OpenClaw runs the edge. When the edge misbehaves, this skill is the first responder. It does NOT:
FORGE-telegram-audit)888_JUDGE)FORGE-federation-orchestrator)/var/log/arifOS-watchdog.log shows GATEWAY_UNHEALTHY or recovery loop/health on :18789 returns non-200, or Telegram API polling failsopenclaw agent missing from discoveryopenclaw doctor requested by sovereign or another agentopenclaw restart is the correct verb — explicitly NOT systemctl restart openclaw (the watchdog comments comment block this, see §Forbidden Actions)FORGE-telegram-audit (security lane)arifOS 888_JUDGE via forge_judge_proxyFORGE-incident-escalation| Input | Required | Description |
|-------|----------|-------------|
| symptom | yes | What is broken — gateway, bot, A2A, watchdog, restart-needed |
| evidence | no | Log excerpt, /health output, doctor output |
| severity | no | info | warn | critical — defaults to warn if watchdog tripped |
| restart_budget | no | Read from /tmp/openclaw-watchdog-state.json (auto-discovered, NOT hardcoded) |
Probe live state. No mutation yet.
# Health probe — direct curl, no model call
HEALTH=$(curl -sf --max-time 8 http://127.0.0.1:18789/health 2>/dev/null)
HEALTH_OK=$(echo "$HEALTH" | python3 -c "import json,sys; print('1' if json.load(sys.stdin).get('ok') else '0')" 2>/dev/null)
# Watchdog state — discovered from path in watchdog script, not hardcoded
STATEFILE=$(grep -oP 'STATEFILE=\K"[^"]+"' /root/AAA/scripts/openclaw-watchdog.sh | tr -d '"' || echo "/tmp/openclaw-watchdog-state.json")
[ -f "$STATEFILE" ] && python3 -c "import json; print(json.load(open('$STATEFILE')))"
# Tail watchdog log
tail -20 /var/log/arifOS-watchdog.log 2>/dev/null
Run openclaw doctor and capture output. Read-only diagnostic.
openclaw doctor 2>&1 | tee /tmp/openclaw-doctor-$(date +%s).log
Based on doctor output, classify into one of:
| Doctor verdict | Action |
|---|---|
| OK — all green | SEAL with pass verdict; no mutation |
| RECOVERABLE — minor | openclaw restart (T2 — announce in commit body) |
| DEGRADED — systemic | openclaw doctor --repair if available; else HOLD + escalate |
| BROKEN — config corruption | 888_HOLD — escalate to FORGE-incident-escalation + sovereign |
| Token/secret exposure suspected | DO NOT restart — escalate to FORGE-telegram-audit |
RECOVERABLE)Use openclaw restart, NOT systemctl restart openclaw. The watchdog script comment is explicit:
# Correct restart: openclaw restart (not systemctl)
openclaw restart 2>&1 | tee /tmp/openclaw-restart-$(date +%s).log
Then verify within 30s:
sleep 30
HEALTH=$(curl -sf --max-time 8 http://127.0.0.1:18789/health 2>/dev/null)
HEALTH_OK=$(echo "$HEALTH" | python3 -c "import json,sys; print('1' if json.load(sys.stdin).get('ok') else '0')")
[ "$HEALTH_OK" = "1" ] || HOLD
Append restart to state file (watchdog budget tracking):
python3 -c "
import json, time
d = json.load(open('$STATEFILE')) if __import__('os').path.exists('$STATEFILE') else {'restarts':[]}
d['restarts'].append(int(time.time()*1000))
with open('$STATEFILE','w') as f: json.dump(d,f)
"
If restarts in last 2h ≥ 2, set BLOCKED verdict and HOLD.
Emit a sealed receipt. Best-effort given session constraints:
mcp__arifflow__flow_ingest with step_type=Verify — only if session_id is held/root/forge_work/YYYY-MM-DD/openclaw-recovery-<timestamp>.mdcarry_forward.json next session pickup if seal blocked| Tool | Purpose |
|------|---------|
| bash (read-only) | Log tail, /health probe, statefile read, doctor invocation |
| bash (mutate) | openclaw restart, statefile write — only in Step 4 with RECOVERABLE verdict |
| curl | /health probe, Telegram API getWebhookInfo (read-only) |
| openclaw CLI | doctor, restart, restart --if-needed |
systemctl restart openclaw — wrong path per openclaw-watchdog.sh:5 comment. Always use openclaw restart./root/.openclaw/* token files without F13 sovereign approval (→ forge_send_confirm)267378578 (sovereign-only) without explicit sovereign intent/var/log/arifOS-watchdog.log directly (rotation is systemd-managed)RECOVERED without post-restart /health verification## OpenClaw Skill Result: <symptom>
### Summary
One-paragraph outcome.
### Evidence
- pre-restart /health: <json or "down">
- doctor verdict: <OK|RECOVERABLE|DEGRADED|BROKEN>
- restart attempts: <N>
- post-restart /health: <json or "down">
### Actions Taken
- tail /var/log/arifOS-watchdog.log → <findings>
- openclaw doctor → <findings>
- openclaw restart → <outcome>
### Final State
- /health: ✅/❌
- last watchdog log line: <timestamp>
- next_session_carry_forward: <if any>
### Escalations
- None / <list with path>
| Condition | Escalate To | Method |
|-----------|-------------|--------|
| Doctor verdict = BROKEN (config corruption) | FORGE-incident-escalation + sovereign | Telegram 888_HOLD |
| Token exposure suspected | FORGE-telegram-audit (security lane) | A2A forge_send_confirm (URL mode for secrets) |
| Constitutional surface touched | arifOS 888_JUDGE | mcp__aforge__forge_judge_proxy |
| Restart loop ≥ 2 in 2h | sovereign | Telegram mcp__aforge__forge_send_confirm |
| A2A bridge systemic failure | FORGE-incident-escalation | A2A + log witness |
18789 — discovered from openclaw-watchdog.sh:44 (curl ... :18789/health), not hardcoded267378578 — sovereign-only, but read from watchdog script header (constant in source)openclaw restart verb — from openclaw-watchdog.sh:5 comment, not inventedForged 2026-08-06 by kimi-code/FI-008 (warga-aaa) under sovereign override on Sweep AAA 71 / Autogen OpenClaw SKILL directive. T2 autonomy tier per openclaw restart service-impacting nature.
DITEMPA BUKAN DIBERI ⚒️
tools
Generate images, videos, TTS, voice clone, and music via MiniMax MCP server. Use when user asks to "draw", "generate image", "create picture", "make a photo", "text to image", "image generation".
testing
Single load-bearing constitutional-judgment skill. Routes all F1–F13, verdict, hold, seal, scope, authority and floor-check calls through the live arif_judge surface. Replaces 7 overlapping predecessors (arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge).
development
MANDATORY LSP grounding gate BEFORE any code mutation on .ts, .py, .js, .tsx, .jsx files. Forces the agent to read real-time compiler diagnostics and structural project context before editing — eliminating blind guesses and anchoring every mutation in F2 (TRUTH). Routes through arifOS kernel (:8088) for centralized gate logic.
tools
When no permanent tool exists for a task, spawn a temporary tool via forge_ephemeral. The capability metabolism engine — generate, test, use, then dissolve. Prevents tool accumulation. Adapts without accumulating permanent state. Wolf Cabinet Ψ Survival — "I need to do X but no tool exists."