/my-plugins:retro [session-id or description]from my-plugins
Reads a coding session transcript, identifies struggle moments, and proposes environment fixes (steering files, checks, tooling) to improve future runs.
Ships in my-plugins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user has asked for a retrospective. You are suggesting improvements to the agent's environment — the files, checks, tools and steering every future session runs in — based on the defects one session exposed. You do not fix the code the session produced.
Pick the session. Use the session ID or description the user gave; if they gave none, the current session, whose ID the harness exposes in an environment variable (Claude Code $CLAUDE_CODE_SESSION_ID, Pi $PI_SESSION_ID). Where the transcript lives depends on the harness:
~/.claude/projects/<slug>/<session-id>.jsonl, where the slug is the session's working directory with / and . replaced by -. Delegated agents' transcripts sit under <session-id>/subagents/, and struggles inside them are invisible from the main file.~/.pi/agent/sessions/--<slug>--/<ISO time>_<session-id>.jsonl, where the slug is the working directory without its leading / and with / replaced by - (. is kept). For the current session, $PI_SESSION_FILE gives the path directly; it is unset for ephemeral sessions.In both stores a worktree has its own slug. A session named by description is found with grep -l across both stores (~/.claude/projects/*/*.jsonl and ~/.pi/agent/sessions/*/*.jsonl), plus any other store you found. Read the transcript rather than relying on recall: by the end of a session the struggles from the middle have faded, and recall drifts toward generic advice. Transcripts run to megabytes — filter with jq/grep for tool calls, tool results and errors instead of reading them whole.
Read the environment the session ran in. The repo's steering files (CLAUDE.md/AGENTS.md, global and repo), the files its reviewer reads, its check commands (package.json/build-tool lint/check scripts, pre-commit and pre-push hooks, CI workflows). A check that already exists but sits unwired or silently broken is the finding — not a reinvention.
Find the struggle moments. Wrong turns, long searches, retries, errors, a mistake that reached review or the user, an expensive tool call, information the agent asked for and could not get. Each candidate must cite one of these moments (a quoted line or tool call from the transcript). A setup defect found in step 2 (a missing guardrail, an oversized steering file) also cites the file:line it lives in, and the moment where it made this session worse. A candidate you cannot trace to a moment is discarded, however sensible it sounds.
Classify each candidate into one category — the category decides where the fix goes:
Report the candidates, most severe first. Severity is the cost of the defect recurring, not how loud the moment was: a quiet, expensive mistake outranks a loud, cheap one. For each candidate give: the category, the cited moment, the proposed fix and the file it touches. Say so when the session was smooth and there is little to report — do not fill categories to look thorough.
Whether a candidate is then applied, and through what gate, is decided by the repo's own rules and the user, not by this skill.
Work goes through two stages. The implementation agent carries the most context pressure: it explores, writes code and debugs failures. The review agent receives a diff and needs neither exploration nor debugging. So a new rule goes to the reviewer, where there is room to apply it.
CLAUDE.md/AGENTS.md): pushed into every session's context whether relevant or not, so every line there taxes every session.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub minhyeoky/dotfiles --plugin my-plugins3 skills in this plugin
/grill-meInterview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me"./wrapupClose out a work session by routing every open loop — uncommitted code AND uncaptured context — to a durable home before the session's working memory evaporates. Code goes to git (committed/pushed on the default branch, or a PR); decisions go to memory; an unfinished thread goes to a handoff or an explicit park. This is the closing *work*, not a closing *summary* — narrating a status recap and stopping there is the failure mode, not the deliverable. Trigger when the user says "wrapup", "wrap-up", "wrap up", "랩업", "작업 마무리", "세션 정리", "정리하고 끝내자", "끝내자", "끊고 가자", "이만 접자", or otherwise signals the session is ending — "compact", "context is running low", "let's continue later", "pick this up next time". Trigger broadly — any request to stop, pause, or hand off the session is this skill, including when those words arrive mid-sentence beside another request. Also trigger at the end of a session with a dirty tree or unrecorded decisions, and proactively suggest when state has accumulated across multiple concerns.