Save and resume a Claude Code session with a handoff prompt
Watch one skill turn a nearly full Claude Code session into a markdown prompt that a fresh session picks up from.
Who it's for: Anyone running long sessions in Claude Code or another coding agent who is getting close to the context window limit.
The problem: Letting auto-compaction run is a risk when the remaining tasks need precision. Even a model with 1 million tokens of context, like Opus 4.8, still reaches that limit.
The next-session-prompt skill summarizes the session and writes the remaining work to a markdown file in a git-ignored prompts folder. A new terminal session reads that file and gets the objective, outstanding follow-ups, current state and where to start.
Takeaways:
- Run the skill when the context window is nearly full.
- Keep handoff prompts out of the repo with a git-ignored folder.
- Start the next session by pointing it at the saved prompt.
- Ask your coding agent to install the skill globally from the repo.