retro

retro is a skill for Claude Code from sammcj/agentic-coding. It costs 33 tokens per session (1,095 once invoked), scanned A, original, Apache-2.0.

A retrospective guide for reviewing a coding session and proposing improvements to the agent's environment. It examines errors, retries, blocked checks, searches, user corrections, and existing repository checks without changing the produced code.

In plain words
What is it for?
Use it after a difficult coding session to identify environment improvements and prevent similar agent mistakes in later runs.
Why use it?
It connects problems in a session to possible changes in checks, instructions, pointers, or tools. Proposed changes remain suggestions until the user selects one.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it after a difficult coding session to identify environment improvements and prevent similar agent mistakes in later runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sammcj/agentic-coding/retro
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sammcj/agentic-coding --skill retro
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retro

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/retro/github.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/retro)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/retro"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/retro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retro

Your own site · 80×15
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/retro"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/retro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01095
Opus 5.5 $0.00013 $0.00438
Sonnet 5.5 $0.00007 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 1mo ago against content hash 7b17cf8dae19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

retro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/session_digest.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Skills/retro/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Retro

Propose improvements to the agent's environment based on where a session struggled. Propose only: change nothing until the user picks a candidate. Fix the environment, not the code the session produced (that is code-review).

Steps

  1. Create a task per step below, each with its completion criterion.
  2. Get the session record:
    • No session named: use the current conversation.
    • Session named, or the current one is too long to recall reliably: run python3 scripts/session_digest.py <id-or-path> (--list N --project <repo> to find it). Digest each subagent transcript it lists when the struggle happened there.
  3. Mark the struggle moments: errors, retries, hook blocks, long searches, oversized results, compactions, user corrections, wrong turns. Cite each by digest call number (#12) or by quoting the user.
  4. Read the repo's existing checks (Makefile, package.json scripts, pre-commit config, CI workflows, .claude/settings.json hooks). A check that exists but is unwired or broken is the finding, in place of a new one.
  5. Map each struggle moment to a candidate using the categories below. Drop any candidate you can't trace to a struggle moment.
  6. Present candidates ranked by severity: cost of the struggle times how often it will recur. Each candidate states the moment, the fix, and the file it lands in.

Categories

  • Navigation: the agent took long to find a file or fact. Fix: a pointer from a file it already reads.
  • Automated checks: the agent made a mistake a tool could catch. Fix: lint rule, type, test, pre-commit hook, CI job, or a Claude Code PreToolUse/PostToolUse hook. A repo with no guardrail (no pre-commit hook and no CI running lint/typecheck/test) is a finding in itself.
  • Coding standards: the reviewer missed a mistake. Classify it first. Mechanical (banned API, import shape, file location, fixed syntax) gets a deterministic check. Judgement call (cross-file consistency, matching surrounding style) goes in the repo's standards doc (CODING_STANDARDS.md or CONTRIBUTING.md). code-review reads only what the repo documents, so a new standards doc also needs a one-line pointer from the project CLAUDE.md.
  • Steering bloat: global ~/.claude/CLAUDE.md, project CLAUDE.md/AGENTS.md, .claude/rules/, auto-memory MEMORY.md, SessionStart hook context, or model-invoked skill descriptions are large. Fix: move instructions into checks or standards, path-scope them into rules, or tighten a skill description or make it user-invoked.
  • No-ops: steering lines the agent already obeys by default, or ignored anyway. Fix: delete, or replace with a check. Treat each as a candidate for the deletion test, judged on one session.
  • Skills: a skill failed to fire, fired wrongly, or its instructions misled the agent. Fix: its description or body.
  • Tool economy: a tool call was expensive for what it returned (see oversized results in the digest), or the agent repeated a call. Fix: a cheaper command, a script, or a narrower tool.
  • Information access: the agent lacked information it needed. Fix: tee dev server logs to a file, read-only access to a service, a docs pointer.
  • Sandbox and permissions: a sandbox or hook block cost retries. Fix: the command pattern the agent should have used, or a sandbox/permission rule change for the user to make.

Read the full file on GitHub · 56 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 56 lines · 33 tokens per session scan A 7b17cf8dae19

Subscribe to this mod's changes

retro is a skill published in the GitHub repository sammcj/agentic-coding (174 stars, last pushed 3d ago), licensed Apache-2.0. It adds 33 tokens to every session and 1,095 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.

Related

retro compared with skills from other repositories

retro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retrosammcj/agentic-codingSkill1743d agoApache-2.0A33Claude Code
agentproto-llm-endpointagentproto/tsSkill11todayApache-2.0A77Claude Code, Codex
ap-workflowsagentproto/tsSkill11todayApache-2.0A85Claude Code, Codex
agentproto-appsagentproto/tsSkill11todayApache-2.0A171Claude Code, Codex
ap-cronagentproto/tsSkill11todayApache-2.0A70Claude Code, Codex
ap-lifecycleagentproto/tsSkill11todayApache-2.0A77Claude Code, Codex
pb-new-agent-sessionagentproto/tsSkill11todayApache-2.0A68Claude Code, Codex