# Close session

> Close session is an open-source agent skill for knowledge and memory. Runs an end-of-session audit that promotes repeated patterns and writes a handoff. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/awrshift/agent-memory-kit/tree/main/plugins/memory-kit/skills/close-session
- **Repository:** https://github.com/awrshift/agent-memory-kit
- **GitHub stars:** 33
- **License:** MIT
- **Skill name:** close-session
- **Collection:** https://github.com/awrshift/agent-memory-kit
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks the agent through closing a working session in four steps: capturing new observations into a memory file as dated one-line entries, auditing those entries for patterns that recur across several dates, refreshing a short header that states the current state of work, and writing a handoff note for the next session. Promotion of a pattern into a rule or concept article waits for the user's explicit agreement.

The instructions also cover housekeeping checks done in about thirty seconds, such as flagging stale experiment folders, verifying backlog statuses, keeping project maps current and checking memory size limits. Length limits for the handoff and header are spelled out, and projects may adapt the close with their own checklist.

The skill is plain instructions with no scripts. It expects a project that keeps a memory file and knowledge folder in the layout the skill describes, and it is written for Claude Code, where it is published as part of a plugin marketplace.

## When your agent uses it

> End-of-session ritual — audit today's patterns against accumulated memory, propose promotions, refresh MEMORY.md, and write the session handoff. Use when the user says "/memory-kit:close-session", "закрой сессию", "закрываем", "we're done for today", "wrap up".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/awrshift/agent-memory-kit/tree/HEAD/plugins/memory-kit/skills/close-session)
- [Asks for: Read, Grep, Glob, Edit(.claude/memory/**), Edit(context/handoffs/**), Edit(knowledge/**)](https://github.com/awrshift/agent-memory-kit/blob/HEAD/plugins/memory-kit/skills/close-session/SKILL.md)
- [License: MIT](https://github.com/awrshift/agent-memory-kit/tree/HEAD/plugins/memory-kit/skills/close-session)

## Features

- **Session observation capture:** Records new observations as dated one-line entries filed under topic headings in the memory file.
- **Pattern audit and promotion:** Finds observations repeated across three or more dates and proposes them as rules or concept articles.
- **Memory header refresh:** Replaces a short current-state header so it never becomes a chronicle of past sessions.
- **Session handoff writing:** Creates a dated handoff note that the next session start can pick up.
- **Housekeeping checks:** Quick checks on stale experiments, backlog statuses, project maps and memory size caps.

## Good for

- Wrap up today's work and save notes for tomorrow
- Find repeated mistakes across recent sessions and turn them into rules
- Trim the memory file so it stays under its size limits
- Write a handoff summarizing what was done and what comes next

## Install

### Claude Code

This skill ships in the `memory-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add awrshift/agent-memory-kit
/plugin install memory-kit@memory-kit
```

Or copy only this skill to `~/.claude/skills/close-session`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/close-session &&
cp -R "$tmp/plugins/memory-kit/skills/close-session" ~/.claude/skills/close-session &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/close-session` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/close-session` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/close-session &&
cp -R "$tmp/plugins/memory-kit/skills/close-session" ~/.agents/skills/close-session &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/close-session` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/close-session` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/close-session &&
cp -R "$tmp/plugins/memory-kit/skills/close-session" ~/.cursor/skills/close-session &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/close-session` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/awrshift/agent-memory-kit.git --path plugins/memory-kit/skills/close-session
```

Or copy the folder to `~/.gemini/skills/close-session` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/close-session`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/close-session &&
cp -R "$tmp/plugins/memory-kit/skills/close-session" ~/.copilot/skills/close-session &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/close-session` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git
```

Then copy `agent-memory-kit/plugins/memory-kit/skills/close-session` into your agent's skills folder as `close-session`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Close session trigger?

It triggers when the user says phrases such as /memory-kit:close-session, "we're done for today", "wrap up", or the Russian equivalents listed in its description.

### Does Close session change files without asking?

It may append to the memory file and write handoff notes, but promoting an observation into a rule or concept article requires the user's verbal yes.

### What tools does Close session use?

It is allowed to use Read, Grep, Glob, and Edit restricted to the memory folder, the handoffs folder and the knowledge folder.

### Does Close session include scripts?

No, the skill folder contains a single SKILL.md file and no scripts.

### How do I install Close session in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/close-session to use it in all your projects, or to .claude/skills/close-session in one project. Or install the memory-kit plugin, which includes it: /plugin marketplace add awrshift/agent-memory-kit, then /plugin install memory-kit@memory-kit.

### Does Close session 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 Close session?

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 Close session?

The closest alternatives to Close session are Scan sessions and learn, Nemo rl session memory, Desk journal, Handoff and Memory sync.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Scan sessions and learn](https://ai-powered.com/skills/scan-sessions-and-learn): Scan sessions and learn is an open-source agent skill for developer tools.
- [Nemo rl session memory](https://ai-powered.com/skills/nemo-rl-session-memory): Nemo rl session memory is an open-source agent skill for knowledge and memory.
- [Desk journal](https://ai-powered.com/skills/desk-journal): Desk journal is an open-source agent skill for knowledge and memory.
- [Handoff](https://ai-powered.com/skills/handoff-oneafrikan): Handoff is an open-source agent skill for developer tools.
- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Recap](https://ai-powered.com/skills/recap-onebrain-ai): Recap is an open-source agent skill for knowledge and memory.
- [Claude mem](https://ai-powered.com/skills/claude-mem-smartworldarafath): Claude mem is an open-source agent skill for knowledge and memory.
- [Code handoff](https://ai-powered.com/skills/code-handoff): Code handoff is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/close-session
