session-insights
Skill13 starsChanged 11 days agoMITView on GitHub
Extract insights from past .jsonl sessions — problems, decisions, friction points. Analyzes sessions you can't see in current context.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- luiseiman/dotforgetheir own version, first seen Oct 13, 2026
- yasunori0418/skillstheir own version, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- yasunori0418/skills★ 9same name
- luiseiman/dotforge★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- docs-reflectSkill
- memory-setupSkill
- memorySkill
- parkSkill
- reflectSkill
- session-continueSkill
- session-endSkill
- session-restoreSkill
- session-startSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 110
Don't dump raw output — format into readable blocks
- Distinctive: line 111
If multiple sessions found for a query — combine chronologically
- Very specific: line 112
If session index (sessions.jsonl) exists — use it for faster lookup
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/session-insights — Extract insights from past sessions
Parse .jsonl session transcripts and extract structured insights: problems, decisions, patterns, friction points. Works on sessions outside the current context.
Step 1: Find sessions
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')/"- Ticket/keyword — grep across all
.jsonlfiles - Session ID — specific file by UUID
- Workstream — use
node "${CLAUDE_PLUGIN_ROOT}/scripts/memory.js" workstream <name>for context, match by dates/keywords - No argument — most recent session
grep -l "<query>" "$SESSIONS_DIR"*.jsonl 2>/dev/null | head -10Also check session index if available:
cat "$(node "${CLAUDE_PLUGIN_ROOT}/scripts/memory.js" dir)/sessions.jsonl" 2>/dev/nullStep 2: Extract user messages
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:
passStep 3: Analyze
Extract structured insights from the user messages:
- Problems — what didn't work, was redone, caused friction
- Decisions — what was chosen and why (architectural, process)
- Insights — non-obvious conclusions, patterns, reassessments
- Friction points — where the agent repeatedly failed, what required many iterations
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>Step 4: Save
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.
Rules
- Filter system messages, ide_opened_file, tool calls — only USER text
- Large sessions (>50KB user text) — split into chunks
- Don't dump raw output — format into readable blocks
- If multiple sessions found for a query — combine chronologically
- If session index (
sessions.jsonl) exists — use it for faster lookup
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

