recover
Skill0 starsChanged 7 months agoMITView on GitHub
Recover work from a crashed or interrupted session. Use when Claude crashed mid-task, after an unexpected exit, when you see 'stale sessions detected', or when you lost context and need to figure out what was happening.
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Look for checkpoint files in .lifecycle/checkpoints/
- Distinctive: line 16
If found, present cognitive state alongside recovery data — not just "these files changed" but "you were doing X because Y"
- Very specific: line 20
Check for wip/ branches: git branch --list 'wip/*'
- Very specific: line 28
If user accepts: git merge --no-commit wip/[branch] then delete the wip branch
- Distinctive: line 29
If user declines: continue to Phase 1
- Very specific: line 33
Check ~/.claude/sessions/active-changes.log and ~/.claude/sessions/active-changes-*.log
- Very specific: line 34
If no logs found, note: "No session hooks detected.
- Distinctive: line 69
No checkpoints, no logs, no JSONs: "No crashed sessions.
- Distinctive: line 72
Not a git repo: skip file status analysis
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Recover Session
Recover work from a session that ended unexpectedly.
NOTE: For resuming planned features (with progress files), use /resume instead.
Phase 0: Check checkpoints
- Look for checkpoint files in
.lifecycle/checkpoints/ - If found, present cognitive state alongside recovery data — not just "these files changed" but "you were doing X because Y"
Phase 0.5: Check WIP branches
- Check for
wip/branches:git branch --list 'wip/*' - If found, present:
WIP safety branches found: wip/project-20260331-1445 (2h ago) — 3 files saved wip/project-20260331-1200 (5h ago) — 1 file saved - Offer: "Restore latest WIP branch? (merges saved files into current branch)"
- If user accepts:
git merge --no-commit wip/[branch]then delete the wip branch - If user declines: continue to Phase 1
Phase 1: Check crash logs (active-changes.log)
- Check
~/.claude/sessions/active-changes.logand~/.claude/sessions/active-changes-*.log - If no logs found, note: "No session hooks detected. Crash log recovery requires hooks that write to ~/.claude/sessions/active-changes.log. See continuum README for setup." Then skip to Phase 2.
- Parse
# SESSIONheaders forcwd,sid,started - Extract unique EDIT/WRITE file paths and COMMIT history
- Extract last
STATE:line - Determine each file's state via git:
git status --porcelain -- <file>→~still modifiedgit log --oneline --since="<started>" -- <file>→+committed- Neither →
xlost
- Present:
Crashed session recovered:
Feature: [name] | Task: [from checkpoint or STATE]
Checkpoint (if available):
Context: [what was happening]
Next: [what was planned next]
Files ([N] edits across [M] files):
~ src/api/routes.ts — still modified
+ src/middleware/auth.ts — committed (abc1234)
x tests/auth.test.ts — lost
Resume from here, start fresh with this context, or discard?- Resume → continue working, delete logs. Fresh → present as context. Discard → delete logs.
Phase 2: Legacy session JSON files
- Scan
~/.claude/sessions/session-*.jsonfor"status": "active" - Same recovery flow as Phase 1
Edge Cases
- No checkpoints, no logs, no JSONs: "No crashed sessions. Did you mean /resume?"
- Sessions older than 7 days: flag as "likely stale" but allow recovery
- Log with no EDIT/WRITE entries: show task only, note "no file changes tracked"
- Not a git repo: skip file status analysis
$ARGUMENTS
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- jamillazarev/multica-ops★ 11same name
- conorbronsdon/agent-skills★ 10same name
- conorbronsdon/agent-workspace★ 2same name
- garbageek/claude-plugins★ 1same name
- jamillazarev/opsinist★ 1same name
- OfficialDiLi/skills★ 1same name
- AR-Toqi/Mirai_mart★ 0same name
- dincho-kostadinov/invest-tracker-mvp★ 0same name
- dincho-kostadinov/spec-driven-development-pipeline★ 0same name
- eliphazbouye/skills★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use imprint, remember and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OfficialDiLiSkillimprint
After building any UI component, extract the visual patterns that matter for consistency and save them to ui-registry.md. So every component built after this one matches what came before.
Also in 7 projects that use this
LangChainSkillremember
Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.
Also in 7 projects that use this
Harut8Skillarchitect
Also in 8 projects that use this
AWSSkillmap
Map verified service capabilities against customer-provided control framework and threat model. Produces mapping-results.json, controls-catalog.md, and framework-mapping.md. Supports pluggable frameworks: CCMv4, NIST 800-53, CIS Benchmarks, ISO 27001, etc. Split into 4 focused sub-skills for better accuracy; this skill orchestrates them.
Also in 3 projects that use this
EffortlessMetricsSkillfeature
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 8 projects that use this
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

