← 教程列表
实战📊 中级🛠 AI赚钱

4. subagent-driven-development: Add Self-Reflection Step

📅 2026/6/14 15:43:48⏱ 约 5 分钟阅读👁 10 阅读

**Modify Step 2: Execute Task with Subagent** **Add to prompt template:** ``` When done, BEFORE reporting back: Take a step back and review your work with fresh eyes. Ask yourself: - Does this actually solve the task as specified? - Are there edge cases I didn't consider? - Did I follow the pattern correctly? - If tests are failing, what's the ROOT CAUSE (implementation bug vs test bug)? - What could be better about this implementation? If you identify issues during this reflection, fix them now. Then report: - What you implemented - Self-reflection findings (if any) - Test results - Files changed ``` **Why this works:** Catches bugs implementer can find themselves before handoff. Documented case: identified entrypoint bug through self-reflection. **Trade-off:** Adds ~30 seconds per task, but catches issues before review. ---

← 返回教程列表 AI8899 · 内容仅供学习参考