Persistent context management for Claude Code sessions. An agent skill from jeremylongshore/tons-of-skills-marketplace.

MITAuto-check passedAgent Workflows

Install Memory Kit

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill memory-kit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace memory-kit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/memory-kit .claude/skills/memory-kit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory-kit
GitHub stars
2.8k
Token cost
~890 tokens
SKILL.md length
359 words
Files
4 (incl. scripts, references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Persistent context management for Claude Code sessions. An agent skill from jeremylongshore/tons-of-skills-marketplace.

  • Works in 5 steps: On session start — check for existing… → On save (/memory-save) — scan the… → On update (/memory-update) — append the… → …
  • Starting a session
  • SKILL.md covers Current State, Overview, Prerequisites and Instructions, plus 5 more sections
  • Runs Shell scripts from its folder

What it does

Memory Kit is an agent skill from jeremylongshore/tons-of-skills-marketplace. Persistent context management for Claude Code sessions. Save, load, update, share, and audit session memory via MEMORY.md. Prevents context loss on compaction or session restart. Use when starting a session, before compaction, syncing context across teammates, or pruning stale memory entries. Trigger with "save memory", "load memory", "memory audit", "memory share".

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/error-handling.md`, `references/output-format.md` and `scripts/memory-share.sh`). Compatibility notes: Designed for Claude Code

It sits in Agent Workflows, covering Agent memory and Context engineering. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Starting a session
  • Before compaction
  • Syncing context across teammates
  • Pruning stale memory entries

Example prompts

  • “save memory”
  • “load memory”
  • “memory audit”
  • “/memory-kit”

Requirements

  • A Bash shell
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(git:*)

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. On session start — check for existing MEMORY.md in project root. If found, read and summarize the saved state. Ask the user whether to…
  2. On save (/memory-save) — scan the current conversation for goals, decisions, patterns, and open questions. Write a structured snapshot to…
  3. On update (/memory-update) — append the user's decision or note to the appropriate section in MEMORY.md without overwriting existing…
  4. On share (/memory-share) — commit MEMORY.md and push to the remote branch so teammates can load the same context.
  5. On audit (/memory-audit) — review all entries in MEMORY.md, flag stale items (older than 7 days or referencing completed work), and prompt…

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(git:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Memory Kit loads about 890 tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 359 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~890
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 359 words, ~890 tokens.

Download SKILL.mdSave it as .claude/skills/memory-kit/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
memory-kit
description
Persistent context management for Claude Code sessions. Save, load, update, share, and audit session memory via MEMORY.md. Prevents context loss on compaction or session restart. Use when starting a session, before compaction, syncing context across teammates, or pruning stale memory entries. Trigger with "save memory", "load memory", "memory audit", "memory share".
allowed-tools
Read, Write, Edit, Bash(git:*)
compatibility
Designed for Claude Code
version
1.1.0
author
builtbyzac
license
MIT
tags
productivity, audit, memory-kit

Memory Kit

Current State

![ -f MEMORY.md ] && echo "MEMORY.md: $(wc -l < MEMORY.md) lines, last modified $(date -r MEMORY.md '+%Y-%m-%d %H:%M')" || echo "No MEMORY.md found" ![ -f tasks/current-task.md ] && echo "Active task file found" || echo "No task file"

Overview

Claude Code sessions lose context on compaction and restart. Memory Kit persists session state (goals, decisions, patterns, open questions) to a MEMORY.md file that survives across sessions.

Five commands cover the full lifecycle:

  • /memory-save — snapshot before compaction
  • /memory-load — restore at session start
  • /memory-update — log a decision mid-session
  • /memory-share — push to git for teammates
  • /memory-audit — prune stale entries

Prerequisites

  • A git repository (for /memory-share)
  • Write access to the project root (MEMORY.md lives there)

Instructions

  1. On session start — check for existing MEMORY.md in project root. If found, read and summarize the saved state. Ask the user whether to resume previous context or start fresh.
  2. On save (/memory-save) — scan the current conversation for goals, decisions, patterns, and open questions. Write a structured snapshot to MEMORY.md with timestamped sections.
  3. On update (/memory-update) — append the user's decision or note to the appropriate section in MEMORY.md without overwriting existing content.
  4. On share (/memory-share) — commit MEMORY.md and push to the remote branch so teammates can load the same context.
  5. On audit (/memory-audit) — review all entries in MEMORY.md, flag stale items (older than 7 days or referencing completed work), and prompt the user to confirm removal.
Show full SKILL.md (131 more words)Show less

Output

The skill produces and maintains a MEMORY.md file containing:

  • Session metadata: Timestamp, branch, and project name
  • Goals: Current objectives carried across sessions
  • Decisions: Key choices made with rationale
  • Patterns: Recurring approaches or conventions discovered
  • Open questions: Unresolved items requiring future attention

Output Format

For the MEMORY.md template structure, see output-format.md.

Error Handling

For error scenarios and recovery behavior, see error-handling.md.

Examples

Save before compaction:

"Save my memory" → reads current context, writes snapshot to MEMORY.md

Load at session start:

"Load memory" → reads MEMORY.md, summarizes state, asks to resume or start new

Quick mid-session log:

"Log decision: using Postgres over SQLite for concurrent writes" → appends to Decisions section

Team sync:

"Share memory" → runs scripts/memory-share.sh, confirms push

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in skills/.curated/memory-kit of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/error-handling.md
  • references/output-format.md
  • scripts/memory-share.sh

Open the folder on GitHubat commit cfae287

Compare with similar skills

Memory Kit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory Kit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory Kit this skilljeremylongshore/tons-of-skills-marketplace2.8k—~890Automated safety check: PassMIT
Memori Long-Term MemoryMemoriLabs/Memori17k—~2kAutomated safety check: NotesCustom licence
Memori Long-Term MemoryMemoriLabs/Memori17k—~2kAutomated safety check: PassApache-2.0
MemPalace Recall for Planningopen-gsd/gsd-core10k1 repos~1.5kAutomated safety check: NotesMIT
Planning with FilesOthmanAdi/planning-with-files27k—~2.9kAutomated safety check: PassMIT
User Thoughts Memorysickn33/agentic-awesome-skills47k1 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • Memori Long-Term Memory

    MemoriLabs/Memori

    Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.

    17k GitHub stars~2k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check: notes
  • Memori Long-Term Memory

    MemoriLabs/Memori

    Adds structured long-term memory to OpenClaw agents, built automatically from sessions, with tools the agent calls to recall facts, summaries and decisions.

    17k GitHub stars~2k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Recalls earlier decisions, patterns and surprises from MemPalace memory before planning, behind a config gate that never blocks the planning step.

    10k GitHub starsUsed in 1 repo~1.5k tokens
    Agent WorkflowsAuto-check: notes
  • Planning with Files

    OthmanAdi/planning-with-files

    Keeps a task plan, findings and progress log in markdown files on disk so long agent tasks survive context resets, with Gemini hooks and helper scripts.

    27k GitHub stars~2.9k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Agent WorkflowsAuto-check passed
  • Lemmalog

    JordyZomer/lemmalog

    Externalize working memory and logical state into the lemmalog Datalog engine (MCP).

    329 GitHub stars~2.8k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Categories

Questions about Memory Kit

What does Memory Kit do?

Persistent context management for Claude Code sessions. An agent skill from jeremylongshore/tons-of-skills-marketplace. Memory Kit is an agent skill from jeremylongshore/tons-of-skills-marketplace. Persistent context management for Claude Code sessions.

When should I use Memory Kit?

Memory Kit fits situations like: starting a session; before compaction; syncing context across teammates; pruning stale memory entries.

How do I install Memory Kit in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill memory-kit -a claude-code`. Or copy the skill folder (skills/.curated/memory-kit in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/memory-kit in your project. Claude Code loads it when a task matches its description.

How do I install Memory Kit in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill memory-kit -a codex`. Or copy the skill folder (skills/.curated/memory-kit in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/memory-kit in your project. Codex loads it when a task matches its description.

Can I use Memory Kit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill memory-kit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-kit, .gemini/skills/memory-kit, .github/skills/memory-kit and .opencode/skills/memory-kit in your project.

What does Memory Kit need to run?

Going by SKILL.md and its folder, Memory Kit needs a shell for the scripts in its folder. Our summary lists: A Bash shell. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(git:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Memory Kit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory Kit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Memory Kit use?

Memory Kit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory Kit use?

About 890 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 563 tokens, read only when the agent opens those files.

What are the alternatives to Memory Kit?

Skills that share tags, products or a category with Memory Kit: Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), MemPalace Recall for Planning (open-gsd/gsd-core, 10k stars) and Planning with Files (OthmanAdi/planning-with-files, 27k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory Kit?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.