Objective
Merge 5+ small prompt template files into a single prompts.go file for better discoverability and reduced file count.
Problem
Multiple small files in pkg/workflow/ contain single prompt-related functions:
safe_outputs_prompt.go (14 lines, 1 function)
cache_memory_prompt.go (19 lines, 1 function)
edit_tool_prompt.go (22 lines, 2 functions)
playwright_prompt.go (22 lines, 2 functions)
pr_prompt.go (61 lines, 2 functions)
Approach
- Create new file:
pkg/workflow/prompts.go
- Move all prompt-related functions from individual files into the new file
- Organize functions logically within the new file (group by feature/purpose)
- Add file-level documentation explaining the purpose
- Update any imports if function visibility changes
- Delete the old individual prompt files
- Run tests to verify no breakage
Files to Create/Modify
- Create:
pkg/workflow/prompts.go
- Delete:
pkg/workflow/safe_outputs_prompt.go
- Delete:
pkg/workflow/cache_memory_prompt.go
- Delete:
pkg/workflow/edit_tool_prompt.go
- Delete:
pkg/workflow/playwright_prompt.go
- Delete:
pkg/workflow/pr_prompt.go
Organization
Group functions in the new file by category:
- Safe outputs prompts
- Cache memory prompts
- Tool prompts (edit, playwright)
- PR prompts
Add comments to separate sections for clarity.
Acceptance Criteria
Estimated Effort
2-3 hours
Related to #5677
AI generated by Plan Command for #5506
Objective
Merge 5+ small prompt template files into a single
prompts.gofile for better discoverability and reduced file count.Problem
Multiple small files in
pkg/workflow/contain single prompt-related functions:safe_outputs_prompt.go(14 lines, 1 function)cache_memory_prompt.go(19 lines, 1 function)edit_tool_prompt.go(22 lines, 2 functions)playwright_prompt.go(22 lines, 2 functions)pr_prompt.go(61 lines, 2 functions)Approach
pkg/workflow/prompts.goFiles to Create/Modify
pkg/workflow/prompts.gopkg/workflow/safe_outputs_prompt.gopkg/workflow/cache_memory_prompt.gopkg/workflow/edit_tool_prompt.gopkg/workflow/playwright_prompt.gopkg/workflow/pr_prompt.goOrganization
Group functions in the new file by category:
Add comments to separate sections for clarity.
Acceptance Criteria
pkg/workflow/prompts.gofile createdmake test)Estimated Effort
2-3 hours
Related to #5677