openclaw-debugger
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…
Skill by mergisi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mergisi-openclaw-debugger
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/openclaw-debugger
What's inside
- Skill 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.
- License
- MIT
- Instructions
- 106 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# OpenClaw Debugger
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.
## When to use
- Agent returns empty output or times out
- `openclaw agent --agent <name> --message "..."` hangs
- Heartbeat dashboard shows the agent as stale
- Model provider errors (429, 401, connection refused)
- User says "openclaw is broken" / "agent is down" / "why is Orion not replying"
## Instructions
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.
### 1. Gateway health
```bash
openclaw agent --status
```
- If the gateway is down, tell the user to run `openclaw gateway restart`.
- If it reports "port 18789 in use by another process", find and kill the stale process (`lsof -i :18789`).
### 2. Tail recent logs
```bash
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.
### 3. Heartbeat status
```bash
cat ~/.openclaw/agents/<name>/heartbeat.json
```
- Check `last_seen` timestamp. More than 5 minutes old = worker crashed.
- If `status` is `starting` for more than 60s, the agent is stuck in init (usually a bad `SOUL.md` or missing env var).
### 4. Session file integrity
```bash
ls -la ~/.openclaw/agents/<name>/sessions/sessions.json
```
- If the file is >5 MB, sessions may be corrupt. Back it up and delete:
```bash
mv ~/.openclaw/agents/<name>/sessions/sessions.json{,.bak}
```
- If the JSON is invalid (`python3 -m json.tool < sessions.json`), same fix.
### 5. Model provider reachability
Read `~/.openclaw/agents/<name>/SOUL.md` frontmatter to find the configured `model` and `provider`. Then:
- **Anthropic (Opus 4.6, Sonnet 4.6):** `echo $ANTHROPIC_API_KEY | head -c 10` — confirm key exists.
- **GLM-5.1 / Minimax M2.7:** check `~/.openclaw/providers.json` for the base URL and hit `/v1/models` with curl.
- **Gemma 4 local:** confirm Ollama or the local runtime is up (`curl localhost:11434/api/tags`).
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.
### 6. SOUL.md validity
Read the agent's `SOUL.md` and check:
- YAML frontmatter parses (must have `name`, `model`, `system_prompt` fields)
- `model` string matches one in `~/.openclaw/providers.json`
- No lingering Turkish prompts if the agent is supposed to respond in English (per repo rules)
## Output format
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.
## Example invocations
- `/openclaw-debugger orion`
- "My Echo agent is stuck — debug it"
- "Why is `openclaw agent --agent radar` timing out?"From mergisi/awesome-openclaw-agents, MIT.
More from mergisi/awesome-openclaw-agents
- 0.663score
model-cost-compare
mergisi
Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use Opus or Sonnet", "can a…
SkillDFreshness: D★ 4KClaude Code +9 - 0.663score
excalidraw-architecture
mergisi
Trigger when the user asks for an architecture diagram, says "draw the system", "update the architecture diagram", "give me an excalidraw of this codebase"…
SkillDFreshness: D★ 4KClaude Code +9 - 0.663score
git-commit-writer
mergisi
Trigger when the user asks to write a commit message, generate a commit from staged changes, review a diff before committing, or says "/commit".
SkillDFreshness: D★ 4KClaude Code +9 - 0.663score
cost-optimizer
mergisi
Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my CLAUDE.md", "why is this project…
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
growth-ideas
mergisi
Describe your product or project and get three actionable growth ideas tailored to your stage.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
haiku-card
mergisi
Write a haiku about a topic and render it as a shareable card.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
meeting-notes
mergisi
Paste raw meeting notes and get a clean summary with key decisions and action items.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
pricing-advisor
mergisi
Describe your product and target customer, get a pricing strategy with three tiers and rationale.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
regex-builder
mergisi
Describe a text pattern in plain English and get a working regular expression with an explanation.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
tone-shifter
mergisi
Rewrite any text in a different tone — formal, casual, friendly, bold, or concise.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
code-explainer
mergisi
Paste any code snippet and get a plain English explanation of what it does and how it works.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
commit-message
mergisi
Generate a clean, conventional commit message from a description of your changes.
SkillDFreshness: D★ 4KClaude Code +9
Signals
- Stars
- 4,024
- Forks
- 643
- Open issues
- 26
- Last commit (this folder)
- Apr 13, 2026 (6 months ago)
- Last release
- Apr 4, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- crewclaw.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.246score
openclaw-debugger
heledmx-lab
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…
SkillDFreshness: DClaude Code +9 - 0.242score
openclaw-debugger
TheophilusChinomona
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…
SkillDFreshness: DClaude Code +9
More from mergisi
- 0.663score
model-cost-compare
mergisi
Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use Opus or Sonnet", "can a…
SkillDFreshness: D★ 4KClaude Code +9 - 0.663score
git-commit-writer
mergisi
Trigger when the user asks to write a commit message, generate a commit from staged changes, review a diff before committing, or says "/commit".
SkillDFreshness: D★ 4KClaude Code +9 - 0.663score
excalidraw-architecture
mergisi
Trigger when the user asks for an architecture diagram, says "draw the system", "update the architecture diagram", "give me an excalidraw of this codebase"…
SkillDFreshness: D★ 4KClaude Code +9 - 0.663score
cost-optimizer
mergisi
Trigger when the user asks to audit Claude Code costs, reduce token spend, says "my Claude bill is too high", "optimize my CLAUDE.md", "why is this project…
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
standup-summary
mergisi
Tell Gemma what you did, what you're working on, and any blockers.
SkillDFreshness: D★ 4KClaude Code +9 - 0.576score
sql-explainer
mergisi
Paste a SQL query and get a plain English explanation of what it does.
SkillDFreshness: D★ 4KClaude Code +9
Cite this page
openclaw-debugger skill. Agent Mart. https://agentmart.dev/skills/mergisi-openclaw-debugger (last updated 2026-10-24)