/memory-toolkit:session-insights [ticket|session-id|workstream]from memory-toolkit
Parses .jsonl session transcripts to extract structured insights: problems, decisions, patterns, and friction points from past sessions outside the current context.
Ships in memory-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Parse .jsonl session transcripts and extract structured insights: problems, decisions, patterns, friction points. Works on sessions outside the current context.
Resolve memory directory, then find sessions by argument:
# Transcripts are stored per launch cwd (a monorepo subdir gets its own dir), memory per git root
SESSIONS_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/projects/$(pwd | sed 's/[^a-zA-Z0-9]/-/g')/"
.jsonl filesnode "${CLAUDE_PLUGIN_ROOT}/scripts/memory.js" workstream <name> for context, match by dates/keywordsgrep -l "<query>" "$SESSIONS_DIR"*.jsonl 2>/dev/null | head -10
Also check session index if available:
cat "$(node "${CLAUDE_PLUGIN_ROOT}/scripts/memory.js" dir)/sessions.jsonl" 2>/dev/null
For each session found:
import json, sys
with open(sys.argv[1]) as f:
for i, line in enumerate(f):
try:
obj = json.loads(line.strip())
if obj.get('type') != 'user':
continue
c = obj.get('message', {}).get('content', obj.get('content', ''))
if isinstance(c, list):
for item in c:
if isinstance(item, dict) and item.get('type') == 'text':
text = item.get('text', '').strip()
if text and not text.startswith('<') and len(text) > 5:
print(text[:300])
elif isinstance(c, str):
text = c.strip()
if text and not text.startswith('<') and len(text) > 5:
print(text[:300])
except:
pass
Extract structured insights from the user messages:
Format:
## Session insights: <date range or session id>
### Problems
- <description> → <resolution or status>
### Decisions
- <what> — <why>
### Insights
- <insight> — <evidence from session>
### Friction
- <what> (×N iterations) — <root cause>
MUST present all options as a numbered menu and wait for user response before writing anything:
What to do with these insights?
1. Save insights to memory (feedback/ or decisions/)
2. Add friction points to backlog
3. Mark as DOC: for /docs-reflect
4. Skip — display only
Choose (1-4, or comma-separated):
Then execute only what the user chose.
sessions.jsonl) exists — use it for faster lookupWhat SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/docs-reflectCollect DOC: notes from session, generalize, and propose repo documentation (.claude/rules/, docs/)./memoryProject memory — search, workstreams, notes, decisions. Auto-initializes on first use./memory-setupInitialize or upgrade project memory for memory-toolkit. Works with existing auto-memory./parkPark an idea, task or question for later — set it aside with its context, don't lose the thought./reflectSession reflection — analyzes what happened, proposes backlog items, captures insights./session-continueContinue a workstream from where you left off — faster than /session-start, no focus selection.npx claudepluginhub ilyagorsky/memory-toolkit --plugin memory-toolkitOther plugins' skills for the same job