-
Notifications
You must be signed in to change notification settings - Fork 491
feat(skills): add error-recovery skill -- standard agent failure recovery patterns #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6a656b0
c519474
868810b
bdfaf15
4b79561
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@bradygaster/squad-cli": minor | ||
| "@bradygaster/squad-sdk": minor | ||
| --- | ||
| feat: add error-recovery skill for standard agent failure recovery patterns |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,69 @@ | ||||||
| # Proposal: Error Recovery Skill | ||||||
|
|
||||||
| **Issue:** bradygaster/squad#623 | ||||||
| **Author:** tamirdresher | ||||||
| **Date:** 2026-03-26 | ||||||
| **Status:** Proposal | ||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| ## Problem Statement | ||||||
|
|
||||||
| When a Squad agent fails (model timeout, tool error, invalid output, context overflow), there is | ||||||
| no standardized recovery pattern. Individual coordinators implement ad-hoc retry logic or simply | ||||||
| fail the task. This causes inconsistent user experience and missed opportunities for graceful | ||||||
| degradation across the squad. | ||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| ## Proposed Approach | ||||||
|
|
||||||
| A skill library providing five recovery patterns an agent can apply when it encounters a failure: | ||||||
|
|
||||||
| | Pattern | When to use | | ||||||
| |---------|-------------| | ||||||
| | **retry** | Transient errors (rate limit, timeout) — wait and retry same approach | | ||||||
| | **fallback** | Primary approach consistently fails — switch to alternative method | | ||||||
| | **diagnose** | Unclear failure cause — gather diagnostics before deciding | | ||||||
| | **escalate** | Blocked beyond agent capability — surface to coordinator/human | | ||||||
| | **degrade** | Full functionality unavailable — deliver partial result with caveat | | ||||||
|
|
||||||
| The skill provides a selection guide table mapping error symptoms to the appropriate pattern, | ||||||
| plus prompt templates for each pattern that agents can use in their reasoning. | ||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| ## Fit with Existing Architecture | ||||||
|
|
||||||
| - **Complements** existing gent-conduct skill (which covers behavior) — this skill covers failure states | ||||||
|
||||||
| - **Complements** existing gent-conduct skill (which covers behavior) — this skill covers failure states | |
| - **Complements** existing agent-conduct skill (which covers behavior) — this skill covers failure states |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,99 @@ | ||||||
| --- | ||||||
| name: "error-recovery" | ||||||
| description: "Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure." | ||||||
| domain: "reliability, agent-coordination" | ||||||
| confidence: "high" | ||||||
| license: MIT | ||||||
|
||||||
| license: MIT | |
| source: manual |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,99 @@ | ||||||
| --- | ||||||
| name: "error-recovery" | ||||||
| description: "Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure." | ||||||
| domain: "reliability, agent-coordination" | ||||||
| confidence: "high" | ||||||
| license: MIT | ||||||
|
||||||
| license: MIT | |
| source: manual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This proposal says the skill includes “prompt templates for each pattern,” but the new SKILL.md content only contains narrative guidance/examples (no reusable prompt templates). Either add the prompt-template sections to the skill files or adjust this proposal text so it matches what’s actually being shipped.