end-session

Extract actionable learnings and workflow improvements from conversation history into project memory files.

2|Updated May 31, 2026
One-click install
npx skills add https://github.com/kangning-huang/knhuang-research-skills --skill end-session-kangning-huang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: end-session
Source: https://github.com/kangning-huang/knhuang-research-skills/tree/main/skills/end-session
Command: npx skills add https://github.com/kangning-huang/knhuang-research-skills --skill end-session-kangning-huang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents the loss of valuable project-specific knowledge and workflow optimizations that occur during a session, while simultaneously preventing memory bloat by curating only high-value, reusable information.

Core Features & Use Cases

  • Automated Memory Capture: Scans the conversation history for error patterns, workflow shortcuts, and project-specific insights.
  • Drift Correction: Automatically synchronizes method.md and agenda.md if scripts were modified during the session.
  • Use Case: After debugging a complex data pipeline, use this skill to distill the fix into a permanent note in MEMORY.md so future sessions can avoid the same pitfalls.

Quick Start

Run the end-session command to scan your current conversation for reusable insights and update your project memory file.

Frequently Asked Questions about end-session

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

FAQPage Schema
How do I save project insights and workflow learnings before clearing memory?

To save project insights before clearing memory, you can extract actionable learnings and workflow improvements from your conversation history and append them to project-specific memory files. This ensures session continuity without losing valuable knowledge.

What is the best way to prevent memory bloat while capturing session knowledge?

Preventing memory bloat requires curating only high-value, reusable information from your session. By scanning specifically for error patterns, tool-specific gotchas, and structural insights, you can maintain concise documentation without retaining unnecessary data.

How do I automatically synchronize method.md and agenda.md after modifying scripts?

To automatically synchronize method.md and agenda.md after script modifications, you can trigger a drift correction process that scans the conversation history and updates documentation to maintain consistency across project files.

Can I use this workflow to extract error patterns from conversation history?

Yes, you can extract error patterns from conversation history by scanning the session transcript. The process identifies tool-specific gotchas and structural insights, writing them into permanent notes for future reference.

What file permissions are needed to update project memory and documentation files?

Updating project memory and documentation files requires read and write access to project-level memory structures. This ensures the tool can both scan existing content and append new workflow shortcuts or debugging insights.

Does extracting actionable learnings work for debugging complex data pipelines?

Extracting actionable learnings works effectively for debugging complex data pipelines. It distills the applied fixes into permanent notes in your memory file, ensuring future sessions avoid the same pitfalls and structural errors.