agent-recovery

agent-recovery is a skill for Claude Code, Codex from J-StaR-Films-Studios/VibeCode-Protocol-Suite. It costs 32 tokens per session (864 once invoked), scanned A, original, ISC.

A recovery workflow for an AI coding agent that is stuck, repeating errors, losing its context, or needs a fresh session or help from another agent.

In plain words
What is it for?
Use it to reset state, move work to another session, or escalate a task to a subagent.
Why use it?
It provides ways to get work moving again when the current agent session is no longer making progress.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to reset state, move work to another session, or escalate a task to a subagent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add J-StaR-Films-Studios/VibeCode-Protocol-Suite --skill agent-recovery
Clone the repo
git clone --depth 1 https://github.com/J-StaR-Films-Studios/VibeCode-Protocol-Suite

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery/github.svg)](https://agentmods.dev/skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery)
Your own site
<a href="https://agentmods.dev/skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery"><img src="https://agentmods.dev/badge/skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery"><img src="https://agentmods.dev/badge/skills/j-star-films-studios/vibecode-protocol-suite/agent-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 864 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 143
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00864
Opus 5.5 $0.00013 $0.00346
Sonnet 5.5 $0.00006 $0.00173
Haiku 4.5 $0.00003 $0.00086

Measured 3mo ago against content hash ff981a77f4f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-recovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

assets/.agent/skills/agent-recovery/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Recovery Skill

Protocols for when the agent is stuck, context is degraded, or session needs migration.

When to Use

  • Agent is making repeated mistakes
  • Long conversation causing hallucinations
  • Need to hand off to fresh agent
  • Context window is full

Option 1: Escalate (Handoff Report)

Use when: Agent is stuck and can't solve the problem.

Steps

  1. Undo broken changes:
git status
git checkout -- .
  1. Generate docs/escalation_report.md:
# Escalation Handoff Report

**Generated:** [Date/Time]
**Original Issue:** [GitHub Issue # or description]

## PART 1: THE DAMAGE REPORT

### 1.1 Original Goal
[The task you were asked to complete]

### 1.2 Observed Failure
[EXACT error message]

### 1.3 Failed Approach
[Strategy you attempted]

### 1.4 Key Files Involved
- `path/to/file1.ts`

### 1.5 Best-Guess Diagnosis
[Why approach failed]

## PART 2: FULL FILE CONTENTS
[EMBED entire content of each file]

## PART 3: DIRECTIVE FOR ORCHESTRATOR
1. Analyze the failure
2. Formulate a new plan
3. Execute or hand off
  1. Open new session and paste the report content.

Option 2: Migrate (Context Snapshot)

Use when: Chat is stale, need fresh session with same context.

Auto-Detect Context

cat docs/Project_Requirements.md 2>/dev/null
git log --oneline -20
gh issue list --state open --limit 10 --json number,title
cat docs/Coding_Guidelines.md 2>/dev/null

Generate docs/migration_snapshot.md:

# State Snapshot Handoff Prompt

## To the New AI: Adopt This Identity
You are the **VibeCode Project Orchestrator**...

## Project Details
- **Name:** [from PRD]
- **Stack:** [from PRD]

## Milestones
[From git log]

## Current Status
- In Progress: [from GitHub]
- Next: [from roadmap]

## Key Files
- `docs/Project_Requirements.md`
- `docs/Coding_Guidelines.md`

## First Action
Read files above, then ask: "What would you like to work on next?"

Option 3: Reset (Mid-Conversation)

Read the full file on GitHub · 150 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 150 lines · 32 tokens per session scan A ff981a77f4f2

Subscribe to this mod's changes

agent-recovery is a skill published in the GitHub repository J-StaR-Films-Studios/VibeCode-Protocol-Suite (27 stars, last pushed 3d ago), licensed ISC. It adds 32 tokens to every session and 864 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agent-recovery compared with skills from other repositories

agent-recovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-recoveryJ-StaR-Films-Studios/VibeCode-Protocol-SuiteSkill273d agoISCA32Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28ktodayMITA11Claude Code
diagnosing-bugsvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA50Claude Code, Codex
error-translatorlaolaoshiren/claude-code-skills-zhSkill927yesterdayMITA121Claude Code
log-analyzerlaolaoshiren/claude-code-skills-zhSkill927yesterdayMITA103Claude Code
eslint-fixlaolaoshiren/claude-code-skills-zhSkill927yesterdayMITA79Claude Code
perf-profilerlaolaoshiren/claude-code-skills-zhSkill927yesterdayMITA78Claude Code