Claude session analysis
Skill kawaz/claude-session-analysis/skills/claude-session-analysis
Analyze Claude Code session files. セッションを探し、timeline(tl)を見て、コンパクトやクリアにより失われた文脈を取り戻すFrom its SKILL.md
npx -y skills add kawaz/claude-session-analysis --skill claude-session-analysisAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, as published. Nobody here has run it
Claude Session Analysis
This is {SKILL_DIR}/SKILL.md. CLI: {SKILL_DIR}/bin/claude-session-analysis
My session ID: ${CLAUDE_SESSION_ID}
| Subcommand | Description |
|---|---|
sessions [--since <2d>] [--limit <N>] [--path REGEXP] [--grep REGEXP] | セッション検索(デフォルト全プロジェクト) |
timeline <id> [options] | タイムライン表示(--help で全オプション確認可) |
resolve [--path] <id_prefix> | セッションID補完・パス解決 |
file-ops <id> | ファイル操作一覧 |
Paths
- Sessions:
~/.claude/projects/{project-path}/{session-id}.jsonl - Backups:
~/.claude/file-history/{session-id}/{hash}@v{version}
Timeline の使い分け
| 目的 | コマンド例 |
|---|---|
| 全体像の把握 | timeline SID |
| 会話内容の確認 | timeline SID --md -t RU |
| コンパクト後の文脈復旧 | timeline SID --md -t TRU --last-since 2h --last-turn 10 |
| 特定トピックの抽出 | timeline SID --grep <pattern> -C 1 --md |