# Lessons Loop

> Lessons Loop is an Agent Skill for agent building published in the WenJunDuan/Rlues repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

自我改进循环 — 用户纠正后触发, 写入 knowledge.md 教训段

- Skill name: `lessons-loop`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/WenJunDuan/Rlues/blob/HEAD/vibeCoding/old-version/config-agent_v8.6.5/claude-code/.claude/skills/lessons-loop/SKILL.md
- Repository: WenJunDuan/Rlues (182 GitHub stars when collected)

## SKILL.md

# 自我改进循环

## 触发条件
- 用户纠正了错误 (代码/设计/理解)
- 测试发现意外失败

## 执行
1. 识别: 什么错了 → 为什么错 → 什么条件下会重犯
2. 写入 `knowledge.md` 教训段:
   `## [日期] [模块] — [SCOPE/TECH/ARCH/IMPL/TEST/STYLE]`
   `- 错误/根因/规则`
3. 立即在当前任务应用新规则
4. 未来会话 R₀a 阶段回顾

---

Source: https://www.openparable.com/skill/agent-building/lessons-loop (OpenParable). Cite the canonical URL above.
