clawbot-self-heal

clawbot-self-heal is a skill for Claude Code, Codex from djblack1209-coder/OpenClaw-Bot. It costs 27 tokens per session (299 once invoked), scanned A, original, Apache-2.0.

A recovery procedure for OpenClaw and ClawBot services running on a local computer. It checks failed endpoints, restarts the affected service, checks again, and escalates only if needed.

In plain words
What is it for?
Use it to monitor the listed local gateways and recover them after health or endpoint failures. It helps identify the affected workflow, restart the matching service, track failure counts, and report persistent problems.
Why use it?
It reduces downtime when a service stops responding or message routing stalls. It also records repeated failures and sends an incident note after recovery attempts fail.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to monitor the listed local gateways and recover them after health or endpoint failures. It helps identify the affected workflow, restart the matching service, track failure counts, and report persistent problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/djblack1209-coder/openclaw-bot/clawbot-self-heal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add djblack1209-coder/OpenClaw-Bot --skill clawbot-self-heal
Clone the repo
git clone --depth 1 https://github.com/djblack1209-coder/OpenClaw-Bot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clawbot-self-heal

README.md
[![agentmods](https://agentmods.dev/badge/skills/djblack1209-coder/openclaw-bot/clawbot-self-heal/github.svg)](https://agentmods.dev/skills/djblack1209-coder/openclaw-bot/clawbot-self-heal)
Your own site
<a href="https://agentmods.dev/skills/djblack1209-coder/openclaw-bot/clawbot-self-heal"><img src="https://agentmods.dev/badge/skills/djblack1209-coder/openclaw-bot/clawbot-self-heal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clawbot-self-heal

Your own site · 80×15
<a href="https://agentmods.dev/skills/djblack1209-coder/openclaw-bot/clawbot-self-heal"><img src="https://agentmods.dev/badge/skills/djblack1209-coder/openclaw-bot/clawbot-self-heal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00299
Opus 5.5 $0.00011 $0.00120
Sonnet 5.5 $0.00005 $0.00060
Haiku 4.5 $0.00003 $0.00030

Measured 3mo ago against content hash a6f3c1f0955e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clawbot-self-heal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apps/openclaw/skills/clawbot-self-heal/SKILL.md · 35 lines

What it actually says

ClawBot Self Heal

Use when service health degrades, endpoints fail, or message routing stalls.

Targets

  • OpenClaw gateway: 127.0.0.1:18789
  • ClawBot g4f: 127.0.0.1:18891
  • ClawBot kiro gateway: 127.0.0.1:18793

Recovery sequence

  1. Detect failing endpoint and impacted workflows.
  2. Auto-recovery first: Immediately restart affected service (map endpoint to LaunchAgent label).
  3. Recheck endpoint health after 10s.
  4. If still failing, escalate to dependency service restart order.
  5. Recheck again after 10s.
  6. Track failure state in apps/openclaw/memory/heartbeat-state.json under healFailures: {endpoint: consecutiveCount}.

Notification rules

  • All healthy → Silent (no message to 严总)
  • Auto-recovery succeeded → Silent
  • Auto-recovery failed (consecutiveCount >= 2) → Notify 严总 with concise incident note + root cause hypothesis

Stability rule

  • Prefer targeted restarts over full stack restarts.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 35 lines · 27 tokens per session scan A a6f3c1f0955e

Subscribe to this mod's changes

clawbot-self-heal is a skill published in the GitHub repository djblack1209-coder/OpenClaw-Bot (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 299 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

clawbot-self-heal compared with skills from other repositories

clawbot-self-heal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clawbot-self-healdjblack1209-coder/OpenClaw-BotSkill51mo agoApache-2.0A27Claude Code, Codex
reskinCopilotKit/CopilotKitSkill39ktodayMITA154Claude Code
copilotkit-channelsCopilotKit/CopilotKitSkill39ktodayMITA112Claude Code
setup-slack-channelCopilotKit/CopilotKitSkill39ktodayMITA206Claude Code
a2ui-catalogCopilotKit/CopilotKitSkill39ktodayMITA190Claude Code
a2ui-coreCopilotKit/CopilotKitSkill39ktodayMITA18Claude Code
channels-setupCopilotKit/CopilotKitSkill39ktodayMITA141Claude Code