You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: split action plan into Refactors + Human Review sections
The final report's action plan now produces two distinct lists:
1. Recommended Refactors - tiered by priority, automatable without judgment
2. Requires Human Review - features/UI/UX needing human decisions
No item limits - all recommendations included for easy copy-paste.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
You just completed a multi-step automated codebase improvement run. Below are the outputs from each step — what was analyzed, changed, and recommended.
2
2
3
-
Your task is to produce a **consolidated, prioritized action plan** of recommendations that still need to be done.
3
+
Your task is to produce a **consolidated, prioritized action plan** split into two sections:
4
+
1.**Refactors** — improvements the AI can do automatically without human judgment
5
+
2.**Human Review** — features, UI/UX changes, and product decisions requiring human input
4
6
5
7
## Instructions
6
8
7
9
1. Review each step's output to extract actionable recommendations, suggestions, and identified issues.
8
10
2.**Check the current codebase** — read the relevant files to determine which recommendations have ALREADY been implemented by previous steps in this run.
9
11
3.**Deduplicate** — if multiple steps flagged the same issue, consolidate into one recommendation.
10
-
4.**Tier** the remaining (not-yet-implemented) items by importance.
11
-
5. Output the action plan in the exact format below.
12
+
4.**Categorize** each item:
13
+
-**Refactors**: Code cleanup, bug fixes, security patches, performance improvements, test additions, error handling, architectural improvements — anything that has a clear "right answer" and can be implemented without product decisions.
14
+
-**Human Review**: New features, UI/UX changes, workflow modifications, user-facing behavior changes, product strategy suggestions — anything that requires understanding user needs or making trade-offs that affect the product direction.
15
+
5.**Prioritize** within each section by importance (Critical → High → Medium → Low).
16
+
6. Output the action plan in the exact format below.
12
17
13
18
## Output Format
14
19
@@ -17,45 +22,65 @@ Your task is to produce a **consolidated, prioritized action plan** of recommend
17
22
18
23
> Generated from a {N}-step improvement run. Items below have been verified as **not yet implemented** in the current codebase.
19
24
20
-
## Critical
25
+
## Recommended Refactors
21
26
22
-
<!-- Security vulnerabilities, data loss risks, breaking bugs, blocking issues -->
27
+
These improvements have clear implementations and can be done automatically in a future run.
23
28
24
-
### [Short, specific title]
25
-
-**What**: [Concrete action — reference specific files, functions, or patterns]
26
-
-**Value**: [Why this matters — plain language, one sentence]
27
-
-**Impact**: [Which files/modules/areas are affected]
28
-
-**Risk**: [Low / Medium / High — risk of implementing this change, and why]
29
+
### Critical
30
+
<!-- Security vulnerabilities, data loss risks, breaking bugs -->
<!-- Maintainability, test coverage, architectural improvements -->
39
+
(items)
33
40
34
-
(same item format)
41
+
### Low
42
+
<!-- Polish, style, minor optimizations -->
43
+
(items)
35
44
36
-
## Medium
45
+
---
37
46
38
-
<!-- Maintainability, test coverage gaps, refactoring opportunities, minor UX issues -->
47
+
## Requires Human Review
39
48
40
-
(same item format)
49
+
These suggestions involve product decisions, user experience changes, or feature additions that need human judgment.
41
50
42
-
## Low
51
+
### [Short, specific title]
52
+
-**What**: [Concrete suggestion — reference specific areas or user flows]
53
+
-**Why**: [The problem this solves or opportunity it creates]
54
+
-**Trade-offs**: [What considerations or decisions are involved]
55
+
-**Effort**: [Small / Medium / Large — rough implementation scope]
43
56
44
-
<!-- Polish, style improvements, nice-to-haves, minor optimizations -->
57
+
(repeat for each item, ordered by potential value)
45
58
46
-
(same item format)
59
+
---
47
60
48
61
## Summary
49
62
50
-
[One sentence on overall codebase health. One sentence on the single highest-value next action.]
63
+
[One sentence on overall codebase health. One sentence on the top refactor priority. One sentence on the most valuable human-review item.]
51
64
```
52
65
66
+
## Item Formats
67
+
68
+
**For Refactors** (each item):
69
+
-**[Short, specific title]**: [Concrete action — reference specific files, functions, or patterns]. Value: [Why this matters]. Impact: [Which areas affected]. Risk: [Low/Medium/High].
70
+
71
+
**For Human Review** (each item):
72
+
### [Short, specific title]
73
+
-**What**: [Concrete suggestion]
74
+
-**Why**: [Problem or opportunity]
75
+
-**Trade-offs**: [Decisions involved]
76
+
-**Effort**: [Small/Medium/Large]
77
+
53
78
## Rules
54
79
55
80
- Do NOT include anything already implemented in the codebase — verify by reading files.
56
81
- Do NOT include vague advice like "add more tests" — be specific about WHAT to test and WHERE.
57
82
- Each recommendation MUST reference specific files, functions, or code patterns.
58
83
- Deduplicate ruthlessly — one item per distinct issue, even if multiple steps found it.
59
-
-Maximum **5 items per tier** (20 items total). Prioritize ruthlessly.
60
-
- If a tier has zero items, include the heading with a note: *No items at this priority level.*
84
+
-Include ALL items — no limits. The human needs the complete list for easy copy-paste.
85
+
- If a section has zero items, include the heading with a note: *No items in this category.*
61
86
- Output ONLY the markdown document. No preamble, no commentary, no code fences wrapping the whole document.
Copy file name to clipboardExpand all lines: src/prompts/specials/report.md
+38-13Lines changed: 38 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,20 @@ Instead of technical terms, describe what the change DOES for the person: "I mad
25
25
26
26
## Part 2: Action Plan
27
27
28
-
Review the step outputs provided below to extract actionable recommendations that still need to be done.
28
+
Review the step outputs provided below to extract actionable recommendations that still need to be done. Split them into two categories:
29
+
30
+
1.**Recommended Refactors** — improvements with clear implementations that can be automated
31
+
2.**Requires Human Review** — features, UI/UX changes, and product decisions needing human input
32
+
33
+
### Instructions
29
34
30
35
1. Review each step's output to extract actionable recommendations, suggestions, and identified issues.
31
36
2.**Check the current codebase** — read the relevant files to determine which recommendations have ALREADY been implemented by previous steps in this run.
32
37
3.**Deduplicate** — if multiple steps flagged the same issue, consolidate into one recommendation.
33
-
4.**Tier** the remaining (not-yet-implemented) items by importance.
38
+
4.**Categorize** each item:
39
+
-**Refactors**: Code cleanup, bug fixes, security patches, performance improvements, test additions, error handling, architectural improvements — anything with a clear "right answer" that can be implemented without product decisions.
40
+
-**Human Review**: New features, UI/UX changes, workflow modifications, user-facing behavior changes, product strategy suggestions — anything requiring understanding user needs or making trade-offs.
41
+
5.**Prioritize** refactors by importance (Critical → High → Medium → Low). Order human review items by potential value.
34
42
35
43
Structure the action plan as:
36
44
@@ -39,33 +47,50 @@ Structure the action plan as:
39
47
40
48
> Generated from a {N}-step improvement run. Items below have been verified as **not yet implemented** in the current codebase.
41
49
42
-
### Critical
43
-
<!-- Security vulnerabilities, data loss risks, breaking bugs, blocking issues -->
50
+
### Recommended Refactors
51
+
52
+
These improvements have clear implementations and can be done automatically in a future run.
53
+
54
+
#### Critical
55
+
<!-- Security vulnerabilities, data loss risks, breaking bugs -->
<!-- Maintainability, test coverage gaps, refactoring opportunities, minor UX issues -->
62
+
#### Medium
63
+
<!-- Maintainability, test coverage, architectural improvements -->
52
64
(items)
53
65
54
-
### Low
55
-
<!-- Polish, style improvements, nice-to-haves, minor optimizations -->
66
+
#### Low
67
+
<!-- Polish, style, minor optimizations -->
56
68
(items)
57
69
70
+
---
71
+
72
+
### Requires Human Review
73
+
74
+
These suggestions involve product decisions, user experience changes, or feature additions that need human judgment.
75
+
76
+
(items ordered by potential value)
77
+
78
+
---
79
+
58
80
### Summary
59
-
[One sentence on overall codebase health. One sentence on the single highest-value next action.]
81
+
[One sentence on overall codebase health. One sentence on the top refactor priority. One sentence on the most valuable human-review item.]
60
82
```
61
83
62
-
Each item uses this format:
84
+
**Refactor item format:**
63
85
-**[Short, specific title]**: [Concrete action — reference specific files, functions, or patterns]. Value: [Why this matters]. Impact: [Which areas affected]. Risk: [Low/Medium/High].
64
86
87
+
**Human Review item format:**
88
+
-**[Short, specific title]**: [Concrete suggestion]. Why: [Problem or opportunity]. Trade-offs: [Decisions involved]. Effort: [Small/Medium/Large].
89
+
65
90
Rules:
66
91
- Do NOT include anything already implemented — verify by reading files
67
92
- Be specific — reference files, functions, patterns. No vague advice like "add more tests"
68
-
-Maximum 5 items per tier (20 total)
93
+
-Include ALL items — no limits. The human needs the complete list for easy copy-paste
CONSOLIDATION_PROMPT: 'Mock consolidation prompt template with Critical High Medium Low tiers and consolidated, prioritized action plan instructions.',
18
+
CONSOLIDATION_PROMPT: 'Mock consolidation prompt template with Recommended Refactors (Critical High Medium Low tiers) and Requires Human Review sections for consolidated, prioritized action plan instructions.',
0 commit comments