---
name: hm-error-handler
version: 1.0.0
description: Structured error capture + trace + recursive self-heal feedback for any wrapped call.
license: MIT
homepage: https://hypermove.xyz
install: Fetch https://hypermove.xyz/api/skills/hm-error-handler?format=md and save it as hm-error-handler/SKILL.md in your agent's skills directory. No CLI, no npm, no MCP required.
---

# hm-error-handler

Structured error capture + trace + recursive self-heal feedback for any wrapped call.

## Run it (in your workspace — no MCP required)

This is a self-contained agent-skill. Once this SKILL.md is in your skills
directory it autoloads and runs locally by following the procedure below —
no HyperMove server or MCP connection is needed to install or run it.

**Inputs** (required: message):

```json
{
  "message": {
    "type": "string"
  },
  "stack": {
    "type": "string"
  }
}
```

**Procedure** — apply the HyperMove harness pattern locally:
1. Validate the inputs above and apply your cost / rate / prompt-injection policy.
2. Do the task: Structured error capture + trace + recursive self-heal feedback for any wrapped call.
3. Definition of done: the output is present and well-formed.

Composes (harness primitives you apply above): lib/observability.

## External protocol (optional, via HyperMove MCP)

The skill runs fully locally. Connect the HyperMove MCP only if you need the
external-protocol layer — live cross-chain data (`data.call`) or to make/receive
a payment (`payments.settle`, x402/mpp · USDC/RLUSD):

- add MCP server `https://hypermove.xyz/api/mcp` (transport: http)
- Claude Code: `claude mcp add --transport http hypermove https://hypermove.xyz/api/mcp`