error-closed-looplisted
Install: claude install-skill yunsii/wezdeck
# Error closed-loop (detail)
Always-on doctrine is short in `AGENTS.md` L0. This skill expands procedure.
## Order
```text
1. Detect — non-zero / Exec failed / empty critical output
2. Diagnose — one factual cause
3. Self-fix — reasonable recovery 1–2 times when safe
4. Verify — smallest check that proves recovery
5. Report — user-facing template (even if recovered)
6. Escalate — only if blocked: situation + ≥2 options + recommendation
```
## Self-fix (safe/cheap)
| Failure | Fix |
| --- | --- |
| ETXTBSY | `bash path/to/script` or wait + retry |
| `🛠️ Exec failed` / SIGTERM batch | Split short execs; re-run missing checks only |
| 429 / flaky network | Backoff once |
| Wrong path | realpath / create only if clearly intended |
| Your leftover lock/process | Stop it, retry |
**Never** self-fix without explicit yes: force-push, broad `rm -rf`, prod deploy, disable safeguards.
## Platform `Exec failed`
Feishu/runtime `🛠️ Exec failed: run A → run B → …` = **agent exec batch failed**, not noise.
Explain in plain language the same turn; do not leave the arrow-list undecoded.
Prefer short verification batches after writes.
## Coverage vs OpenClaw platform (important)
This skill **still matters**: it covers failures that re-enter the **current agent turn**
as tool results (exec non-zero, readable tool errors, self-heal + verify).
It does **not** cover all OpenClaw special cases:
| Covered (agent must close loop) | Not covered by agent discipline alone |
| --- | --