session-wrap

Executes an end-of-session protocol to capture learnings and update scratchpad files.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/wilsto/claude-code-starter-kit --skill session-wrap-wilsto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-wrap
Source: https://github.com/wilsto/claude-code-starter-kit/tree/main/.claude/skills/session-wrap
Command: npx skills add https://github.com/wilsto/claude-code-starter-kit --skill session-wrap-wilsto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that no work is lost at the end of a session by capturing learnings, updating next steps, and checking for uncommitted changes, preventing context loss after /compact or session restarts.

Core Features & Use Cases

  • End-of-Session Protocol: Provides a structured wrap-up for each session.
  • Learning Capture: Identifies and stores key learnings in memory/patterns.md.
  • Next Steps Planning: Updates memory/scratchpad.md with actionable items for the next session.
  • State Management: Checks for uncommitted changes and prompts for updates to polaris.md and documentation.

Quick Start

Run the session-wrap skill to finalize your current work session and save key takeaways.

Frequently Asked Questions about session-wrap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture learnings and prevent context loss after an AI session restart?

To prevent context loss after an AI session restart, execute an end-of-session protocol that captures learnings, updates next steps in a scratchpad, and verifies uncommitted changes. This structured wrap-up ensures state persistence and maintains session continuity across interactions.

What is the best way to manage uncommitted changes and update documentation before ending a development session?

The best way to manage uncommitted changes before ending a development session is to run a structured wrap-up protocol that performs git status checks, identifies pending modifications, and prompts for necessary updates to documentation to secure your workflow state.

How do I persist AI workflow state and plan next steps across multiple coding sessions?

To persist AI workflow state and plan next steps across coding sessions, append identified key learnings to a patterns file and update a scratchpad with actionable items. This state persistence approach bridges context gaps between consecutive interactions.

Does session state persistence require manual git integration checks before compacting context?

Session state persistence relies on automated git integration checks rather than manual verification. The wrap-up protocol automatically executes git status checks to verify uncommitted changes, ensuring no work is lost before context compaction or session termination occurs.

When should I use an end-of-session protocol for knowledge capture and workflow automation?

You should use an end-of-session protocol for knowledge capture when concluding any AI coding interaction that generated new learnings or uncommitted changes. It is essential for workflow automation when you need to preserve state continuity and store patterns for future reference.

Why does my AI productivity drop after restarting a session, and how can a scratchpad help?

AI productivity drops after restarting a session due to context loss and missing state persistence. Using a scratchpad to store actionable next steps and capturing learnings in a patterns file maintains knowledge continuity, preventing the AI from losing track of previous workflow states.