retrospective
Skill0 starsChanged 8 months agoMITView on GitHub
Capture subjective session metrics (corrections, skill trigger accuracy, task outcome) and append to ~/.claude/metrics/retro.jsonl. Manual invocation only — run at the end of a Claude Code session.
83 other projects use a version of this.
Adopted by
Most recently taken up by
- bullish0x/GameStudiotheir own version, first seen Nov 29, 2026
- tomoyaf/aiskillpod-skillstheir own version, first seen Nov 29, 2026
- xzawed/SCAManagertheir own version, first seen Nov 29, 2026
- TTNAN/agent-craft-cntheir own version, first seen Nov 29, 2026
- Wolfgangrush/ai-brain-australiatheir own version, first seen Nov 29, 2026
- ericgandrade/agentic-sdlctheir own version, first seen Nov 29, 2026
Used with
Projects with it also use project-stage-detect, team-level and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CoralGameSkillproject-stage-detect
Automatically analyze project state, detect stage, identify gaps, and recommend next steps based on existing artifacts.
Also in 18 projects that use this
CoralGameSkillteam-level
Orchestrate level design team: level-designer + narrative-director + world-builder + art-director + systems-designer + qa-tester for complete area/level creation.
Also in 12 projects that use this
lilangMaxSkillcreate-stories
Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.
Also in 12 projects that use this
lilangMaxSkillstory-done
End-of-story completion review. Reads the story file, verifies each acceptance criterion against the implementation, checks for GDD/ADR deviations, prompts code review, updates story status to Complete, and surfaces the next ready story from the sprint.
Also in 12 projects that use this
- +1 more from CoralGame
- +7 more from lilangMax
Other versions83 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 83
- Donchitos/Claude-Code-Game-Studios★ 39ksame name
- alibaba/MNN★ 17ksame name
- glebis/claude-skills★ 416same name
- pixel-cellar/Claude-Code-Game-Studios★ 324same name
- striderZA/OpenCodeGameStudios★ 124same name
- ericgandrade/agentic-sdlc★ 109same name
- PAIR-code/deliberate-lab★ 102same name
- The01Geek/prflow★ 101same name
- AsiaOstrich/universal-dev-standards★ 86same name
- tranhieutt/software_development_department★ 71same name
73 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-metricsSkill
- metrics-reportSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 70 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Resolve session_id: If the user passed an argument, use it.
- Distinctive: line 58
Ask three questions, one at a time: Do not batch. Wait for each answer before asking the next.
- Very specific: line 64
Append to
~/.claude/metrics/retro.jsonl: Use this exact shell pattern (the heredoc inside python protects against quoting issues in … - Distinctive: line 99
Never invent answers. Always ask the user.
- Very specific: line 101
Never write if session_id is unknown — warn and stop.
“Common” is measured: kept by at least 6 in 10 of the 70 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/retrospective
Log how the session actually went. Joins to auto.jsonl by session_id.
Steps
- Resolve session_id. If the user passed an argument, use it. Otherwise read the last line of
~/.claude/metrics/auto.jsonlwithtail -n1and extractsession_id. Ask the user to confirm: "Log retro for session<id>(ended<ts>)? (y/n)". Ifn, ask for the session_id explicitly. Show context (v3+ rows only) and pre-suggest a correction_rate. After resolving
session_id, look up its row inauto.jsonland, if available, surface the captured signals to the user before asking. This makes the retro 10s instead of a guess. Use this exact snippet:python3 - <<'PY' import json, sys from pathlib import Path sid = "<RESOLVED_SESSION_ID>" auto = Path.home() / ".claude" / "metrics" / "auto.jsonl" row = None if auto.is_file(): for line in auto.read_text().splitlines(): if not line.strip(): continue try: r = json.loads(line) except Exception: continue if r.get("session_id") == sid: row = r # last match wins (latest entry for the same id) if not row: print("_no auto row for this session — answer from memory_") sys.exit(0) cost = row.get("cost_usd") print(f"Session: model={row.get('model')} cost=${cost:.2f}" if cost is not None else f"Session: model={row.get('model')} cost=?") print(f"Turns: {row.get('turn_count')} tool_calls: {row.get('tool_calls_total')} duration_s: {row.get('duration_s')}") if "tool_errors_count" in row: print(f"Tool errors: {row.get('tool_errors_count')}") print(f"User msgs: {row.get('user_msg_count')} short follow-ups: {row.get('short_user_followups_count')} correction kw hits: {row.get('correction_keyword_hits')}") sub = row.get("subagent_invocations") or {} if sub: print(f"Subagents: {sub}") # Heuristic suggestion for correction_rate (only as a hint — user decides) hits = row.get("correction_keyword_hits") or 0 fups = row.get("short_user_followups_count") or 0 umsgs = max(row.get("user_msg_count") or 1, 1) ratio = (hits + fups) / umsgs suggested = min(10, round(ratio * 10)) print(f"Suggested correction_rate (heuristic, override freely): {suggested}/10") else: print("_pre-v3 session: no friction signals captured_") PY- Ask three questions, one at a time. Do not batch. Wait for each answer before asking the next.
- Q1: correction_rate (0-10). "On a scale of 0-10, how often did you correct, redirect, or undo my work? 0 = never, 10 = constantly." If a heuristic suggestion was shown above, present it as the default but never auto-fill — the user always confirms.
- Q2: skill_trigger_accuracy (good | bad | n-a). "Did the right skills and agents fire at the right times?"
- Q3: task_outcome (shipped | blocked | abandoned | partial). "What was the outcome?"
- Q4 (optional): notes. "Any short note to remember? (press enter to skip)"
Append to
~/.claude/metrics/retro.jsonl. Use this exact shell pattern (the heredoc inside python protects against quoting issues in notes):python3 - <<'PY' import fcntl, json from datetime import datetime, timezone from pathlib import Path row = { "schema_version": 1, "session_id": "<ID>", "ts": datetime.now(timezone.utc).isoformat(), "correction_rate": <0-10>, "skill_trigger_accuracy": "<good|bad|n-a>", "task_outcome": "<shipped|blocked|abandoned|partial>", "notes": "<optional>", } metrics = Path.home() / ".claude" / "metrics" metrics.mkdir(parents=True, exist_ok=True) lock = metrics / ".retro.lock" out = metrics / "retro.jsonl" with lock.open("a") as l: fcntl.flock(l.fileno(), fcntl.LOCK_EX) with out.open("a") as f: f.write(json.dumps(row) + "\n") print(f"Logged retro for {row['session_id']}") PYDrop the
noteskey entirely if empty.- Confirm and stop. Output a one-line confirmation with the session_id. Do not summarise the whole session.
Rules
- Never invent answers. Always ask the user.
- Validate inputs before writing: correction_rate must be 0-10 int, skill_trigger_accuracy must be one of
good|bad|n-a, task_outcome must be one ofshipped|blocked|abandoned|partial. If invalid, re-ask. - Never write if
session_idisunknown— warn and stop.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

