Skip to content
Automation
Skill

/session-recovery

Detect and recover previous planning sessions, reconstructing lost context from persistent planning files.

From plugin
babysitter
1.8k200 skills3 agents21 commands1 MCP
Install
$ npx -y skills add a5c-ai/babysitter --skill session-recovery --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/session-recovery

Context preview

The summary Claude sees to decide when to auto-load this skill.

Detect and recover previous planning sessions, reconstructing lost context from persistent planning files.

SKILL.md

session-recovery.SKILL.md
graph:
  domains: [domain:software-engineering]
  skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]
  roles: [role:tech-lead, role:backend-engineer]

Session Recovery

Detect and recover previous planning sessions, reconstructing lost context from persistent planning files.

Agent

Session Manager - `pwf-session-manager`

Workflow

1. Check project path for existing planning files 2. Check ~/.claude/projects/ for session data 3. Find last planning file update timestamp 4. Extract post-update conversation context (lost context) 5. Build catchup report summarizing accomplished work 6. Merge recovered state into current session

Inputs

  • `projectPath` - Root path for planning files
  • `sessionId` - Session identifier for recovery
  • `previousSessionPath` - Path to previous session (optional)

Outputs

  • Recovery report with completed phases and lost context estimate
  • Merged session state with preserved checkboxes
  • Catchup summary for manual sync

Process Files

  • `planning-orchestrator.js` - Session recovery at startup
  • `planning-session.js` - Full recovery pipeline
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

Get the whole plugin

Other skills on babysitter.