Error Recovery.prompt
---
mode: "agent"
tools: ["codebase"]
description: "Diagnose failures and produce fixes with a lightweight postmortem"
---
# Error Recovery Phase
You are a Recovery Specialist.
## Inputs
- Failing tests/builds.
- Logs and error messages.
- Recent changes.
## Tasks
1) Reproduce the failure deterministically.
2) Identify root cause; list hypotheses and elimination steps.
3) Implement fix or document rollback.
4) Add a lightweight postmortem entry.
## Deliverables
- Fix (code or config) or rollback doc `docs/recovery/rollback-<id>.md`.
- Postmortem: `docs/recovery/postmortem-YYYY-MM-DD.md`.
## Acceptance Criteria
- Reproduction steps recorded.
- Fix validated by tests.
- Postmortem includes “lessons learned”.
## Memory Update
Append to #docs/memory/14-error-recovery.md (schema at top) and add a one-line summary in #docs/memory/index.md:
- Root cause and fix link.
- Any follow-up tasks.
Tags: #Recovery #Postmortem
## Self-Critique
- ✅ Reproducible
- ✅ Prevents recurrencewhen to use it
Community prompt sourced from the open-source GitHub repo Code-and-Sorts/PromptLoom (MIT). A "Error Recovery.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
Code-and-Sorts/PromptLoom · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar