recover-session

Diagnose project failures and restore stability using Git rollback, stash, and bisect commands.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/0xobat/claude-skills --skill recover-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recover-session
Source: https://github.com/0xobat/claude-skills/tree/main/dev/skills/recover-session
Command: npx skills add https://github.com/0xobat/claude-skills --skill recover-session

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured protocol to diagnose and fix issues when your project's automated verification fails, code breaks unexpectedly, or the project state becomes unstable, preventing data loss and ensuring a return to a working condition.

Core Features & Use Cases

  • Diagnostic Protocol: Guides you through assessing failures, identifying the scope of impact, and determining the best recovery strategy.
  • Git Integration: Leverages Git commands for safe rollback, stashing, and bisecting to isolate regressions.
  • Use Case: When verify.sh starts failing after a new feature implementation, use this Skill to systematically find the root cause, revert only the necessary changes, and restore the project to a stable state without losing previous work.

Quick Start

Use the recover-session skill to diagnose and fix failing tests after the last commit.

Frequently Asked Questions about recover-session

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

FAQPage Schema
How do I rollback broken code to a known good state without losing work?

Git bisect isolates code regressions by systematically checking out commits, narrowing down the exact commit that introduced the breaking change so you can target the specific failure.

What is the best way to diagnose why automated verification scripts are failing?

Yes, Git stashing allows you to temporarily shelf uncommitted work, enabling you to safely revert unstable commits and restore the project to a stable state before reapp your changes.

How do I isolate a regression when tests start failing after a new commit?

Before attempting code rollback, you need a Git repository with a commit history and failing automated verification scripts to diagnose the failure scope and determine the recovery strategy.

When should I avoid using Git revert for code recovery?

You should avoid Git revert when the failure scope is unclear, instead using a diagnostic protocol to assess the impact first and determine if stashing or bisecting is safer for your recovery.