File contents 用户要求进行一次 retrospective 。你要为 coding agent 的 environment 提出改进建议,帮助未来的 session。
步骤
使用 writing-for-agents Skill 获取写作风格指南。
读取用户指定 session 的 primary sources。这可能意味着搜索本机上的 session logs。如果用户没有指定 session,默认使用当前 session。
从以下类别中寻找改进候选项。
Navigation :agent 找到正确文件的过程是否顺畅?文件之间是否存在隐藏依赖?增加 navigation pointer 是否会更容易?适用于 session 花了很长时间才找到某条信息的情况。
Automated checks :是否可以通过自动化检查捕获 agent 犯的错误?例如 lint、typing、tests、filesystem linter?适用于 agent 犯了本可由自动化检查发现的错误的情况。
Coding standards :是否应该给 reviewer agent 增加一条必须执行的新规则?是否应该删除或澄清现有规则?适用于 reviewer agent 没有发现某个错误的情况。
Global AGENTS.md :是否有 steering instructions 应该移入 coding standards 或 automated checks?适用于 repo 或用户全局范围内的 AGENTS.md 过于庞大的情况。
Tool economy :agent 是否进行了可以精简的昂贵 tool calls?是否存在 token 使用效率特别低的自定义 tooling(CLI、MCP tools)?适用于 agent 进行了昂贵 tool call 的情况。
No-ops :查找 steering files 中不会改变 agent 行为的指令。适用于 steering files 过大且难以维护的情况。
Information access :查找增加 agent 信息获取能力的机会,例如接入 dev server logs、提供对第三方服务的只读访问。适用于 agent 无法获得某项关键信息的情况。
按严重程度排序,向用户展示这些候选项。
参考
Implementation 与 Review
请记住,所有工作都要经过两个阶段:implementation 和 review。implementation agent 承受最大的 context pressure ,负责探索、编写代码和调试失败。
review agent 承受的 context pressure 最小,因为它直接接收 diff,不需要探索。它通常也不需要编写代码或调试。
因此,应由 review agent 负责施加 coding standards,而不是 implementation agent。
文件
你可以访问 repo 中的以下文件:
CLAUDE.md/AGENTS.md:这些文件会被推送到在该 repo 中工作的 agent 的 context window。应极其克制地使用,通常只用来提供指向其他文件的 navigation pointers 。
CODING_STANDARDS.md:该文件在 review 阶段读取,而不是 implementation 阶段。若 standards file 超过 1,000 行,应增加指向 docs folders 的 navigation pointers 。
Docs:将 docs 作为参考文件,并从其他文件指向它们。写新文档前先查找已有 docs。
Skills:对于文档内容使用 skills(因为 skill 的 description 会进入 agent 的 context window);对于用户调用的命令也使用 skills。遵循 writing-for-agents skill 的建议。
1 --- 2 name: retro 3 description: 复盘一次 coding session。 4 --- 5 6 用户要求进行一次 **retrospective**。你要为 coding agent 的 **environment** 提出改进建议,帮助未来的 session。 7 8 ## 步骤 9 10 1. 使用 `writing-for-agents` Skill 获取写作风格指南。 11 12 2. 读取用户指定 session 的 primary sources。这可能意味着搜索本机上的 session logs。如果用户没有指定 session,默认使用当前 session。 13 14 3. 从以下类别中寻找改进候选项。 15 16 - **Navigation**:agent 找到正确文件的过程是否顺畅?文件之间是否存在隐藏依赖?增加 **navigation pointer** 是否会更容易?_适用于_ session 花了很长时间才找到某条信息的情况。 17 - **Automated checks**:是否可以通过自动化检查捕获 agent 犯的错误?例如 lint、typing、tests、filesystem linter?_适用于_ agent 犯了本可由自动化检查发现的错误的情况。 18 - **Coding standards**:是否应该给 **reviewer agent** 增加一条必须执行的新规则?是否应该删除或澄清现有规则?_适用于_ reviewer agent 没有发现某个错误的情况。 19 - **Global AGENTS.md**:是否有 steering instructions 应该移入 coding standards 或 automated checks?_适用于_ repo 或用户全局范围内的 AGENTS.md 过于庞大的情况。 20 - **Tool economy**:agent 是否进行了可以精简的昂贵 tool calls?是否存在 token 使用效率特别低的自定义 tooling(CLI、MCP tools)?_适用于_ agent 进行了昂贵 tool call 的情况。 21 - **No-ops**:查找 steering files 中不会改变 agent 行为的指令。_适用于_ steering files 过大且难以维护的情况。 22 - **Information access**:查找增加 agent 信息获取能力的机会,例如接入 dev server logs、提供对第三方服务的只读访问。_适用于_ agent 无法获得某项关键信息的情况。 23 24 4. 按严重程度排序,向用户展示这些候选项。 25 26 ## 参考 27 28 ### Implementation 与 Review 29 30 请记住,所有工作都要经过两个阶段:implementation 和 review。implementation agent 承受最大的 **context pressure**,负责探索、编写代码和调试失败。 31 32 review agent 承受的 context pressure 最小,因为它直接接收 diff,不需要探索。它通常也不需要编写代码或调试。 33 34 因此,应由 review agent 负责施加 coding standards,而不是 implementation agent。 35 36 ### 文件 37 38 你可以访问 repo 中的以下文件: 39 40 - `CLAUDE.md`/`AGENTS.md`:这些文件会被推送到在该 repo 中工作的 agent 的 context window。应极其克制地使用,通常只用来提供指向其他文件的 **navigation pointers**。 41 - `CODING_STANDARDS.md`:该文件在 review 阶段读取,而不是 implementation 阶段。若 standards file 超过 1,000 行,应增加指向 docs folders 的 **navigation pointers**。 42 - Docs:将 docs 作为参考文件,并从其他文件指向它们。写新文档前先查找已有 docs。 43 - Skills:对于文档内容使用 skills(因为 skill 的 description 会进入 agent 的 context window);对于用户调用的命令也使用 skills。遵循 `writing-for-agents` skill 的建议。
oldwinter/mattpocock-skills/tree/main/skills/in-progress/retro commit dee68671cd
Frequently asked questions How do I install the Retro skill? Run npx skillmds@latest add oldwinter/retro in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Retro skill do? 复盘一次 coding session。 It is listed under Coding & Dev Tools on SkillMD.
Is Retro safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Retro? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Retro free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Retro? oldwinter (@oldwinter) published this skill. Their other Agent Skills are listed on their SkillMD profile.