⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

version unknown

close-session

awrshift@awrshift⭐ 34 stars· last commit 16d ago· 1 open issues

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".

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐⭐ 34 on GitHubGitHub ↗

Growing

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Claude Memory Kit

Claude Memory Kit

Built-in memory decides what to remember. This one asks.

Claude Memory Kit is a Claude Code plugin that gives your coding agent a memory made of plain text files in your own folder. Session two opens with "you were on Nestlé, the client hates em-dashes, next step: the Q3 brief" — without you explaining anything again. The agent notes small facts as dated lines and tells you; nothing becomes a rule or a knowledge article until you say yes. No database, no service, no API key. An independent project, not made or endorsed by Anthropic.

Optional second half, for people who delegate to subagents: a method that ships with it — specs written as files before work starts, a subagent's report treated as a claim until checked, review findings that turn into checks.

Version License: MIT Claude Code plugin

On this page: How it works · Install · What is inside the plugin · What it creates in your folder · The method · Why not built-in memory · Privacy and cost

How it works

How Claude Memory Kit works: you talk, the agent writes plain files in your folder, hooks load them at the next start

  1. You talk. "We're working on Nestlé." "The client hates em-dashes." You never open a memory file.
  2. The agent writes. Something worth keeping becomes one dated line in MEMORY.md, and the agent tells you ("saved", with the line). The work itself (backlog, specs, research, decisions) goes into that client's own folder, projects/<client>/.
  3. You close the day. Say "we're done for today". The agent looks for patterns across dates ("you rejected em-dashes on four different days, make it a rule?"), writes what you approve, and leaves a handoff note.
  4. Tomorrow starts already knowing. At the next session start a hook loads the memory, the newest handoff and the knowledge index. Nothing becomes a rule without your yes, and every line carries its date, so a stale fact looks stale.

Install

Inside the folder you work in, in Claude Code:

/plugin marketplace add awrshift/agent-memory-kit
/plugin install memory-kit@memory-kit
/memory-kit:setup

setup reads what the folder already has and proposes before writing anything; your CLAUDE.md stays yours. Git is optional. To upgrade later: claude plugin marketplace update memory-kit, then claude plugin update memory-kit@memory-kit (the full id is needed), and restart the session. Upgrades never touch your files.

What is inside the plugin

A plugin install hides its file tree, so here is all of it.

What is inside the plugin: seven hooks, ten skills, four agents

Hooks — run by themselves

HookWhenWhat it does
session-start.pyevery session start, and after a compactionLoads the working agreement, your MEMORY.md, the newest handoff and the knowledge index. Warns when memory is over its caps, when a path in memory no longer exists, when a spec is waiting for your ratification, and when your project wires its own copy of a kit hook (it would run twice).
pre-compact.shbefore the conversation is compactedA manual /compact waits until memory is saved and inside its caps. An automatic compaction is never blocked (that would fail your request); if it ran over unsaved memory, the next context opens with "save memory now".
protect-tests.pybefore a file editAsks before an edit that could weaken an existing test: an assertion changed or removed, a .skip or .only added. New tests pass silently.
guard-git.pybefore a shell commandStops force push, push --mirror, reset --hard, clean -f, branch -D, checkout .. --force-with-lease passes.
guard-secrets.pybefore a read, edit or shell commandKeeps .env files, keys and certificates out of the transcript, whether by a file tool, a shell command or a redirection. One exception: a single literal echo or printf appending a line to .env.
guard-zsh-split.pybefore a shell command, in zsh onlyCatches a variable that zsh will NOT split into words the way bash does, before the command silently does the wrong thing.
session-end.shwhen the session endsWrites one timestamp line, nothing else.

The guards for git and secrets block the action if they crash or time out, instead of letting it through (Claude Code 2.1.295 or later; older versions accept the setting but let the action through). Each guard names its opt-out variable. In a folder that never ran setup, the hooks write nothing. Shared code in hooks/lib/: cmdparse.py (one shell-command parser for every guard), rails.py (permission settings facts), stale-refs.py (finds paths in memory that no longer exist), legacy_hooks.py (spots a project's own copy of a kit hook), statefs.py and state.sh (write the kit's state files safely: never through a symlink, never outside the project).

Skills — you call them, or just say what you want

All are named /memory-kit:<name>, and each one also triggers from plain words. Until a skill runs, only its one-line description sits in the context.

SkillWhat it does
close-sessionThe end-of-day ritual: capture what is new, look for patterns on 3+ dates, promote on your yes, refresh the memory header, write the handoff.
memory-auditWhen memory trips a cap: a table of moves (to the knowledge base, to a rule, or out) for your approval, then the moves.
system-auditThe periodic health check of the whole setup through seven lenses; it measures which layers actually fired and proves each guard through its real wiring.
setupAdopts the kit in this folder, settles how it coexists with Claude Code's own auto memory, and offers safe permission rails.
tourA walkthrough of the kit on your own files.
session-reviewAn adversarial review of a session's work by an isolated reviewer that reads the actual files.
second-opinionIndependent reviewers on one high-stakes decision before it reaches you. If you already run your own review board, use that instead.
qa-sweepA multi-lens QA pass over your running product, every finding with repro steps.
documentA PR description, changelog entry, release note or postmortem, written only from the actual git diff.
code-syncAfter a merge, reconciles each spec's status with what the code now shows.

Agents — workers your agent delegates to

AgentModelWhat it does
executorOpusBuilds to a decided spec in its own git worktree. Never redesigns; any deviation is reported. Stops if a value it must produce has no source in the spec.
reconSonnetRead-only fact gatherer: raw facts with file and line, official sources for anything outside the repo. Never designs.
idea-validatorOpusAn isolated critic with none of your conversation, so it cannot anchor on your framing.
qaSonnetOne QA lens on the running product (user flow, edge states, honesty, contract, UX). Observes, never fixes.

Rule templates — the always-loaded part you opt into

A plugin cannot install rules, so setup offers these and copies them only on your yes.

TemplateWhat it holds
templates/rules/orchestration.mdNine invariants for working

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • plugins/memory-kit/skills/close-session/SKILL.md4.2 KBupstream ↗
    ---
    name: close-session
    description: 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".
    allowed-tools: Read, Write, Edit, Grep, Glob, Bash
    ---
    
    # /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).
    - **File each line under a TOPIC heading** of the patterns section (engineering, process,
      infra, the domain…) — create the topic if none fits. Never open a heading named after the
      session or the date (`### s66 (2026-09-25)`, `## Session 65 wrap`): the date lives in each
      line's prefix, the session narrative lives in the handoff (step 4). The SessionStart hook
      flags such headings.
    - **Don't capture what the always-loaded layer already says** (`CLAUDE.md`, rules without
      `paths:`) or a number whose source of truth lives elsewhere (a price table, a config) —
      point at the source instead of copying the value.
    
    ## 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.
    
    ## Also check (30 seconds)
    - **Experiment hygiene:** any `experiments/*-YYYYMMDD/` older than 30 days → ask: still active
      or close (distill → delete)?
    - **Backlogs:** `projects/*/BACKLOG.md` task statuses reflect today's reality — a `DONE`
      nobody verified is still `IN PROGRESS`.
    - **Project map:** anything you wrote today into a project folder is a row in that project's
      `README.md` map, and the map's `Last verified` is today's date.
    - **Specs vs code:** any spec still `building` after a merge, or any `assumed` spec → run
      `/memory-kit:code-sync` (it reconciles statuses from repo evidence; this ritual does not).
    - **Caps:** if MEMORY.md is near any cap, do a deeper prune now, not "next time".
    
    ## What NOT to do
    - Don't promote without the user's yes. Repetition makes a CANDIDATE, not a rule.
    - Don't stack "Prior session" paragraphs in the MEMORY header — replace it.
    - Don't group today's lines under a session heading — see Step 1.
    - Don't write a handoff longer than ~1 screen. It's a note, not a transcript.
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/awrshift-agent-memory-kit-plugins-memory-kit-skills-close-session.md

// REPO STATS

34 stars
1 open issues
Last commit: 16d ago