Ретро сессии с агентом
Разбирает прошедшую сессию агента по логам и предлагает, что поменять в окружении: указатели в CLAUDE.md, правила линтера, pre-commit и CI, стандарты для ревью, вызовы инструментов. Для случаев, когда агент долго искал нужное или ошибался.
retro- Автор
- Matt Pocock
- Источник
- mattpocock/skills/skills/engineering/retro @ abeeaf9
- Лицензия
- MIT · Copyright (c) 2026 Matt Pocock
Об этом скилле
Что делает
Скилл разбирает прошедшую сессию с агентом и ищет, что поменять в окружении агента, чтобы следующий прогон прошёл лучше. Сначала агент подгружает авторское руководство по стилю writing-for-agents, затем читает сессию, которую вы назовёте, — при необходимости находит её в логах сессий на вашей машине. По умолчанию берётся текущая.
Проверяются семь направлений: навигация (сэкономил бы указатель в CLAUDE.md или AGENTS.md долгий поиск), автоматические проверки, правила для агента-ревьюера, раздутый глобальный AGENTS.md, дорогие вызовы инструментов, инструкции, которые ничего не меняют в поведении, и недостающая информация вроде логов dev-сервера. Сначала агент читает скрипты линтинга и CI самого репозитория: если проверка есть, но не подключена или сломана, находка именно в этом. Репозиторий без pre-commit хука и без CI-задачи с линтером, проверкой типов или тестами — тоже находка. Механическое правило превращается в правило линтера, хук или CI-задачу, а в CODING_STANDARDS.md остаются вопросы, где нужно суждение. На выходе — список, отсортированный по серьёзности; сам агент ничего не применяет.
Когда включать и когда не надо
После сессии, где агент долго искал файл, допустил ошибку, которую поймал бы линтер, или сжёг токены на тяжёлом вызове инструмента.
Не нужен для ревью самого изменения и для командной ретроспективы о людях: скилл смотрит только на то, что агент читает и запускает.
Как поставить и вызвать
Команда установки ниже кладёт папку целиком: SKILL.md, лицензию и манифест для Codex agents/openai.yaml. В скилле стоит disable-model-invocation: true, поэтому сам агент его не запускает — только по вызову:
- Claude Code: только командой
/retro— если просто назвать скилл в сообщении, агент его не запустит. - Codex:
$retro. - Cursor: наберите
/в чате Agent и выберитеretro.
Пример: /retro Разбери вчерашнюю сессию, где агент час искал конфиг платежей. Что поменять в репозитории?
Поставьте и Тексты для агентов: скиллы и AGENTS.md — первый шаг его вызывает. Советы по стандартам рассчитаны на ревьюера, который читает CODING_STANDARDS.md; так работает скилл автора Ревью по стандартам и спецификации.
Чем отличается от похожих
Настройка контекста агента готовит файлы правил и контекст заранее. Retro работает после, по следам одной сессии, и предпочитает автоматическую проверку ещё одной строке в AGENTS.md. Как писать скиллы проверяет один документ скилла на субагентах, а retro смотрит на окружение целиком. Если retro предлагает страховочную проверку в репозитории на JavaScript или TypeScript, Настройка pre-commit хуков поставит Husky и lint-staged. Других скиллов для разбора законченной сессии в каталоге нет.
Установка
Выполните одну команду — она сохранит SKILL.md и файлы, которые он использует, в папку скиллов агента. Claude Code и Codex подхватывают новый скилл без перезапуска; если скилл не появился, перезапустите агента.
Скилл написан на английском — агент поймёт его и ответит вам по-русски.
curl -fsSL --create-dirs -o ~/.claude/skills/retro/SKILL.md https://anymodel.org/en/skills/matt-pocock/retro/SKILL.md -o ~/.claude/skills/retro/LICENSE https://anymodel.org/en/skills/matt-pocock/retro/LICENSE -o ~/.claude/skills/retro/agents/openai.yaml https://anymodel.org/en/skills/matt-pocock/retro/agents/openai.yaml
curl -fsSL --create-dirs -o ~/.agents/skills/retro/SKILL.md https://anymodel.org/en/skills/matt-pocock/retro/SKILL.md -o ~/.agents/skills/retro/LICENSE https://anymodel.org/en/skills/matt-pocock/retro/LICENSE -o ~/.agents/skills/retro/agents/openai.yaml https://anymodel.org/en/skills/matt-pocock/retro/agents/openai.yaml
foreach ($f in 'SKILL.md','LICENSE','agents/openai.yaml') { $p = Join-Path "$HOME\.claude\skills\retro" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/matt-pocock/retro/$f" -UseBasicParsing -OutFile $p }foreach ($f in 'SKILL.md','LICENSE','agents/openai.yaml') { $p = Join-Path "$HOME\.agents\skills\retro" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/matt-pocock/retro/$f" -UseBasicParsing -OutFile $p }Другой агент: сохраните файл в его папку скиллов или дайте ему ссылку на файл: https://anymodel.org/en/skills/matt-pocock/retro/SKILL.md
SKILL.md
The user has asked for a retrospective. You are suggesting improvements to the coding agent's environment to improve future runs.
Steps
Call the Skill tool with
writing-for-agentsfor the writing style guide.Read the primary sources for the session the user specifies. This may mean searching through session logs on this machine. If the user doesn't specify a session, default to the current one.
Look for candidates for improvement in these categories.
- Navigation: how easy was it for the agent to find the right files? Are there hidden dependencies between files? Would a navigation pointer make it easier? Use when the session took a long time to find a piece of information.
- Automated checks: are there automated checks that could catch errors the agent made? Linting, typing, tests, filesystem linters? Read the repo's own check command first (its
package.json/build-toollint/checkscripts, its CI workflow), so a check that already exists but sits unwired or silently broken is the finding, not a reinvention. A repo with no guardrail (no pre-commit hook and no CI job running its lint/typecheck/test command) is itself a finding: an un-linted repo is a standing missed opportunity, not a neutral default. Use when the agent made a mistake an automated check could have caught, or the repo has no guardrail at all. - Coding standards: should the reviewer agent be given a new rule to enforce? Should an existing rule be removed or clarified? Classify the violation first: a mechanical one (a fixed syntactic pattern, a banned API, an import shape, a file-location rule) gets a deterministic check, full stop: a custom rule in the repo's own linter, a new pre-commit hook, or a new CI job, whichever the repo's language and existing guardrail make cheapest. Default to building the check over writing the rule. Reserve
CODING_STANDARDS.mdfor genuine judgement calls (cross-file consistency, "matches the surrounding style," anything no guardrail could ever substitute for). Use when the reviewer agent failed to catch a mistake. - Global AGENTS.md: are there any steering instructions that should be moved to coding standards (or automated checks) instead? Use when the AGENTS.md file is particularly large - in the repo OR the user's global scope.
- Tool economy: did the agent make expensive tool calls that could be streamlined? Is there any custom tooling (CLI's, MCP's) that is particularly token-inefficient? Use when the agent made an expensive tool call.
- No-ops: look for instructions in steering files that don't modify the agent's behavior. Use when the steering files are large and unwieldy.
- Information access: look for opportunities to increase the agent's access to information. Teeing dev server logs, readonly access to third-party services. Use when a crucial piece of information was not available to the agent.
- Present these candidates to the user, in order of severity.
Reference
Implementation vs Review
Remember that all work goes through two stages: implementation and review. The implementation agent has the most context pressure. They are responsible for exploration, writing code, and debugging failures.
The review agent has the least context pressure - it receives a diff, so no exploration needed. It often does not need to write code or debug.
This means that the review agent should be responsible for imposing coding standards, not the implementation agent.
Files
You have access to several files in the repo:
CLAUDE.md/AGENTS.md: these files are pushed to the context window of any agent working in this repo. They should be used incredibly sparingly, usually only for navigation pointers to other files.CODING_STANDARDS.md: this file is read during review, not implementation. Add navigation pointers to docs folders if the standards file gets more than 1,000 lines long.- Docs: use docs as references files, pointed to by other files. Look for existing docs before writing new ones.
- Skills: use skills for docs (since their description goes into the agent's context window), or for user-invoked commands. Follow the advice in the
writing-for-agentsskill.
Подключить через AnyModel API
Скилл работает на той модели, которую использует агент. Подключите Claude Code, Codex или Cursor к AnyModel и запускайте его на Claude, GPT, Gemini и других моделях по одному ключу — оплата за токены, без подписки.
AnyModel