dev-retro
Skill0 starsChanged 5 days agoApache-2.0View on GitHub
任务复盘规范:触发条件、失败模式分类、单变量改进提案格式(现象/证据/预期指标/回滚),禁止把一次性偏好当规则。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- codeaholicguy/ai-devkittheir own version, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- codeaholicguy/ai-devkit★ 1.7ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dev-code-reviewSkill
- dev-dispatch-contractSkill
- dev-environmentSkill
- dev-implementation-planSkill
- dev-observabilitySkill
- dev-quality-gateSkill
- dev-releaseSkill
- dev-role-developerSkill
- dev-role-testerSkill
- dev-systematic-debuggingSkill
- dev-test-strategySkill
- dev-ui-reviewSkill
- dev-ui-verifySkill
- dev-worktree-gitSkill
The file
Files
任务复盘
复盘的产物不是感想,而是一条可验证的改进提案。没有证据的归因不算归因, 一次改多个变量等于没改。
触发条件
必须复盘:
- 任务交付后(无论成败),尤其是延期或返工的;
- 同一类失败第二次出现(第一次允许只记录);
- Tester 判 fail 后修复完成;
- 某个做法被反复证明有效,值得沉淀为规则。
不必复盘:
- 纯机械改动且一次通过(记录一行即可);
- 尚未结束的任务(等有结论再复盘)。
步骤
- 收集事实:时间线、输入、预期、实际、命令与输出;只写可核对的信息。
- 归因:把偏差落到具体环节,不接受「模型不行」「需求不清」这类结论。
- 分类:套用下方失败模式表,确定是哪一类。
- 提改进:一次只改一个变量,写清预期影响与回滚方式。
- 预注册判据:动手前写定指标与观察窗口,事后不调整。
- 验证:按预注册口径执行;达标保留,不达标回滚。
- 沉淀:有效做法写进对应 Skill / 规则 / 测试;无效尝试保留为负结果。
失败模式分类
| 类别 | 典型表现 | 优先修的地方 |
| 需求理解 | 做出来的不是用户要的 | 拆解 Skill 的 Why/Do What 段 |
| 拆解粒度 | 任务太大、超时、返工 | 任务粒度判据(一次交付一个可验证增量) |
| 派发契约 | 子 agent 缺信息、猜参数 | 派发卡片的必填项 |
| 环境问题 | 依赖装不上、版本不符、端口冲突 | 栈 reference 的环境准备段 |
| 实现缺陷 | 逻辑错、边界漏、错误未处理 | 编码规范 + 测试覆盖 |
| 验证缺失 | 假绿、未复跑、断言被放宽 | dev-role-tester 与质量闸门 |
| 协作时序 | 并行任务互相覆盖、等错信号 | 依赖 DAG 与状态表 |
| 文档漂移 | 声明、正文与 README 不一致 | 加声明 / 正文一致性测试 |
改进提案格式
每条提案必须包含以下 6 项,缺一项就不提交:
### 提案:<一句话改动>
- 现象:<可观察的事实,含时间/次数>
- 证据:<命令 + 输出片段 / commit / 日志路径>
- 根因:<落到具体环节,引用失败模式类别>
- 单变量改动:<只改这一处,写清改前 → 改后>
- 预期指标:<指标名 + 当前值 → 目标值 + 观察窗口>
- 回滚方式:<怎么撤销,撤销后如何确认恢复>示例(合格):
### 提案:dev-test-strategy 增加 references 路由可达性检查
- 现象:task-04 首轮交付后,安装环境里 references/ 目录为空,路由指向 404;
同类问题在 task-03 出现过 1 次。
- 证据:`ls skills/dev-test-strategy/references` → `No such file or directory`;
`pnpm test` 仍全绿(无覆盖,用例数以实际输出为准)。
- 根因:验证缺失 —— 只断言 SKILL.md 存在,未断言被引用资源存在。
- 单变量改动:在 tests/domain.spec.ts 增加「5 个 ref 文件存在且非空」断言。
- 预期指标:该类问题复发次数 2 → 0,观察窗口 30 天(3 个独立任务)。
- 回滚方式:删除该用例;若删除后测试仍绿,说明断言未生效,需复查。反例(不合格):
- 「以后要注意测试覆盖率」——没有指标、没有单变量、无法回滚;
- 「把整个 Skill 重写一遍」——多变量,无法判断哪处生效;
- 「让模型更仔细」——不可执行、不可观测。
单变量纪律
- 一轮只改一个地方;同时改两处,指标变好也不知道是谁的功劳;
- 改动前先记录基线值,否则事后无法比较;
- 观察窗口内不改其他规则,避免污染;
- 不达标就回滚,不叠加第二个改动去「救」。
禁止项
- 禁止把一次性偏好当规则(「这次用户喜欢短回复」≠「以后都短回复」);
- 禁止没有证据的归因(「感觉是环境问题」);
- 禁止追责个人,只追流程与文档;
- 禁止在提案里写不可观测的指标(「体验更好」);
- 禁止事后修改预注册的判据来让提案「达标」;
- 禁止绕过测试直接改 Skill 正文(frontmatter 声明与正文必须同步)。
检查清单
- 事实部分只有可核对的信息,含命令与输出;
- 根因落到具体环节,并对应失败模式表的一类;
- 提案 6 项齐全(现象/证据/根因/单变量/指标/回滚);
- 指标可量化,含当前值、目标值与观察窗口;
- 本轮只改一个变量,基线已记录;
- 达标后已沉淀到对应 Skill/规则/测试,不达标已回滚;
- 负结果已记录,避免下次重复尝试。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

