error-recovery

Generate structured recovery prompts for failed AI agent handoffs.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/productengineered/parsely --skill error-recovery-productengineered
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-recovery
Source: https://github.com/productengineered/parsely/tree/main/.claude/skills/workflow/error-recovery
Command: npx skills add https://github.com/productengineered/parsely --skill error-recovery-productengineered

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When an AI agent fails mid-task due to context exhaustion, build failure, or unclear requirements, use structured recovery prompts to continue safely and efficiently.

Core Features & Use Cases

  • Provides templates for Context Exhaustion, Build Failure, Test Failure, Unclear Requirements, and Merge Conflict, with guardrails to avoid repeating work and to summarize outcomes for the next agent.
  • Includes clear instructions on what to copy, how to adapt prompts to new tasks, and how to maintain progress by referencing task IDs, file diffs, and current state.
  • Suitable for automations, agent orchestration, and interactive assistants that require reliable handoffs between agents.

Quick Start

Provide a recovery prompt that guides the next agent to complete the remaining work, including Task ID and context.

Frequently Asked Questions about error-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I hand off a failed AI agent task to a new agent?

To hand off a failed AI agent task, use a structured recovery prompt under 500 words that includes the Task ID, story, what was attempted, what remains, and a summary of files changed. This guides the new agent to continue safely and efficiently.

What is the best way to recover from an AI agent context exhaustion error?

The best way to recover from an AI agent context exhaustion error is to apply a structured recovery prompt template that summarizes what was attempted and what remains, ensuring the new agent avoids repeating work and references the current state.

How do I restart an AI workflow after a build failure without losing progress?

To restart an AI workflow after a build failure without losing progress, use a build failure recovery prompt that includes the Task ID, file diffs, and current state. This ensures the next agent resumes safely without repeating work.

What should a recovery prompt include for an AI task continuation?

A recovery prompt for an AI task continuation should include the Task ID, story, what was attempted, what remains, and a summary of files changed. It must be under 500 words to guide the new agent efficiently.

Can I use these recovery templates for unclear requirements and merge conflicts?

Yes, you can use these recovery templates for unclear requirements and merge conflicts. They provide specific guardrails to adapt prompts to new tasks, maintaining progress by referencing task IDs, file diffs, and current state.

Why do AI agent handoffs fail when requirements are unclear?

AI agent handoffs fail when requirements are unclear because the agent lacks sufficient context to proceed. Using a structured recovery prompt with a summary of what was attempted and what remains ensures the next agent can navigate the ambiguity safely.