af-session-recovery

Restore agent work context from current-task.md after session interruptions.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/GainInsightDev/websites --skill af-session-recovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: af-session-recovery
Source: https://github.com/GainInsightDev/websites/tree/main/.claude/skills/af-session-recovery
Command: npx skills add https://github.com/GainInsightDev/websites --skill af-session-recovery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that your work progress is not lost due to unexpected interruptions, session restarts, or context compaction, allowing you to pick up exactly where you left off.

Core Features & Use Cases

  • State Restoration: Recovers the agent's operational state and task context.
  • Compaction Handling: Manages transitions across session compaction boundaries.
  • Use Case: After a system restart or a scheduled compaction event, this Skill will automatically restore your current task and its associated progress, enabling immediate continuation of your work without manual reorientation.

Quick Start

Use the af-session-recovery skill to restore the work context from the current task file.

Frequently Asked Questions about af-session-recovery

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

FAQPage Schema
How do I restore agent work context after a session restart?

Session recovery for agents involves restoring the operational state from a persistent file like current-task.md. This Skill automatically retrieves your task context after a restart, ensuring immediate continuation of your work without manual reorientation.

What is context compaction and how does it affect task continuity?

Context compaction is a system event that can disrupt task continuity by altering session boundaries. This Skill manages compaction handling by actively restoring work state across these boundaries, ensuring your task progress is not lost during the transition.

How do I maintain persistent work state for seamless task resumption?

Maintaining a persistent work state involves saving task context to a file like current-task.md. This Skill satisfies the requirements for persistent work state by automatically retrieving and applying this saved data to enable seamless task resumption.

Does session recovery work automatically after unexpected interruptions?

Yes, session recovery works automatically after unexpected interruptions. By leveraging state restoration from the current-task.md file, the Skill automatically recovers your progress and operational state without requiring manual intervention to rebuild your context.

What's the best way to manage state restoration across compaction boundaries?

The best way to manage state restoration across compaction boundaries is to use a dedicated recovery mechanism. This Skill specifically handles compaction events by applying state restoration techniques, ensuring your work context survives these transitions.