session-recover
Recover lost Claude Code session context by merging duplicate project directories.
What this skill does for you
Recover lost Claude Code session context by merging duplicate project directories. Finds session/memory dirs under ~/.claude/projects/ that point at the same logical project from different cwd-encoded paths (e.g. /mnt/work/foo vs ~/Projects/foo cwd produces two separate namespaces). Unifies memory into the canonical dir, archives orphaned jsonl transcripts, and captures the lesson as a feedback memory so the split doesn't repeat. Use when: 'merge sessions', 'recover lost context', 'fix duplicate session dirs', 'session memory split', 'memory dir is empty but I added things', 'two project dirs', 'recover legacy memories from before a folder move', 'stale orphan memory namespace', or any time you find a populated memory dir at the "wrong" path and an empty one at the canonical path.
Quoted from the skill description in the pinned sourceWho made it
Use it with Edge
Set up Edge for me: read getedge.cc/SKILL.md and follow it. Then use Edge to load the session-recover skill from ngmeyer/skills.
Paste it into Claude, ChatGPT, Codex or Cursor.
Or read the skill source first.
Security evidence
| Scanner | Date | Result | Findings |
|---|---|---|---|
| Edge static checks | 2026-09-27 | Pass | 0 |
| Cisco skill-scanner | 2026-09-27 | Pass | 0 |
| Semgrep Edge rules | 2026-09-27 | Pass | 0 |
Static scans check the code, not how well the skill works.
Scanner scope, raw findings and mirrored provider records
Edge static checks (Edge-run): edge-static/1.0.1. Scope: Static patterns for remote execution, credentials with network sends, obfuscation, prompt overrides, hidden Unicode, binaries and persistence. Revision: 701dfb8bd2ffe22f6aeccc310b6eea3b20462bf1. Raw findings: . Counted findings: .
Cisco skill-scanner (Edge-run): cisco-skill-scanner/2.1.0. Scope: Local static, YARA, pipeline and behavioral analyzers; no LLM or AI Defense analysis. Revision: 701dfb8bd2ffe22f6aeccc310b6eea3b20462bf1. Raw findings: 2. Counted findings: .
Semgrep Edge rules (Edge-run): semgrep/1.178.0+edge-rules.c15016a36fd3+offline-v1. Scope: Six Edge-authored static rules with Semgrep CE; offline execution and metrics disabled. Semgrep-maintained rules excluded. Revision: 701dfb8bd2ffe22f6aeccc310b6eea3b20462bf1. Raw findings: . Counted findings: .
Source and licence
- Repository
- https://github.com/ngmeyer/skills
- Pinned skill file
- View source at revision
- Revision
- 701dfb8bd2ffe22f6aeccc310b6eea3b20462bf1
- Package hash
- sha256:bc99fbf6e97fab218f11327785d21191e8eb1bc6faa0799e43546af4c86c72c8
- Licence
- MIT