Revise Report Generation
Generates structured revise reports to capture insights, learnings, and traceability from Beads Epics.
Prerequisites
- Beads Epic ID (e.g.,
bd-1234)
- Beads CLI (
bd) installed and configured
- Tasks within the Epic populated with comments (specifically "Revision Learning" and "Commit")
- Confirm there are no open follow-up tasks created from PR review comments (final review should create these first, and revise report runs only after they are closed)
Report Structure
Epic Revise Report
1. Epic Summary
- Status of the Epic and child tasks.
- Overall completion rate.
2. Traceability Matrix
- Table mapping Task ID -> Title -> Status -> Commit Hash.
3. Evidence & Screenshots
- Screenshot directory location and count.
- Key screenshots with descriptions and links.
- Evidence organization by task.
4. Improvement Recommendations
- Documentation: Missing docs, outdated content, gaps in onboarding.
- Process: Workflow friction, automation opportunities, quality gate improvements.
- Rules & Standards: Cursor rules updates, coding standards violations, pattern inconsistencies.
- Tech Architecture: Code structure issues, dependency concerns, technical debt, performance considerations.
5. Action Items
- Prioritized, actionable steps to address improvements (Critical, High, Medium, Low).
Report Generation Process
Step 1: Data Gathering
Command: bd list --parent <EpicID> --json
- Retrieves all child tasks.
- Ensure any PR review follow-up tasks are closed before proceeding.
For each task: bd comments <TaskID> --json
- Retrieves all comments.
- Filter: Look for comments starting with:
Revision Learning: (may include structured format with Category, Priority, Issue, Recommendation)
Commit:
Screenshots captured: (screenshot paths)
Quality gates failed (to track rework)
Step 2: Analysis & Categorization
Traceability:
- Extract Commit Hash and Subject from
Commit: comments.
- If missing, flag as "Missing Traceability".
Learning Categorization:
- Parse text after
Revision Learning:.
- Structured Format Support: If learning includes structured fields:
- Extract
Category: (Documentation|Process|Rules|Architecture)
- Extract
Priority: (Critical|High|Medium|Low)
- Extract
Issue: (description)
- Extract
Recommendation: (actionable improvement)
- Extract
Files/Rules Affected: (references)
- Auto-Classification: If not structured, classify into:
- Documentation: Missing context, unclear specs, outdated docs, onboarding gaps.
- Process: Instructions, prompting, workflow steps, automation opportunities, quality gates.
- Rules & Standards: Cursor rules, coding standards, pattern inconsistencies, best practices.
- Tech Architecture: Coding patterns, libraries, APIs, code structure, dependencies, technical debt, performance.
Screenshot Collection:
- Extract screenshot paths from
Screenshots captured: comments.
- Group screenshots by task ID.
- Verify screenshot files exist in project directory.
- Count total screenshots and identify key screenshots for inclusion.
Step 3: Report Construction
Filename: YYYY-MM-DD_revise-report-epic-<EpicID>.md or YYYY-MM-DD_<epic-id>-improvements.md
Location: .devagent/workspace/reviews/
Template:
# Epic Revise Report - <Epic Title>
**Date:** YYYY-MM-DD
**Epic ID:** <EpicID>
**Status:** <EpicStatus>
## Executive Summary
<2-3 sentence overview of the epic's execution and key takeaways>
## Traceability Matrix
| Task ID | Title | Status | Commit |
| :--- | :--- | :--- | :--- |
| bd-xxxx.1 | Implement Feature X | closed | `a1b2c3d` - feat: ... |
| bd-xxxx.2 | Fix Bug Y | in_progress | *Pending* |
## Evidence & Screenshots
- **Screenshot Directory**: `.devagent/workspace/reviews/<epic-id>/screenshots/`
- **Screenshots Captured**: [count] screenshots across [count] tasks
- **Key Screenshots**:
- [Task ID]: [description] - `screenshots/[filename].png`
- [Task ID]: [description] - `screenshots/[filename].png`
## Improvement Recommendations
### Documentation
- [ ] **[Priority] Missing**: [description] - [impact] - [files affected]
- [ ] **[Priority] Outdated**: [description] - [current state] - [needs update to]
- [ ] **[Priority] Gap**: [description] - [impact] - [recommendation]
### Process
- [ ] **[Priority] Workflow**: [friction point] - [suggestion] - [benefit]
- [ ] **[Priority] Automation**: [opportunity] - [implementation approach] - [benefit]
- [ ] **[Priority] Quality Gate**: [issue] - [recommendation] - [impact]
### Rules & Standards
- [ ] **[Priority] Cursor Rule**: [rule file] - [issue] - [recommended change]
- [ ] **[Priority] Pattern**: [pattern name] - [inconsistency] - [standard to apply]
- [ ] **[Priority] Coding Standard**: [violation] - [recommendation] - [files affected]
### Tech Architecture
- [ ] **[Priority] Structure**: [issue] - [current approach] - [recommended approach]
- [ ] **[Priority] Dependency**: [concern] - [risk] - [mitigation]
- [ ] **[Priority] Technical Debt**: [issue] - [impact] - [recommendation]
- [ ] **[Priority] Performance**: [concern] - [current state] - [optimization approach]
## Action Items
1. [ ] **[Priority]** <Action Item> - [from category]
2. [ ] **[Priority]** <Action Item> - [from category]
Validation
- Ensure every "Revision Learning" is captured.
- Ensure every "Commit" is linked.
- Verify Action Items are actionable.
1---2name: revise-report-generation3description: Generates structured revise reports for Epics by aggregating task comments and learnings. Use when: (1) An Epic is completed or substantially progressed, (2) You want to consolidate "Revision Learning" comments from multiple tasks, (3) You need a traceability report linking tasks to commits.4---5
6# Revise Report Generation
7
8Generates structured revise reports to capture insights, learnings, and traceability from Beads Epics.
9
10## Prerequisites
11
12- Beads Epic ID (e.g., `bd-1234`)
13- Beads CLI (`bd`) installed and configured
14- Tasks within the Epic populated with comments (specifically "Revision Learning" and "Commit")
15- Confirm there are no open follow-up tasks created from PR review comments (final review should create these first, and revise report runs only after they are closed)
16
17## Report Structure
18
19### Epic Revise Report
20
21**1. Epic Summary**
22- Status of the Epic and child tasks.
23- Overall completion rate.
24
25**2. Traceability Matrix**
26- Table mapping Task ID -> Title -> Status -> Commit Hash.
27
28**3. Evidence & Screenshots**
29- Screenshot directory location and count.
30- Key screenshots with descriptions and links.
31- Evidence organization by task.
32
33**4. Improvement Recommendations**
34- **Documentation:** Missing docs, outdated content, gaps in onboarding.
35- **Process:** Workflow friction, automation opportunities, quality gate improvements.
36- **Rules & Standards:** Cursor rules updates, coding standards violations, pattern inconsistencies.
37- **Tech Architecture:** Code structure issues, dependency concerns, technical debt, performance considerations.
38
39**5. Action Items**
40- Prioritized, actionable steps to address improvements (Critical, High, Medium, Low).
41
42## Report Generation Process
43
44### Step 1: Data Gathering
45
46**Command:** `bd list --parent <EpicID> --json`
47- Retrieves all child tasks.
48- Ensure any PR review follow-up tasks are closed before proceeding.
49
50**For each task:** `bd comments <TaskID> --json`
51- Retrieves all comments.
52- **Filter:** Look for comments starting with:
53 - `Revision Learning:` (may include structured format with Category, Priority, Issue, Recommendation)
54 - `Commit:`
55 - `Screenshots captured:` (screenshot paths)
56 - `Quality gates failed` (to track rework)
57
58### Step 2: Analysis & Categorization
59
60**Traceability:**
61- Extract Commit Hash and Subject from `Commit:` comments.
62- If missing, flag as "Missing Traceability".
63
64**Learning Categorization:**
65- Parse text after `Revision Learning:`.
66- **Structured Format Support:** If learning includes structured fields:
67 - Extract `Category:` (Documentation|Process|Rules|Architecture)
68 - Extract `Priority:` (Critical|High|Medium|Low)
69 - Extract `Issue:` (description)
70 - Extract `Recommendation:` (actionable improvement)
71 - Extract `Files/Rules Affected:` (references)
72- **Auto-Classification:** If not structured, classify into:
73 - **Documentation:** Missing context, unclear specs, outdated docs, onboarding gaps.
74 - **Process:** Instructions, prompting, workflow steps, automation opportunities, quality gates.
75 - **Rules & Standards:** Cursor rules, coding standards, pattern inconsistencies, best practices.
76 - **Tech Architecture:** Coding patterns, libraries, APIs, code structure, dependencies, technical debt, performance.
77
78**Screenshot Collection:**
79- Extract screenshot paths from `Screenshots captured:` comments.
80- Group screenshots by task ID.
81- Verify screenshot files exist in project directory.
82- Count total screenshots and identify key screenshots for inclusion.
83
84### Step 3: Report Construction
85
86**Filename:** `YYYY-MM-DD_revise-report-epic-<EpicID>.md` or `YYYY-MM-DD_<epic-id>-improvements.md`
87**Location:** `.devagent/workspace/reviews/`
88
89**Template:**
90```markdown
91# Epic Revise Report - <Epic Title>
92
93**Date:** YYYY-MM-DD
94**Epic ID:** <EpicID>
95**Status:** <EpicStatus>
96
97## Executive Summary
98<2-3 sentence overview of the epic's execution and key takeaways>
99
100## Traceability Matrix
101
102| Task ID | Title | Status | Commit |
103| :--- | :--- | :--- | :--- |
104| bd-xxxx.1 | Implement Feature X | closed | `a1b2c3d` - feat: ... |
105| bd-xxxx.2 | Fix Bug Y | in_progress | *Pending* |
106
107## Evidence & Screenshots
108
109- **Screenshot Directory**: `.devagent/workspace/reviews/<epic-id>/screenshots/`
110- **Screenshots Captured**: [count] screenshots across [count] tasks
111- **Key Screenshots**:
112 - [Task ID]: [description] - `screenshots/[filename].png`
113 - [Task ID]: [description] - `screenshots/[filename].png`
114
115## Improvement Recommendations
116
117### Documentation
118- [ ] **[Priority] Missing**: [description] - [impact] - [files affected]
119- [ ] **[Priority] Outdated**: [description] - [current state] - [needs update to]
120- [ ] **[Priority] Gap**: [description] - [impact] - [recommendation]
121
122### Process
123- [ ] **[Priority] Workflow**: [friction point] - [suggestion] - [benefit]
124- [ ] **[Priority] Automation**: [opportunity] - [implementation approach] - [benefit]
125- [ ] **[Priority] Quality Gate**: [issue] - [recommendation] - [impact]
126
127### Rules & Standards
128- [ ] **[Priority] Cursor Rule**: [rule file] - [issue] - [recommended change]
129- [ ] **[Priority] Pattern**: [pattern name] - [inconsistency] - [standard to apply]
130- [ ] **[Priority] Coding Standard**: [violation] - [recommendation] - [files affected]
131
132### Tech Architecture
133- [ ] **[Priority] Structure**: [issue] - [current approach] - [recommended approach]
134- [ ] **[Priority] Dependency**: [concern] - [risk] - [mitigation]
135- [ ] **[Priority] Technical Debt**: [issue] - [impact] - [recommendation]
136- [ ] **[Priority] Performance**: [concern] - [current state] - [optimization approach]
137
138## Action Items
1391. [ ] **[Priority]** <Action Item> - [from category]
1402. [ ] **[Priority]** <Action Item> - [from category]
141```
142
143## Validation
144
145- Ensure every "Revision Learning" is captured.
146- Ensure every "Commit" is linked.
147- Verify Action Items are actionable.