Skip to content
Skillv1.0.0

memory-kit

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 s

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/memory-kit/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill memory-kit. Copyright stays with the author (MIT).

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.

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

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-memory-kit/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-memory-kit.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-memory-kit",
  "kind": "skill",
  "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\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "productivity",
      "audit",
      "memory-kit",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "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\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/.curated/memory-kit/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/memory-kit/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/memory-kit/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(git:*)"
    ],
    "license": "MIT"
  },
  "instructions": "# Memory Kit\n\n## Current State\n\n!`[ -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\"`\n!`[ -f tasks/current-task.md ] && echo \"Active task file found\" || echo \"No task file\"`\n\n## Overview\n\nClaude Code sessions lose context on compaction and restart. Memory Kit persists\nsession state (goals, decisions, patterns, open questions) to a `MEMORY.md` file\nthat survives across sessions.\n\nFive commands cover the full lifecycle:\n\n- `/memory-save` — snapshot before compaction\n- `/memory-load` — restore at sess",
  "cost": {
    "context_tokens": 739
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-memory-kit/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.