# session-reflection-analysis

Analyzes Claude Code conversation history to uncover workflow friction and curb token usage. Ideal for running retrospectives after long coding sessions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 336
- Author: harperreed
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/harperreed/dotfiles/tree/HEAD/.claude/skills/session-reflection-analysis/SKILL.md
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/skills/session-reflection-analysis

## What it does

The skill inspects project records inside `~/.claude/projects/` to locate bottlenecks. Reading full `*.jsonl` files directly blows through context limits. Because of this, the workflow relies on `jq` to build a compact digest. It preserves timestamps, tool names, and truncated user inputs while discarding verbose payload responses.

Next, an exploration subagent inspects this condensed log. The subagent highlights recurring blunders, such as fetching identical files repeatedly or missing project instructions. It drafts a structured retrospective markdown document with concrete rules for `CLAUDE.md` and ideas for custom commands.

Without `jq` present on your system path, the summary step aborts immediately. The skill never applies changes to your repository on its own; it presents copy-paste recommendations and asks before touching files.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/session-reflection-analysis/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/session-reflection-analysis/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/session-reflection-analysis/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/session-reflection-analysis/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install harperreed/dotfiles session-reflection-analysis
```

2. **Manually: put the files in place**
- File: `.github/skills/session-reflection-analysis/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/harperreed/dotfiles --path .claude/skills/session-reflection-analysis
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/session-reflection-analysis/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/harperreed/dotfiles/tree/HEAD/.claude/skills/session-reflection-analysis/SKILL.md

## When to use it
- track down wasted tokens across recent Claude Code sessions
- spot repetitive tool calls and redundant file reads
- produce ready-to-use guidelines for CLAUDE.md
- identify missing automation scripts and custom slash commands

## Example prompts
- Review our last session and check where we wasted context
- Analyze project history from the past week and suggest CLAUDE.md rules
- Inspect recent tool usage and generate an efficiency report

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [harperreed/dotfiles](https://affpapa.org/en/nevibecode/by/harperreed/dotfiles.md) — 26 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
