Description
Transform the current refine_pr prompt into a new check_pr prompt that focuses on assessment and checking rather than automatically refining. The new prompt should be more open to the possibility that no changes might be needed.
Context
- Project area: MCP Server implementation - prompt templates
- Related prompts: Current
refine_pr.yaml in /mcp-server/src/templates/prompts/
- Complexity assessment: 5/10 (moderate - requires refactoring existing functionality)
Technical Details
Affected files:
/mcp-server/src/templates/prompts/refine_pr.yaml - Rename to check_pr.yaml and refactor content
/mcp-server/CHANGELOG.md - Update any references to refine_pr
- Any documentation or code referencing the old prompt name
Requirements
- Rename prompt: Change
refine_pr to check_pr to better reflect its purpose
- Assessment-first approach: The prompt should first check PR status before suggesting actions
- Support multiple PRs:
- Accept optional PR number argument for checking specific PR
- If no argument provided, check all open PRs in the repository
- Check CI/CD and reviews: Assess whether PRs have:
- Passing CI/CD checks
- Required reviews completed
- Any blocking issues or feedback
- User confirmation required:
- Only suggest work or merging after assessment
- Require explicit user confirmation before:
- Making any changes to address feedback
- Merging PRs that are ready
- Flexible outcomes: Recognize that PRs might:
- Be ready to merge as-is
- Need minor adjustments
- Require significant work
- Be blocked by external factors
Implementation Steps
Acceptance Criteria
Description
Transform the current
refine_prprompt into a newcheck_prprompt that focuses on assessment and checking rather than automatically refining. The new prompt should be more open to the possibility that no changes might be needed.Context
refine_pr.yamlin/mcp-server/src/templates/prompts/Technical Details
Affected files:
/mcp-server/src/templates/prompts/refine_pr.yaml- Rename tocheck_pr.yamland refactor content/mcp-server/CHANGELOG.md- Update any references to refine_prRequirements
refine_prtocheck_prto better reflect its purposeImplementation Steps
check_pr.yamlbased on existingrefine_pr.yamlAcceptance Criteria
check_prprompt exists and functions correctlyrefine_prreferences are removed or updated