What problem does it solve?
It prevents lost context and messy project state when a session ends by ensuring tasks, lessons, and decisions are captured accurately and only when something truly changed.
Core Features & Use Cases
- Project-aware cleanup: Detects the projects touched this session (via current working directory and presence of project markers like tasks/ or CLAUDE.md) and applies updates only where relevant.
- Selective task updates: Updates tasks/todo.md to mark completed items, add new ones, and move blocked work into a clearly labeled blocked section with reasons.
- Session knowledge capture: Appends meaningful learnings to tasks/lessons.md and records significant decisions to docs/decisions.md when it exists.
- Cross-project memory promotion: Promotes broadly reusable lessons and references to the global memory store at ~/.claude/projects/-home-duchats/memory/ while avoiding duplicates and project-specific implementation details.
- Operational safeguards: Checks for stray directories in ~/ and warns about uncommitted changes before writing .last_session timestamps used by /resume.
Quick Start
Use the wrap skill right before ending a session (for example, before you run /exit) to update the touched project files and generate a concise handoff.