Update GitHub Issue
Based on our prior /issue_analyse discussion, update the GitHub issue with refined content.
Instructions:
If no issue context is found from prior analysis, respond: "No issue context found. Please run
/issue_analyse <number>first."First, fetch the current issue content: Call
mcp__mcp-workspace__github_issue_viewwith the issue number.Draft updated issue text with:
- Clear, concise title
- Well-structured body with implementation ideas
Write the issue body to a temp file (avoids bash escaping issues with markdown):
mcp__mcp-workspace__save_file(file_path=".scratch/issue_body_temp.md", content=body_content)
- Update the issue using
--body-file:
gh issue edit <issue_number> --title "NEW_TITLE" --body-file .scratch/issue_body_temp.md
- Clean up the temp file:
mcp__mcp-workspace__delete_this_file(file_path=".scratch/issue_body_temp.md")
Editing Base Branch:
- To add a base branch: Insert
### Base Branchsection with the branch name - To change a base branch: Update the content under the existing section
- To remove a base branch: Delete the entire
### Base Branchsection
The base branch must be a single line. Multiple lines will cause an error during branch creation.
The updated issue should include:
- Summary of the requirement
- Discussed implementation approach (concise)
## Constraints & Rationale— non-obvious gotchas and the "why" behind decisions. Skip if none identified.## Decisionstable — decided topics so/issue_analysewon't re-ask. Skip if none yet.