close-session

Audit daily session patterns and update persistent memory files.

28|7|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/awrshift/claude-memory-kit --skill close-session-awrshift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: close-session
Source: https://github.com/awrshift/claude-memory-kit/tree/main/.claude/skills/close-session
Command: npx skills add https://github.com/awrshift/claude-memory-kit --skill close-session-awrshift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of context loss and memory bloat by providing a structured ritual to audit session progress, promote patterns to long-term knowledge, and create a handoff note for future sessions.

Core Features & Use Cases

  • Pattern Promotion: Identifies recurring user patterns across sessions and promotes them to formal rules or concept articles.
  • Memory Management: Automatically prunes and maintains the MEMORY.md file to ensure it stays within size constraints.
  • Session Handoff: Generates a concise summary of work completed and next steps, ensuring the AI starts the next session with full context.

Quick Start

Trigger the session closing ritual by telling the agent that we are done for today.

Frequently Asked Questions about close-session

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

FAQPage Schema
How do I prevent context loss when handing off an AI session?

To prevent context loss during session handoff, you need to audit daily patterns and generate a concise summary of completed work and next steps. This ensures the AI starts the next interaction with full continuity and updated persistent memory files.

What is the best way to manage AI memory bloat in persistent knowledge files?

Managing AI memory bloat requires implementing strict pruning and validation logic on your knowledge base entries. This maintains memory health by automatically enforcing size constraints on persistent files like MEMORY.md to prevent context overload.

How do I promote recurring user patterns to long-term knowledge management rules?

Promoting recurring user patterns to long-term knowledge management rules involves identifying repeated behaviors across sessions and promoting them to formal rules or concept articles. This systematically captures workflow patterns into persistent memory structures.

Do I need a specific framework to automate session handoff documentation?

You do not need a specific framework to automate session handoff documentation, as this process requires no external dependencies. It operates by triggering a closing ritual that updates persistent memory files directly within your existing software engineering environment.

When should I run a session closing ritual for context optimization?

You should run a session closing ritual for context optimization at the end of your workday or when an interaction is complete. This triggers the lifecycle management of knowledge base entries and ensures proper session handoff documentation for future interactions.