close-session

close-session is a skill for Claude Code from awrshift/claude-memory-kit. It costs 64 tokens per session (864 once invoked), scanned A, a copy of close-session, MIT.

An end-of-session routine for reviewing a coding session and updating a repository's memory files. It records useful observations, checks for repeated patterns, and prepares a handoff for the next session.

In plain words
What is it for?
Use it when finishing work to capture session notes, review recurring practices, update MEMORY.md, prepare handoff notes, and propose lasting documentation changes for approval.
Why use it?
It reduces the chance of losing decisions or useful context between sessions. It also helps keep long-term notes focused by proposing which repeated patterns should become documented rules or concepts.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the memory-kit plugin — 8 skills, 4 agents, 4 hooks shipped together

Good fit Use it when finishing work to capture session notes, review recurring practices, update MEMORY.md, prepare handoff notes, and propose lasting documentation changes for approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awrshift/claude-memory-kit/close-session
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add awrshift/claude-memory-kit --skill close-session
Clone the repo
git clone --depth 1 https://github.com/awrshift/claude-memory-kit

Made for: Claude Code.

Or install memory-kit, the plugin that ships this one along with the rest of its 8 skills, 4 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for close-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/awrshift/claude-memory-kit/close-session/github.svg)](https://agentmods.dev/skills/awrshift/claude-memory-kit/close-session)
Your own site
<a href="https://agentmods.dev/skills/awrshift/claude-memory-kit/close-session"><img src="https://agentmods.dev/badge/skills/awrshift/claude-memory-kit/close-session/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for close-session

Your own site · 80×15
<a href="https://agentmods.dev/skills/awrshift/claude-memory-kit/close-session"><img src="https://agentmods.dev/badge/skills/awrshift/claude-memory-kit/close-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 864 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00864
Opus 5.5 $0.00026 $0.00346
Sonnet 5.5 $0.00013 $0.00173
Haiku 4.5 $0.00006 $0.00086

Measured 1mo ago against content hash b6555f756a66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

close-session scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to close-session — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/memory-kit/skills/close-session/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/close-session — the end-of-session ritual

You close the session in four steps. Don't just dump — audit. Everything you write, you announce briefly; anything promoted to rules/concepts needs the user's verbal "yes" first.

Step 1 — Capture what's new

Scan this session for observations worth keeping. Append each to .claude/memory/MEMORY.md as a ONE-LINE [YYYY-MM-DD]-prefixed entry. Short, scannable, no essays (long rationale belongs in a concept article, step 2).

Step 2 — Audit & promote (the valuable part)

Read the date-tagged entries in MEMORY.md. Look for repetition: did this pattern appear on 3+ different dates? Surface 2-4 candidates, be specific: "noticed [date], [date], [date] you said X — codify as a rule or a concept article?"

  • User says yes → write knowledge/concepts/<topic>.md (facts + rationale; frontmatter per knowledge/index.md spec) or .claude/rules/<name>.md (mechanical always/never constraint; only for patterns stable 6+ months). Update knowledge/index.md (one line per concept).
  • Promoted or long-absorbed entries get PRUNED from MEMORY.md — that's how it stays under its caps (180 lines / 32 KB / 3000 chars per line).
  • Writing a fact into a second place? reference/doc-governance.md — one SSOT per fact, and when a fact changes you grep its restatements in the same pass. A product or architecture decision goes to the ledger instead — projects/<name>/decisions-log.md, format in reference/decisions-log.md. A plan, a spec, a research finding or a QA record is NOT memory: it belongs in that project's folder, per the map in its README.md.

Step 3 — Refresh the MEMORY.md header

The header (everything above the first ---) is «current state of work», 2-3 sentences, REPLACED every close — never a chronicle of past sessions. Per-session detail lives in the handoff, not stacked in the header.

Step 4 — Write the handoff

Copy context/handoffs/HANDOFF-TEMPLATE.md → context/handoffs/<topic>-<YYYY-MM-DD>.md and fill its five sections (what was done · where things stand · memory updates · next steps · opening note). The SessionStart hook injects the newest handoff next time — this file IS the "remember where we left off" mechanism.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 56 lines · 64 tokens per session scan A b6555f756a66

Subscribe to this mod's changes

close-session is a skill published in the GitHub repository awrshift/claude-memory-kit (31 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 864 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to close-session, differing in 13 lines, and is treated as a copy.

Related

Other skills, from other repositories

Vizra ADK Memory System

Implement persistent memory, session context, and vector memory (RAG) for AI agents.

vizra-ai/vizra-adk · 24 tokens

nav-compact

Clear conversation context while preserving knowledge via context marker. Use when user says "clear context", "start fresh", "done with this task", or when approaching token limits.

qf-studio/navigator · 38 tokens

adr-ops

Author, index, and lint Architecture Decision Records — append-only memory that recovers the WHY behind a system's shape. Triggers on: adr, architecture decision record, decision log, record this decision, supersede an adr, why was this decided, adr template, next adr number.

0xDarkMatter/claude-mods · 62 tokens

hive-mind-advanced

Queen-led collective-intelligence coordination with consensus mechanisms and persistent shared memory. Use when orchestrating a large swarm of agents under a lead coordinator, building consensus across agents, or maintaining durable cross-agent memory.

frankxai/claude-skills-library · 47 tokens

creator-productivity

Task management and workspace memory for creative work sessions. Manages a TASKS.md file for project tracking, a two-tier memory system (CREATOR.md + creator-memory/), and a daily sprint structure. Use when organizing creative projects, tracking content tasks, or starting a focused work session.

frankxai/claude-skills-library · 62 tokens

memory-prune

Manual reviewable prune of stale memory entries. Lists project entries older than 30 days with content preview; Frank decides per-entry [keep | archive | pin]. Keeps MEMORY.md under the auto-load 200-line truncation. Use when MEMORY.md exceeds 180 lines or session-end after a heavy work week.

frankxai/claude-skills-library · 67 tokens