Skillshub memory-kit
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/jeremylongshore/claude-code-plugins-plus-skills/memory-kit" ~/.claude/skills/comeonoliver-skillshub-memory-kit && rm -rf "$T"
manifest:
skills/jeremylongshore/claude-code-plugins-plus-skills/memory-kit/SKILL.mdsource content
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:
— snapshot before compaction/memory-save
— restore at session start/memory-load
— log a decision mid-session/memory-update
— push to git for teammates/memory-share
— prune stale entries/memory-audit
Prerequisites
- A git repository (for
)/memory-share - Write access to the project root (MEMORY.md lives there)
Instructions
- On session start — check for existing
in project root. If found, read and summarize the saved state. Ask the user whether to resume previous context or start fresh.MEMORY.md - On save (
) — scan the current conversation for goals, decisions, patterns, and open questions. Write a structured snapshot to/memory-save
with timestamped sections.MEMORY.md - On update (
) — append the user's decision or note to the appropriate section in/memory-update
without overwriting existing content.MEMORY.md - On share (
) — commit/memory-share
and push to the remote branch so teammates can load the same context.MEMORY.md - On audit (
) — review all entries in/memory-audit
, flag stale items (older than 7 days or referencing completed work), and prompt the user to confirm removal.MEMORY.md
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
, confirms pushscripts/memory-share.sh
Resources
- output-format.md — MEMORY.md template structure and section schema
- error-handling.md — error scenarios, recovery behavior, and edge cases