
Kmg session wrap
Prompts the agent to offer a session summary when you wrap up or near context limits
Kmg session wrap is an open-source agent skill for knowledge and memory. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 6
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Kmg session wrap
This skill tells the agent to offer a wrap-up summary when a session is ending, whether because the user says they are stopping, the context window is nearly full, a milestone is reached or a PR is pushed. It also looks for signals such as unchecked plan items, open draft decisions and lesson-worthy commits that lack a matching lesson file, and mentions them in the prompt.
The skill is coordinated with a Stop hook through a temporary flag file so the user is not prompted twice. It also checks for a same-day snapshot flag and adjusts the wording if a partial summary already exists. On Claude Code the coordination uses files in /tmp, and the skill describes equivalent mechanisms for other platforms.
After the summary is written, the skill scans recently changed decision and enhancement files for Open Questions sections, deduplicates them and adds an Open Items section. It expects a knowledge folder layout with plans, decisions, lessons-learned and enhancements directories, and it relies on git history.
When your agent uses it
Prompt for session summary when user indicates they are stopping work or approaching context limits
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the kmgraph plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add technomensch/knowledge-graph
/plugin install kmgraph@knowledge-management-graphOr copy only this skill to ~/.claude/skills/kmg-session-wrap:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kmg-session-wrap &&
cp -R "$tmp/skills/kmg-session-wrap" ~/.claude/skills/kmg-session-wrap &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/kmg-session-wrap inside it instead.
Copy the skill folder to ~/.agents/skills/kmg-session-wrap to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kmg-session-wrap &&
cp -R "$tmp/skills/kmg-session-wrap" ~/.agents/skills/kmg-session-wrap &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/kmg-session-wrap inside it instead.
Copy the skill folder to ~/.cursor/skills/kmg-session-wrap to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kmg-session-wrap &&
cp -R "$tmp/skills/kmg-session-wrap" ~/.cursor/skills/kmg-session-wrap &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/kmg-session-wrap inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/technomensch/knowledge-graph.git --path skills/kmg-session-wrapOr copy the folder to ~/.gemini/skills/kmg-session-wrap yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kmg-session-wrap:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kmg-session-wrap &&
cp -R "$tmp/skills/kmg-session-wrap" ~/.copilot/skills/kmg-session-wrap &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/kmg-session-wrap inside it instead.
Get the folder:
git clone --depth 1 https://github.com/technomensch/knowledge-graph.gitThen copy knowledge-graph/skills/kmg-session-wrap into your agent's skills folder as kmg-session-wrap. Agents that support SKILL.md read one folder per skill.
What it does
- Session end detection
- Recognises stop phrases, context-limit thresholds, milestones and pushed pull requests as cues to offer a wrap-up.
- Open work scanning
- Looks for unchecked plan items, proposed or draft decisions and commits lacking lesson notes.
- Duplicate prompt prevention
- Uses a temporary flag shared with a Stop hook so the wrap-up prompt is not repeated.
- Snapshot awareness
- Changes the prompt wording when a session snapshot was already taken earlier that day.
- Open items aggregation
- Collects Open Questions from changed decision and enhancement files into one deduplicated list.
Good for
- Wrap up today's coding session with a summary
- Check whether my plan still has unfinished steps before I stop
- Capture lessons from recent fixes before closing the session
- Collect open questions from recently changed decision records
Kmg session wrap FAQ
What does Kmg session wrap need to run?
It expects a knowledge folder with plans, decisions, lessons-learned and enhancements directories, a git repository for the diff scan, and on Claude Code the Stop hook flag mechanism in /tmp.
Does Kmg session wrap change any files?
The skill describes dispatching to a session summary agent and adding an Open Items section to the summary. It does not describe editing other files directly.
When does the prompt appear?
The skill triggers when the user signals they are stopping, the context nears about 180K tokens, a PR is pushed or a milestone is completed.
How do I install Kmg session wrap in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/kmg-session-wrap to use it in all your projects, or to .claude/skills/kmg-session-wrap in one project. Or install the kmgraph plugin, which includes it: /plugin marketplace add technomensch/knowledge-graph, then /plugin install kmgraph@knowledge-management-graph.
Does Kmg session wrap run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Kmg session wrap?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Kmg session wrap?
The closest alternatives to Kmg session wrap are Close session, Wrapup, Session memory, Recap and Remember.
Where this comes from
- Description: from the skill's own SKILL.md.
More from technomensch/knowledge-graph

Prompts the agent to capture architectural decisions as Architecture Decision Records
- Open source
- 6 GitHub stars
- Developer tools

Lets your agent search a knowledge graph for past decisions and solved problems
- Open source
- 6 GitHub stars
- Knowledge and memory

Makes the agent check a project's knowledge graph for prior decisions before recommending
- Open source
- 6 GitHub stars
- Knowledge and memory

Routes 'capture that' and 'remember that' requests to memory, lessons or ADRs
- Open source
- 6 GitHub stars
- Knowledge and memory

Routes explicit doc-update requests to the right knowledge-graph update command
- Open source
- 6 GitHub stars
- Developer tools

Finds docs affected by code changes before you push, PR or ship
- Open source
- 6 GitHub stars
- Developer tools






