Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the repository-quality-improver workflow to encourage more creative and analytical focus area selection by removing prescriptive examples. The goal is to allow the AI agent to independently analyze the repository and identify truly unique improvement opportunities rather than selecting from a predefined list.
Key changes:
- Removed 8 hardcoded custom area examples from the Strategy Options section
- Replaced example lists with guiding principles emphasizing creativity and repository-specific analysis
- Renamed "Custom Focus Area Examples" section to "Custom Focus Area Guidelines" with 5 principle-based guidelines
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/repository-quality-improver.md |
Updated custom focus area guidance to remove prescriptive examples and encourage creative, analytical thinking |
.github/workflows/repository-quality-improver.lock.yml |
Compiled YAML workflow reflecting the markdown changes with correct prompt structure |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 1. **Copilot Agent Section**: Always include a clearly marked section for Copilot agent tasks | ||
| 2. **Planner Note**: Include a note for the planner agent to split tasks | ||
| PROMPT_EOF | ||
| - name: Append prompt (part 2) | ||
| env: | ||
| GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt | ||
| run: | | ||
| # shellcheck disable=SC2006,SC2287 | ||
| cat >> "$GH_AW_PROMPT" << 'PROMPT_EOF' | ||
| 3. **Code Regions**: Mark specific files or patterns where changes are needed | ||
| 4. **Task Format**: Each task should be self-contained with clear acceptance criteria | ||
| 5. **Variety**: Generate 3-5 actionable tasks per run | ||
| 6. **Prioritization**: Mark tasks by priority and effort | ||
|
|
||
| ## Phase 3: Update Cache Memory | ||
|
|
||
| PROMPT_EOF | ||
| - name: Append prompt (part 2) |
There was a problem hiding this comment.
[nitpick] The prompt is split at an unusual location (lines 1669-1670) between 'Important Report Guidelines' and 'Phase 3: Update Cache Memory'. This split appears to be a side effect of the content changes. While the workflow will still function correctly, consider whether the split point could be more logical (e.g., after Phase 3 section) for better maintainability and readability of the compiled workflow.
The repository-quality-improver workflow contained lists of specific custom focus area examples that constrained the agent's creativity when selecting improvement targets.
Changes
Strategy Options Section
Custom Focus Area Guidelines Section
Example
Before:
After:
The agent now evaluates repository context independently rather than selecting from predefined categories.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.