cost-optimizer
Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my…
Trigger when an OpenClaw agent is broken, silent, crashing, stuck, not responding, returning empty output, or the user says "my agent is down", "agent not working", "/openclaw-debugger". Walks through the standard OpenClaw 2026.4 diagnosis checklist and prints a report.
$ npx -y skills add mergisi/awesome-openclaw-agents --skill openclaw-debugger --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/openclaw-debuggerContext preview
The summary Claude sees to decide when to auto-load this skill.
Trigger when an OpenClaw agent is broken, silent, crashing, stuck, not responding, returning empty output, or the user says "my agent is down", "agent not working", "/openclaw-debugger". Walks through the standard OpenClaw 2026.4 diagnosis checklist and prints a report.
name: openclaw-debugger description: Trigger when an OpenClaw agent is broken, silent, crashing, stuck, not responding, returning empty output, or the user says "my agent is down", "agent not working", "/openclaw-debugger". Walks through the standard OpenClaw 2026.4 diagnosis checklist and prints a report.
Diagnose a broken OpenClaw agent (Orion, Echo, Radar, or any custom agent from `awesome-openclaw-agents`). Produces a structured diagnosis report identifying the most likely root cause.
Compatible with OpenClaw 2026.4.11 and later. For deeper reference see `TROUBLESHOOTING.md` in this repo.
Work through the checklist in order. Stop at the first failing step and report it — no need to run later steps until that's fixed.
openclaw agent --status
tail -n 200 ~/.openclaw/logs/gateway.log tail -n 200 ~/.openclaw/agents/<name>/logs/agent.log
Grep for `ERROR`, `PANIC`, `401`, `429`, `timeout`. The first error in the tail is usually the real cause — everything after is fallout.
cat ~/.openclaw/agents/<name>/heartbeat.json
ls -la ~/.openclaw/agents/<name>/sessions/sessions.json
mv ~/.openclaw/agents/<name>/sessions/sessions.json{,.bak}Read `~/.openclaw/agents/<name>/SOUL.md` frontmatter to find the configured `model` and `provider`. Then:
A 401 means bad key. A 429 means you're rate limited — retry with exponential backoff or switch model. Connection refused on localhost means the local runtime crashed.
Read the agent's `SOUL.md` and check:
Print a diagnosis report like this:
OpenClaw Debugger — <agent-name> [OK] Gateway up (port 18789) [OK] Logs clean [FAIL] Heartbeat stale (last_seen 14 min ago) [SKIP] Session file [SKIP] Model provider [SKIP] SOUL.md Root cause: worker process crashed ~14 min ago. Last log line: ERROR 2026-04-13T08:41:02 panic: model provider returned 401 Fix: 1. Export a fresh ANTHROPIC_API_KEY 2. openclaw gateway restart 3. openclaw agent --agent <name> --message "ping"
Keep it terse. The user wants a fix, not an essay.
A curated collection of 205 production-ready AI agent templates for the OpenClaw ecosystem. Every template is a copy-paste ready SOUL.md file.
Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my…
Trigger when the user asks for an architecture diagram, says "draw the system", "update the architecture diagram", "give me an…
Trigger when the user asks to write a commit message, generate a commit from staged changes, review a diff before committing, or…
Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use…
Paste any code snippet and get a plain English explanation of what it does and how it works.
Generate a clean, conventional commit message from a description of your changes.