compound
Installation
SKILL.md
/compound — 经验沉淀
Gate PASS 后触发 (或用户显式调用 /compound)。
输入
- .ai_state/reviews/sprint-N.md (审查报告)
- git diff (本 Sprint 的所有变更)
- .ai_state/tasks.md (完成项)
- .ai_state/design.md (设计 vs 实际实现对比)
提炼方法
从以上输入里找真实发现,不写仪式性废话。每 Sprint 0-N 条不强制。
- Pattern: 什么解法有效且可复用?(带代码行号 / 文件路径)
- Pitfall: 什么坑踩过?未来同类场景要提前避开
- Constraint: 发现的新约束 (依赖版本、环境、性能边界、API 限制)
没发现可提炼的 → 不写,直接告知用户 "no new lesson"。不允许编造。