# Self Healing Error Recovery

> >

- **Type:** Skill
- **Install:** `agentstack add skill-stijnman-grok-custom-skills-self-healing-error-recovery`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Stijnman](https://agentstack.voostack.com/s/stijnman)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Stijnman](https://github.com/Stijnman)
- **Source:** https://github.com/Stijnman/grok-custom-skills/tree/main/.grok/skills/self-healing-error-recovery

## Install

```sh
agentstack add skill-stijnman-grok-custom-skills-self-healing-error-recovery
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Self Healing Error Recovery

## When to Use

- User says **heal this error** or task matches this capability
- User says **self recover** or task matches this capability
- User says **fix failure automatically** or task matches this capability
- User says **retry smart** or task matches this capability

## Workflow

1. Capture error message, command, and environment context.
2. Classify: transient / config / permission / logic / dependency.
3. Try up to 3 recovery strategies (retry, alternate path, dependency fix).
4. If recovered, summarize fix. If not, escalate with diagnosis.
5. Record lesson: error pattern -> successful fix.

## Integrations

- `knowledge-graph-builder`
- `semantic-memory-manager`
- `bottleneck-resolver`

## Error Handling

| Failure | Response |
|---------|----------|
| Destructive command failed | Do not auto-retry deletes; require HITL. |
| Same error 3x | Stop retrying; report root cause. |
| Permission denied | Never escalate privileges; ask user. |

## Gotchas

- Read-only diagnosis first; mutate only after classification.

## Example

**Input:** User request matching triggers above.
**Output:** Structured result per workflow with integrations invoked as needed.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Stijnman](https://github.com/Stijnman)
- **Source:** [Stijnman/grok-custom-skills](https://github.com/Stijnman/grok-custom-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-stijnman-grok-custom-skills-self-healing-error-recovery
- Seller: https://agentstack.voostack.com/s/stijnman
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
