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.
npx skills add sammcj/agentic-coding --skill retrogit clone --depth 1 https://github.com/sammcj/agentic-codingWrote 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.
[](https://agentmods.dev/skills/sammcj/agentic-coding/retro)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
- Create a task per step below, each with its completion criterion.
- 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.
- 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. - Read the repo's existing checks (
Makefile,package.jsonscripts, pre-commit config, CI workflows,.claude/settings.jsonhooks). A check that exists but is unwired or broken is the finding, in place of a new one. - Map each struggle moment to a candidate using the categories below. Drop any candidate you can't trace to a struggle moment.
- 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.mdorCONTRIBUTING.md).code-reviewreads only what the repo documents, so a new standards doc also needs a one-line pointer from the projectCLAUDE.md. - Steering bloat: global
~/.claude/CLAUDE.md, projectCLAUDE.md/AGENTS.md,.claude/rules/, auto-memoryMEMORY.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.
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.
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.
- 1mo ago First seen · 56 lines · 33 tokens per session scan A 7b17cf8dae19
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.
retro compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| retrosammcj/agentic-coding | Skill | 174 | 3d ago | Apache-2.0 | A | 33 | Claude Code |
| agentproto-llm-endpointagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 77 | Claude Code, Codex |
| ap-workflowsagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| agentproto-appsagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| ap-cronagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 70 | Claude Code, Codex |
| ap-lifecycleagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 77 | Claude Code, Codex |
| pb-new-agent-sessionagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 68 | Claude Code, Codex |