agent-ops-recovery
Handle failures and errors during workflow. Use when build breaks, tests fail unexpectedly, or agent gets stuck. Semi-automatic recovery with user confirmation for destructive actions.
Best use case
agent-ops-recovery is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Handle failures and errors during workflow. Use when build breaks, tests fail unexpectedly, or agent gets stuck. Semi-automatic recovery with user confirmation for destructive actions.
Teams using agent-ops-recovery should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/agent-ops-recovery/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agent-ops-recovery Compares
| Feature / Agent | agent-ops-recovery | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Handle failures and errors during workflow. Use when build breaks, tests fail unexpectedly, or agent gets stuck. Semi-automatic recovery with user confirmation for destructive actions.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Error Recovery workflow
## Trigger conditions
Use this skill when:
- Build/lint fails unexpectedly after agent changes
- Tests fail that were passing in baseline
- Agent encounters ambiguity it cannot resolve
- Implementation is stuck or going in circles
## Recovery procedure
### Step 1: Diagnose (invoke debugging)
**For non-trivial failures, invoke `agent-ops-debugging`:**
1. Apply systematic debugging process:
- Reproduce the issue consistently
- Define expected vs actual behavior
- Form hypothesis about root cause
2. Use debugging output to inform recovery decision
3. If root cause unclear after initial analysis, continue debugging before recovery
### Step 2: Assess rollback options
- **Option A**: Fix forward — issue is minor, can be resolved quickly
- **Option B**: Partial rollback — revert specific file(s) to last good state
- **Option C**: Full rollback — revert all agent changes since checkpoint
- **Option D**: Escalate — document the issue, mark task blocked, ask user
### Step 3: Propose action
Present options to user with:
- What will be reverted/changed
- Risk assessment
- Recommendation
### Step 4: Execute (with confirmation)
- For non-destructive actions (fix forward): proceed
- For destructive actions (rollback): **ask user first**
- Update `.agent/focus.md` with recovery action taken
## Destructive actions (require confirmation)
- `git reset`
- `git checkout -- <file>` (discard changes)
- `git revert`
- Deleting files
- Overwriting files with previous versions
## Non-destructive actions (can proceed)
- `git stash`
- Reading files
- Running diagnostics
- Updating focus/tasks with findings
## Post-recovery
1. Update `.agent/focus.md` with what happened
2. Invoke `agent-ops-tasks` to create issue for root cause investigation
3. Update `.agent/memory.md` with "pitfall to avoid" if applicable
4. Re-run baseline comparison before continuing
## Issue Discovery After Recovery
**After recovery, invoke `agent-ops-tasks` discovery procedure:**
1) **Create issue for the incident:**
```
📋 Recovery completed. Create issue to track root cause?
Suggested:
- [BUG] Investigate: {description of what failed}
- What happened: {failure description}
- Recovery action: {what was done}
- Root cause: TBD
Create this issue? [Y]es / [N]o
```
2) **If pattern detected, create prevention issue:**
```
This failure pattern has occurred before. Create improvement issue?
- [CHORE] Add validation to prevent {failure type}
- [TEST] Add regression test for {scenario}
Create these? [A]ll / [S]elect / [N]one
```
3) **After creating issues:**
```
Created {N} issues for tracking. What's next?
1. Investigate root cause now (BUG-0024@abc123)
2. Continue with original work (defer investigation)
3. Review recovery actions
```Related Skills
Disaster Recovery
Disaster Recovery encompasses strategies and procedures for recovering from catastrophic failures and ensuring business continuity. This includes backup strategies, failover mechanisms, data recovery
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
mcp-create-declarative-agent
Skill converted from mcp-create-declarative-agent.prompt.md
MCP Architecture Expert
Design and implement Model Context Protocol servers for standardized AI-to-data integration with resources, tools, prompts, and security best practices
mathem-shopping
Automatiserar att logga in på Mathem.se, söka och lägga till varor från en lista eller recept, hantera ersättningar enligt policy och reservera leveranstid, men lämnar varukorgen redo för manuell checkout.
math-modeling
本技能应在用户要求"数学建模"、"建模比赛"、"数模论文"、"数学建模竞赛"、"建模分析"、"建模求解"或提及数学建模相关任务时使用。适用于全国大学生数学建模竞赛(CUMCM)、美国大学生数学建模竞赛(MCM/ICM)等各类数学建模比赛。
matchms
Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.
managing-traefik
Manages Traefik reverse proxy for local development. Use when routing domains to local services, configuring CORS, checking service health, or debugging connectivity issues.
managing-skills
Install, find, update, and manage agent skills. Use when the user wants to add a new skill, search for skills that do something, check if skills are up to date, or update existing skills. Triggers on: install skill, add skill, get skill, find skill, search skill, update skill, check skills, list skills.
manage-agents
Create, modify, and manage Claude Code subagents with specialized expertise. Use when you need to "work with agents", "create an agent", "modify an agent", "set up a specialist", "I need an agent for [task]", or "agent to handle [domain]". Covers agent file format, YAML frontmatter, system prompts, tool restrictions, MCP integration, model selection, and testing.
maintainx-automation
Automate Maintainx tasks via Rube MCP (Composio). Always search tools first for current schemas.
mailsoftly-automation
Automate Mailsoftly tasks via Rube MCP (Composio). Always search tools first for current schemas.