Loading...
Loading...
This skill should be used when user wants to access, capture, or reference Claude Code session history. Trigger when user says "capture session", "save session history", or references past/current conversation as a source - whether for saving, extracting, summarizing, or reviewing. This includes any mention of "what we discussed", "today's work", "session history", or when user treats the conversation itself as source material (e.g., "from our conversation").
npx skill4agent add team-attention/plugins-for-claude-natives history-insight~/.claude/projects/<encoded-cwd>/*.jsonl/Users/foo/project-Users-foo-project상세 파일 포맷:${baseDir}/references/session-file-format.md
current_projectall_sessionsquestion: "세션 검색 범위를 선택하세요"
options:
- "현재 프로젝트만" → ~/.claude/projects/<encoded-cwd>/*.jsonl
- "모든 Claude Code 세션" → ~/.claude/projects/**/*.jsonl# Current project only
find ~/.claude/projects/<encoded-cwd> -name "*.jsonl" -type f
# All sessions (모든 프로젝트)
find ~/.claude/projects -name "*.jsonl" -type fstatstat -f "%Sm" -t "%Y-%m-%d" <file>stat -c "%y" <file>Session files found?
├─ No → Error: "No sessions found"
└─ Yes → How many files?
├─ 1-3 files → Direct Read + parse
└─ 4+ files → Batch Extract Pipelineextract-session.sh${baseDir}/scripts/extract-session.sh <session.jsonl>/tmp/cc-cache/<analysis-name>/sessions.txtuser_messages.txtclean_messages.txtclean_messages.txtsplit -l 2000 clean_messages.txt /tmp/cc-cache/<name>/batch_Task(subagent_type="general-purpose", model="opus", run_in_background=true)
prompt: "batch_XX 파일을 읽고 주제/패턴 요약해줘"## Session Capture Complete
- **Sessions:** N files processed
- **Messages:** X total, Y after filter
### Extracted Insights
[분석 결과]| Scenario | Response |
|---|---|
| No session files found | "No session files found for this project." |
| File too large | Auto-preprocess with extract-session.sh |
| jq not installed | "Error: jq is required. Install with: brew install jq" |
| Task failed | "Warning: Could not process [file]. Skipping." |
| 0 relevant sessions | "No sessions matched your criteria." |
~${baseDir}/scripts/extract-session.sh${baseDir}/references/session-file-format.md