session-reflection-analysis — Claude Code skill: review & setup
Analyzes Claude Code conversation history to uncover workflow friction and curb token usage. Ideal for running retrospectives after long coding sessions.
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a claude-codeWhat session-reflection-analysis 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.
What it helps with
- 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 for the agent
- 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
How to install session-reflection-analysis
1Skills CLI (Vercel)
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a claude-code2Manually: put the files in place
~/.claude/skills/session-reflection-analysis/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/session-reflection-analysis/
1Skills CLI (Vercel)
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a codex2Manually: put the files in place
.agents/skills/session-reflection-analysis/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a cursor2Manually: put the files in place
.cursor/skills/session-reflection-analysis/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install harperreed/dotfiles session-reflection-analysis2Manually: put the files in place
.github/skills/session-reflection-analysis/SKILL.md1Skills CLI (Vercel)
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a gemini-cli2Platform CLI
gemini skills install https://github.com/harperreed/dotfiles --path .claude/skills/session-reflection-analysisManually: put the files in place
.devin/skills/session-reflection-analysis/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add harperreed/dotfiles --skill session-reflection-analysis -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about session-reflection-analysis
How do I install session-reflection-analysis in Claude Code?
Run npx skills add harperreed/dotfiles --skill session-reflection-analysis -a claude-code. The definition is placed into ~/.claude/skills/session-reflection-analysis/SKILL.md.
What does session-reflection-analysis do?
It parses stored chat logs with jq to locate token waste and repeated errors, then outlines actionable workflow fixes in a markdown report.
What tools are required before running this skill?
You must have jq installed on your machine. Without it, the script fails to condense project session logs and exits.