Retrospective

From ItsBenCodes/cookies · View interactive version

Retrospective is an AI agent skill from the GitHub repository ItsBenCodes/cookies. Analyze past Claude Code session(s) for mistakes and propose targeted improvements. Use when the user asks for a retrospective, post-mortem, or session review. Outputs concise findings plus suggested edits to CLAUDE.md (general lessons) or new/updated skills (specific workflows).

How to use this skill

Skill file

Retrospective

Review session transcripts, list mistakes, propose improvements.

1. Resolve scope

Parse $ARGUMENTS:

```bash

SESSION_DIR=~/.claude/projects/$(pwd | sed 's|/|-|g')

find "$SESSION_DIR" -name '*.jsonl' -mtime -N

```

2. Analyze

Current session: scan your own conversation context. Extract user corrections, retried tool calls, reverts, "no"/"don't"/"stop", failed builds/tests, repeated identical commands, dead-end paths.

Past sessions (N days): spawn one Explore subagent per jsonl in parallel (single message, multiple Agent calls). Brief each:

Read <path>. List only the mistakes Claude made: user corrections, wrong assumptions, repeated failures, wasted tool calls, friction points. One bullet each, ≤15 words. No fixes, no praise. Under 200 words.

Then reconcile: dedupe, group by theme, keep frequency counts.

3. Report

Output to the user in this shape (no preamble):

## Mistakes
- <mistake> (×N)
- ...

## Improvements
**CLAUDE.md** (general, always-on):
- <rule> — <one-line why>

**Skill: <name>** (specific workflow):
- Trigger: <when to invoke>
- Body: <2-3 bullet behavior>

## Apply?

Routing rule:

Wait for confirmation before editing CLAUDE.md or creating skill files.

4. Apply (on confirmation)

Stop. Do not auto-commit.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.