Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

session-retro

БесплатноЗапускает вложенные скриптыНе проверен

Review a coding-agent session and turn its failures and waste into ranked fixes to the agent's environment. Use when a session went slow or wrong, after a…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

Session Retro

A retrospective on one coding-agent session, aimed at the agent's environment rather than at the people or the model. Every wasted call in a session has a cause outside the model that someone can edit: a file nobody pointed to, a test command written nowhere, a lint rule that does not exist, a safe command missing from the allowlist, a skill whose description never matched. This skill reads the transcript, counts where the session leaked time, and produces a short ranked list of changes, each naming the file to edit.

The output is not "the agent should be more careful". It is "add Tests: make test to AGENTS.md" or "wire ruff check into the pre-commit hook", with the call numbers that justify it.

When to Use

  • After a session that went slow or wrong — many retries, a late-found bug, a wrong turn that cost twenty calls.
  • After a session the user had to rescue — the user pasted information, overrode a decision, or approved the same command repeatedly.
  • When tuning steering files — CLAUDE.md, AGENTS.md, GEMINI.md or Cursor rules have grown and nobody knows which lines still earn their place.
  • Before repeating a task type — the same kind of change is coming again and the last run was expensive.

Not this skill: a team sprint retrospective (sprint-retrospective in project management), an incident post-mortem, or a code review of the session's output.

Clarify First

What shapes the result most is which session is reviewed and what it was supposed to achieve. Settle the inputs below before analysing. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Which session: a transcript path or session id. Default to the current session; the analyzer needs the log, and memory of a session is far less reliable than its record.
  • The task the session was given: the waste only makes sense against the goal. Twenty reads before an edit is waste on a one-line fix and normal on an investigation.
  • Skills that should have fired: they become --expected-skills, and without them the skill-miss category cannot be checked.
  • What the user is allowed to change: a contributor may be able to edit CLAUDE.md but not CI or global settings, which moves fixes to a different rung.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Quick Start

# 1. Count where the session leaked: retries, re-reads, failures, friction
python3 scripts/session_log_analyzer.py --input assets/sample_session.jsonl --expected-skills tdd

# 2. Lint the drafted action list before handing it over
python3 scripts/action_item_linter.py --input assets/sample_action_items.json

Both sample runs exit 1 on purpose: the sample session is full of waste, and two of the six sample action items are deliberately malformed so you can see each rule fire.

Workflow

  1. Locate the transcript. Use the session the user named, or the current one. Claude Code keeps logs at ~/.claude/projects/<project-slug>/<session-id>.jsonl; other agents vary (see references/transcript-sources.md). Without a log, rebuild the call list by hand in the normalized format.
  2. Run the analyzer. session_log_analyzer.py --input <log> --expected-skills <list>. It reports findings by category with call numbers as evidence. Treat each finding as a lead, not a verdict.
  3. Confirm every lead against the transcript. Open the cited calls. Drop findings that were legitimate work: a failing test in a test-first loop, a re-read after compaction, long reading on an investigation task. The detector table in references/finding-categories.md lists what to check for each.
  4. Read for what the analyzer cannot count. Moments where the user corrected the agent, where the agent asked a question the repo should have answered, where it followed a stale instruction, or where it found a bug late. These are often the most valuable findings.
  5. Read the environment before proposing anything. Open the steering files, the check commands (Makefile, package.json scripts, pre-commit config, CI workflow) and the settings file. A check that exists but is unwired is a different fix from a check that does not exist.
  6. Turn each confirmed finding into one change on the highest possible rung. Deterministic check first, then a better tool, then an environment change, then the standards doc the reviewer reads, then a directory-level pointer, and only then a line in the root steering file. The ladder is in references/fix-placement-and-steering-style.md.
  7. Rank and cut. Score by severity, recurrence and fix effort. Keep at most seven items; park the rest with the trigger that would promote them.
  8. Validate the list. Run action_item_linter.py over it. Every item needs a category,
Полный SKILL.md на GitHub

Установить session-retro в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/retro_template.mdassets/sample_action_items.jsonassets/sample_session.jsonlreferences/finding-categories.mdreferences/fix-placement-and-steering-style.mdreferences/transcript-sources.mdscripts/action_item_linter.pyscripts/session_log_analyzer.py

FAQ

Что делает скилл session-retro?

Review a coding-agent session and turn its failures and waste into ranked fixes to the agent's environment. Use when a session went slow or wrong, after a messy agent run, or to tune CLAUDE.md or AGENTS.md.

Как установить скилл session-retro?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл session-retro запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить session-retro с