Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Retro?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jellydn-retro)
---
name: retro
description: "Review a coding session and propose environment changes that prevent repeated agent mistakes."
version: 1.0.0
author: my-ai-tools
license: MIT
compatibility: cline, claude, opencode, amp, codex, gemini, cursor, pi
hint: Use when reviewing the current or past coding session to improve the repository and agent workflow.
user-invocable: true
disable-model-invocation: true
metadata:
audience: all
workflow: retrospective
related_skills: [code-review, diagnosing-bugs, accountable-engineering]
---
# Coding Session Retrospective
Inspect a real coding session and propose improvements to the **agent's environment**, not the product code. The goal is to make the next run easier to navigate and harder to get wrong.
This is human-in-the-loop. Present findings first; do not edit steering files, standards, hooks, CI, or skills until the user chooses which findings to apply.
## When to Use
Use when:
- A coding session was unusually long, confusing, or error-prone.
- The user asks to review recent agent sessions.
- A bug or repeated mistake suggests a missing guardrail.
The default target is the current session. If the user names a count or date range, inspect that exact range. If session history is unavailable, say so and review the repository evidence only.
## Sources
Read the real sources before judging:
- Session transcript and tool output, using session search when available.
- `AGENTS.md`, `CLAUDE.md`, `GLOSSARY.md`, `GLOSSARY-MAP.md`, and repository-local steering files.
- `CODING_STANDARDS.md` or equivalent review guidance.
- Existing `package.json`, `pyproject.toml`, `Makefile`, task runner, hooks, and CI workflows.
- The final diff, test output, and any unresolved warnings.
Do not infer a recurring mistake from one suspicious line. Tie every finding to concrete evidence from the session or repository.
## Review Lens
Rank findings by severity and expected leverage. For each, record:
```text
Finding: what happened
Evidence: session message, command, file, or diff
Prevention: the smallest environment change that would stop it
Owner: repo check | agent skill | steering file | tool | documentation
Cost: maintenance and false-positive risk
```
Inspect these categories:
### Skill learning loop
Treat a human correction as training data for the workflow, not as a one-off preference:
1. Save the agent's output before editing it.
2. Make and save the human-edited version against the same input.
3. State what decision the edit reflects that the skill did not encode.
4. Rewrite the rule as a decision procedure, including when it does **not** apply.
5. Rerun the original input and compare the result with the edited version.
Do not add vague rules such as “make it better” or blindly encode every edit as a universal instruction. Keep only lessons that held up on real work. If a lesson is mechanical and stable, prefer a linter, test, hook, or CI check over more prose. Keep shared rules in the main skill and context-specific rules in a linked reference or style file so the skill does not grow indiscriminately.
### Navigation
Could the agent have found the right file, command, dependency, or domain term sooner? Prefer a short navigation pointer or a `GLOSSARY.md` entry over a large instruction block.
### Automated checks
Could a deterministic test, linter, typecheck, pre-commit hook, or CI job catch the mistake? Read the existing check commands first. If a check exists but is not wired or is silently broken, fix the wiring rather than inventing another check.
Mechanical mistakes belong in automation: banned APIs, required file locations, schema shape, generated-file drift, import rules, or formatting. A sentence saying “remember to do this” is not a guardrail.
### Coding standards
Reserve `CODING_STANDARDS.md` for judgement calls that automation cannot decide: cross-file consistency, design fit, naming in context, and review expectations. Put reviewer-facing rules there, not implementation trivia.
### Steering files
Remove no-op advice and move detailed procedures into skills or docs. Keep `AGENTS.md` and equivalent files short, navigational, and high-signal. Check for stale names such as `CONTEXT.md`; this repository uses `GLOSSARY.md` when that convention applies.
### Tool economy
Look for repeated broad searches, redundant reads, missing filters, or expensive calls that a narrow command could replace. Recommend a tool or script change only when it reduces repeated cost without hiding important output.
### Information access
Identify information the agent needed but could not access: logs, service status, readonly API data, fixtures, schemas, or architecture notes. Prefer safe readonly access and concise pointers.
### Skill drift
When an installed or existing skill repeatedly needs correction, compare the same input across the old and revised versions. Treat the difference as evidence of skill drift: the user's standard moved, the skill was underspecified, or the rule was too literal. Record the smallest durable change and its verification result.
### Memory-store learning loop
A retrospective that only looks at one session forgets on the next one. Also mine the durable stores, so repeated lessons become repository changes instead of re-learned memories:
1. Read the memory layer the session used, per `~/.ai-tools/MEMORY.md`: `qmd` collections for project learnings (`qmd search`), `agentmemory` for session findings (`memory_recall`), and `~/.ai-tools/MEMORY.md` / `agent-memory.md` themselves.
2. Cluster the entries by theme. A theme with three or more independent entries is a pattern, not a note.
3. For each pattern, propose the smallest durable home: a deterministic check or hook, a line in the canonical section (`configs/token-efficiency.md`, `configs/experiment-workspaces.md`), or a skill change.
4. Deliver each proposal where it belongs. A fix that is specific to one
project goes as a patch-ready diff against that project's own repository,
so it lands where the gap lives; only shared, cross-project changes go to
the my-ai-tools repository, one commit per theme, so they land through the
repository's PR flow and reach every machine through the installer. A
change to a shared skill must also update its Amp plugin mirror copy
(`configs/amp/plugins/my-ai-tools-skills/skills/<name>/`), so the
installed plugin and the skills source stay identical; verify with
`diff -qr` before pushing. Run
`./scripts/sync-token-efficiency.sh` after editing canonical sections, and
`./scripts/sync-token-efficiency.sh --check` before pushing.
This keeps the loop human-approved (the Output rules still apply) but gives it a destination: memory stores hold observations, the repository holds rules.
## Output
Present the result in this order:
1. **Keep:** practices that worked and should remain.
2. **High priority:** concrete changes with a clear prevention payoff.
3. **Medium priority:** useful but non-blocking improvements.
4. **Do not change:** ideas that are speculative, noisy, or better handled manually.
5. **Smallest next step:** one or two changes the user can approve.
For each candidate, include the exact target path and a proposed patch shape. Do not silently apply it. When the user approves, make one focused change at a time, run the relevant checks, and report the result.
## Anti-patterns
- Do not rewrite product code as a retrospective fix.
- Do not turn every one-off failure into a new rule.
- Do not add prose where a deterministic check is possible.
- Do not grow `AGENTS.md` into a procedural manual.
- Do not automate retrospectives that edit the repository without human selection.
- Do not claim a session finding without pointing to evidence.
## Verification Checklist
- [ ] Correct session or date range was inspected.
- [ ] Findings are grounded in transcript, diff, or repository evidence.
- [ ] Existing checks and steering files were read before proposing new ones.
- [ ] Mechanical violations are assigned to deterministic automation.
- [ ] Judgement calls are assigned to review standards.
- [ ] Findings are ranked by severity and leverage.
- [ ] Human edits were captured as before/after evidence where a skill change is proposed.
- [ ] Proposed rules describe decisions and boundaries, not only desired outputs.
- [ ] The original input was rerun to verify that the skill actually learned the change.
- [ ] No environment change was applied without user approval.