๐ Repository Quality Improver
May 8, 2026 ยท View on GitHub
For an overview of all available workflows, see the main README.
The Repository Quality Improver workflow analyzes your repository from a different quality angle every weekday, producing an issue with findings and actionable improvement tasks.
Installation
Add the workflow to your repository:
gh aw add https://github.com/githubnext/agentics/blob/main/workflows/repository-quality-improver.md
Then compile:
gh aw compile
Note: This workflow creates GitHub Issues with the
qualityandautomated-analysislabels.
What It Does
The Repository Quality Improver runs on weekdays and:
- Selects a Focus Area โ Picks a different quality dimension each run, using a rotating strategy to ensure broad, diverse coverage over time
- Analyzes the Repository โ Examines source code, configuration, tests, and documentation from the chosen angle
- Creates an Issue โ Posts a structured report with findings, metrics, and 3โ5 actionable improvement tasks
- Tracks History โ Remembers previous focus areas (using cache memory) to avoid repetition and maximize coverage
How It Works
graph LR
A[Load Focus History] --> B[Select Focus Area]
B --> C{Strategy?}
C -->|60%| D[Custom: Repo-specific area]
C -->|30%| E[Standard: Code/Docs/Tests/Security...]
C -->|10%| F[Reuse: Most impactful recent area]
D --> G[Analyze Repository]
E --> G
F --> G
G --> H[Create Issue Report]
H --> I[Update Cache Memory]
Focus Area Strategy
The workflow follows a deliberate diversity strategy across runs:
- 60% Custom areas โ Repository-specific issues the agent discovers by inspecting the codebase: e.g., "Error Message Clarity", "Contributor Onboarding Experience", "API Consistency"
- 30% Standard categories โ Established quality dimensions: Code Quality, Documentation, Testing, Security, Performance, CI/CD, Dependencies, Code Organization, Accessibility, Usability
- 10% Revisits โ Revisit the most impactful area from recent history for follow-up
Over ten runs, the agent will typically explore 6โ7+ unique quality dimensions.
Output: GitHub Issues
Each run produces one issue containing:
- Executive Summary โ 2โ3 paragraphs of key findings
- Full Analysis โ Detailed metrics, strengths, and areas for improvement (collapsed)
- Improvement Tasks โ 3โ5 concrete, prioritized tasks with file-level specificity
- Historical Context โ Table of previous focus areas for reference
You can comment on the issue to request follow-up actions or add it to a project board for tracking.
Example Reports
From the original gh-aw use (62% merge rate via causal chain):
- CI/CD Optimization report โ identified pipeline inefficiencies leading to multiple PRs
- Performance report โ surfaced bottlenecks addressed by downstream agents
Configuration
The workflow uses these default settings:
| Setting | Default | Description |
|---|---|---|
| Schedule | Daily on weekdays | When to run the analysis |
| Issue labels | quality, automated-analysis | Labels applied to created issues |
| Max issues per run | 1 | Prevents duplicate reports |
| Issue expiry | 2 days | Older issues are closed when a new one is posted |
| Timeout | 20 minutes | Per-run time limit |
Customization
gh aw edit repository-quality-improver
Common customizations:
- Change issue labels โ Set the
labelsfield insafe-outputs.create-issueto labels that exist in your repository - Adjust the schedule โ Change the cron to run less frequently if your codebase changes slowly
- Add custom standard areas โ Extend the standard categories list with areas relevant to your project
Tips for Success
- Review open issues โ Check the labeled issues regularly to pick up quick wins
- Add issues to a project board โ Track improvement tasks using GitHub Projects for visibility
- Let the diversity algorithm work โ Avoid overriding the focus area too frequently; the rotating strategy ensures broad coverage over time
- Review weekly โ Check recent issues to pick up any quick wins
Source
This workflow is adapted from Peli's Agent Factory, where it achieved a 62% merge rate (25 merged PRs out of 40 proposed) via a causal discussion โ issue โ PR chain.
Related Workflows
- Large File Simplifier โ Identify oversized source files and create detailed refactoring plans
- Code Simplifier โ Simplify recently modified code
- Duplicate Code Detector โ Find and remove code duplication