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…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
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
- On session start — check for existing
MEMORY.mdin project root. If found, read and summarize the saved state. Ask the user whether to resume previous context or start fresh. - On save (
/memory-save) — scan the current conversation for goals, decisions, patterns, and open questions. Write a structured snapshot toMEMORY.mdwith timestamped sections. - On update (
/memory-update) — append the user's decision or note to the appropriate section inMEMORY.mdwithout overwriting existing content. - On share (
/memory-share) — commitMEMORY.mdand push to the remote branch so teammates can load the same context. - On audit (
/memory-audit) — review all entries inMEMORY.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
- output-format.md — MEMORY.md template structure and section schema
- error-handling.md — error scenarios, recovery behavior, and edge cases
Установить memory-kit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBash(git:*)Вложенные файлы
FAQ
Что делает скилл 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 session, before compaction, syncing context across teammates, or pruning stale memory entries. Trigger with "save memory", "load memory", "memory audit", "memory share".
Как установить скилл memory-kit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-kit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic