Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Error-State Recovery

БесплатноБез исполняемых скриптовНе проверен

Wraps command execution in a self-healing loop. Uses heuristics to auto-fix common errors (missing deps, locked files) or escalates to the Agent with…

Sounder25от Sounder25★ 29 звёзд на GitHub11 установок в других каталогах

Об этом скилле

SKILL-006: Error-State Recovery

Overview

Agents often fail due to transient or trivial errors (e.g., missing Python module, locked file, timeout). This skill provides a Invoke-Recoverable wrapper that catches these errors, attempts to apply known fixes, and retries the operation.

Trigger Phrases

  • run with recovery
  • auto-fix <command>
  • try hard <command>

Inputs

Parameter Type Required Default Description
--command string Yes - The command to execute
--retries int No 3 Max retry attempts
--heuristics switch No True Enable heuristic auto-fixes (pip, npm, mkdir)

Outputs

  1. Success: Standard output of the command.
  2. Failure: ERROR_STATE.json containing the stack trace, context, and failed fix attempts.

Supported Heuristics

  1. Python ModuleNotFoundError: Auto-runs pip install <module>.
  2. DirectoryNotFound: Auto-runs mkdir -p.
  3. File Locked: Waits 2s and retries.
  4. CLI Missing: Checks standard paths for tool (e.g., forge, dotnet).

Preconditions

  1. PowerShell 7+

Implementation

See invoke_recovery.ps1.

Integration

.\skills\06_error_recovery\invoke_recovery.ps1 -Command "python hunt.py" -Retries 3

Установить Error-State Recovery в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

invoke_recovery.ps1

FAQ

Что делает скилл Error-State Recovery?

Wraps command execution in a self-healing loop. Uses heuristics to auto-fix common errors (missing deps, locked files) or escalates to the Agent with structured error context.

Как установить скилл Error-State Recovery?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Error-State Recovery запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Error-State Recovery с