# Send Agent Defibrillator to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-defibrillator",
    "name": "Agent Defibrillator",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/hazy2go/agent-defibrillator",
    "canonicalUrl": "https://clawhub.ai/hazy2go/agent-defibrillator",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agent-defibrillator",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-defibrillator",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "defibrillator.sh",
      "install.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agent-defibrillator",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T06:00:47.543Z",
      "expiresAt": "2026-05-06T06:00:47.543Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-defibrillator",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-defibrillator",
        "contentDisposition": "attachment; filename=\"agent-defibrillator-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agent-defibrillator"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-defibrillator"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-defibrillator",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-defibrillator",
    "agentUrl": "https://openagent3.xyz/skills/agent-defibrillator/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-defibrillator/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-defibrillator/agent.md"
  }
}
```
## Documentation

### Agent Defibrillator

Watchdog service that monitors your AI agent gateway and restarts it when it crashes.

### What It Does

Checks gateway health every 10 minutes
Detects crashes and stale processes
Auto-restarts with cooldown protection
Optional Discord notifications on restart
Detects version mismatches after updates

### Install

Recommended (review code first):

git clone https://github.com/hazy2go/agent-defibrillator.git
cd agent-defibrillator
./install.sh

### Verify

launchctl list | grep defib

### Configure

Edit ~/.openclaw/scripts/defibrillator.sh:

VariableDefaultDescriptionDEFIB_GATEWAY_LABELai.openclaw.gatewaylaunchd service labelDEFIB_RETRY_DELAY10Seconds between retriesDEFIB_MAX_RETRIES3Retries before restartDEFIB_COOLDOWN300Seconds between restartsDISCORD_CHANNEL(empty)Your channel ID for notifications

### Commands

# View logs
tail -f ~/.openclaw/logs/defibrillator.log

# Manual check
~/.openclaw/scripts/defibrillator.sh

# Stop watchdog
launchctl bootout gui/$(id -u)/com.openclaw.defibrillator

# Restart watchdog
launchctl kickstart -k gui/$(id -u)/com.openclaw.defibrillator

### Uninstall

launchctl bootout gui/$(id -u)/com.openclaw.defibrillator
rm ~/Library/LaunchAgents/com.openclaw.defibrillator.plist
rm ~/.openclaw/scripts/defibrillator.sh

### Requirements

macOS (uses launchd)
AI agent running via launchd (OpenClaw, etc.)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hazy2go
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T06:00:47.543Z
- Expires at: 2026-05-06T06:00:47.543Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agent-defibrillator)
- [Send to Agent page](https://openagent3.xyz/skills/agent-defibrillator/agent)
- [JSON manifest](https://openagent3.xyz/skills/agent-defibrillator/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agent-defibrillator/agent.md)
- [Download page](https://openagent3.xyz/downloads/agent-defibrillator)