x3
Superagent skill x3 — Fault Diagnosis & Resolution
SKILL.mdskills/superagent/x3/SKILL.md
GitHubx3 — Fault Diagnosis & Resolution
Load ONLY when: error, bug, not working, failed, debug, stack trace, "kenapa", "kok gagal", "kok ga jalan"
Protocol — Diagnose BEFORE prescribing
Step 1 — Gather (request everything in ONE message)
- Exact exception text (full traceback, not paraphrased)
- Last action taken before fault
- Environment: OS, runtime version, package versions
- Last known working state
- What you've already tried
If user gave partial info, ask for all missing pieces in ONE message. Never "try X and report back" without diagnosis.
Step 2 — Classify
syntax → malformed code
runtime → valid syntax, execution failure (null ref, undef, type)
logic → runs clean, wrong output
environment → missing env var, wrong version, permission, path
network → timeout, DNS, port, firewall, proxy
dependency → missing module, version conflict, peer dep
auth → 401/403, expired token, wrong scope
rate-limit → 429, quota exceeded
config → wrong value (NOT missing — value present but wrong)
The "config wrong value" class is high-priority: Kakak's history shows OpenClaw streaming config caused duplicate Telegram responses. Always check this class for daemon/agent bugs.
Step 3 — Diagnose
Root cause: [specific line / config key / package]
Mechanism: [one sentence why this causes the symptom]
Confidence: high / medium / low
If low confidence — ask for one more piece of evidence, don't guess.
Step 4 — Resolve
# Exact command(s), no placeholders
Show real values, not <your_token>. Use Kakak's actual paths if known (/root/.openclaw/...).
Step 5 — Verify
# Single command that proves it works
Step 6 — Harden
# Config delta or test to prevent recurrence
Common error patterns library
Node / JS
Cannot find module→ missing install OR wrong cwd OR ES/CJS mismatchMODULE_NOT_FOUNDafternpm i→ check.binPATH or usenpxport already in use→lsof -i :PORTthen killEADDRINUSE→ previous process didn't exit, screen/tmux leftoverunexpected tokenin import → CJS file importing ESM, change.cjsor"type":"module"
Python
ModuleNotFoundErrorafter pip install → wrong venv ORpip≠pythonvenv → usepython -m pipSSL: CERTIFICATE_VERIFY_FAILED→ corp proxy or stale certs →pip install --trusted-host pypi.orgRecursionError→ real bug ORsys.setrecursionlimitneeded (rare)
Telegram bot
- Duplicate responses → multiple instances running (
ps aux | grep node) OR webhook + polling both active 409 Conflict→ another getUpdates poll running- Bot stops responding silently → check for
polling_errorevent handler, often unhandled rejection - Markdown parse error → unescaped
_*[characters
Web3
nonce too low→ race condition, use NonceManagerreplacement transaction underpriced→ bumping gas <10% above stuck txinsufficient funds for gas→ forgot gas cost, not just transfer value- RPC timeout → switch endpoint, primary down
execution revertedno reason → calleth_callfirst to simulate and get revert stringsigner connected to providerwarnings → usewallet.connect(provider)thencontract.connect(wallet)
VPS / Linux
Permission deniedon script →chmod +xOR shebang wrong OR running as wrong userscreensession gone → server rebooted, use systemd instead for persistence- Port not reachable externally → ufw or cloud firewall blocking
out of memorykilled →dmesg | grep -i killconfirms OOM, add swap or cap memory
OpenClaw / Hermes specific
- Duplicate Telegram response →
streamingconfig has invalid value, set proper boolean - Provider auth fail → check both
ANTHROPIC_AUTH_TOKENandANTHROPIC_API_KEY, conflict possible - Skill not loading → wrong path in
~/.openclaw/workspace/openclaw-agents.json - Tool call hangs → security guardrail blocking obfuscated bash, simplify command
Output format
[ROOT CAUSE] → [specific 1-line]
[FIX] → [exact commands]
[VERIFY] → [exact verify command]
[HARDEN] → [prevention, optional]
If 100% sure → execute fix style. If <100% sure → give probable cause + diagnostic command to confirm BEFORE fix.
Never "try this and see." Always ground recommendation in evidence.