← スキル一覧に戻る

error-state-recovery
by Sounder25
Operational capabilities for high-leverage AI coding agents. Features deterministic execution, 100% tested safety gates, impasse detection, and adversarial review. Includes 'Gold Standard' meta-skills like Pre-Action Guard and Failure Postmortem to prevent loops and data loss.
⭐ 8🍴 3📅 2026年1月23日
SKILL.md
name: Error-State Recovery description: 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. version: 1.0.0 author: Antigravity Skills Library created: 2026-01-16 leverage_score: 5/5
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 recoveryauto-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
- Success: Standard output of the command.
- Failure:
ERROR_STATE.jsoncontaining the stack trace, context, and failed fix attempts.
Supported Heuristics
- Python
ModuleNotFoundError: Auto-runspip install <module>. - DirectoryNotFound: Auto-runs
mkdir -p. - File Locked: Waits 2s and retries.
- CLI Missing: Checks standard paths for tool (e.g.,
forge,dotnet).
Preconditions
- PowerShell 7+
Implementation
See invoke_recovery.ps1.
Integration
.\skills\06_error_recovery\invoke_recovery.ps1 -Command "python hunt.py" -Retries 3
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です