feat: add retrospective intelligence to create-story workflow
Load all retrospective files during story creation to carry forward lessons learned, open action items, architecture corrections, and deferred code review items. Fulfills Epic 2 retro action item A1. Also includes Epic 2 retrospective and sprint status updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,13 @@ so that {{benefit}}.
|
||||
- [ ] Task 2 (AC: #)
|
||||
- [ ] Subtask 2.1
|
||||
|
||||
## Retrospective Intelligence
|
||||
|
||||
- Applicable lessons from previous epics
|
||||
- Open action items affecting this story
|
||||
- Architecture corrections to incorporate
|
||||
- Deferred code review items relevant here
|
||||
|
||||
## Dev Notes
|
||||
|
||||
- Relevant architecture patterns and constraints
|
||||
|
||||
@@ -44,6 +44,7 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
||||
| architecture | Architecture (fallback - epics file should have relevant sections) | whole: `{planning_artifacts}/*architecture*.md`, sharded: `{planning_artifacts}/*architecture*/*.md` | SELECTIVE_LOAD |
|
||||
| ux | UX design (fallback - epics file should have relevant sections) | whole: `{planning_artifacts}/*ux*.md`, sharded: `{planning_artifacts}/*ux*/*.md` | SELECTIVE_LOAD |
|
||||
| epics | Enhanced epics+stories file with BDD and source hints | whole: `{planning_artifacts}/*epic*.md`, sharded: `{planning_artifacts}/*epic*/*.md` | SELECTIVE_LOAD |
|
||||
| retrospective | Latest retrospective for lessons learned, action items, and architecture corrections | whole: `{implementation_artifacts}/*retro*.md` | FULL_LOAD |
|
||||
|
||||
---
|
||||
|
||||
@@ -214,7 +215,22 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
||||
<!-- Load all available content through discovery protocol -->
|
||||
<action>Read fully and follow `./discover-inputs.md` to load all input files</action>
|
||||
<note>Available content: {epics_content}, {prd_content}, {architecture_content}, {ux_content},
|
||||
{project_context}</note>
|
||||
{project_context}, {retrospective_content}</note>
|
||||
|
||||
<!-- Load retrospective lessons — Team Agreement: non-negotiable (Epic 2 Retro) -->
|
||||
<critical>🔄 RETROSPECTIVE INTELLIGENCE — Load lessons learned from previous epics to prevent repeated mistakes!</critical>
|
||||
<check if="retrospective files found in {retrospective_content}">
|
||||
<action>From {retrospective_content}, extract and prioritize for current story:</action>
|
||||
**RETROSPECTIVE INTELLIGENCE:**
|
||||
- Action items still open or relevant to this epic
|
||||
- Architecture corrections and doc drift identified
|
||||
- Code patterns that worked well (to replicate)
|
||||
- Problems encountered and solutions found (to avoid repeating)
|
||||
- Team agreements and conventions established
|
||||
- Deferred code review items that may affect this story
|
||||
<action>Flag any action item that directly impacts this story's implementation</action>
|
||||
<action>Include relevant retrospective lessons in the story's Dev Notes section</action>
|
||||
</check>
|
||||
|
||||
<!-- Analyze epics file for story foundation -->
|
||||
<action>From {epics_content}, extract Epic {{epic_num}} complete context:</action> **EPIC ANALYSIS:** - Epic
|
||||
@@ -312,6 +328,11 @@ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
|
||||
file_structure_requirements</template-output>
|
||||
<template-output file="{default_output_file}">testing_requirements</template-output>
|
||||
|
||||
<!-- Retrospective intelligence -->
|
||||
<check if="retrospective lessons available">
|
||||
<template-output file="{default_output_file}">retrospective_intelligence</template-output>
|
||||
</check>
|
||||
|
||||
<!-- Previous story intelligence -->
|
||||
<check
|
||||
if="previous story learnings available">
|
||||
|
||||
Reference in New Issue
Block a user