For an overview of all available workflows, see the main README.
The CI Doctor workflow monitors your GitHub Actions workflows and automatically investigates CI failures. When a monitored workflow fails, the CI Doctor conducts a deep analysis to identify root causes, patterns, and provides actionable recommendations for fixing the issues.
# Install the 'gh aw' extension
gh extension install github/gh-aw
# Add the CI Doctor workflow to your repository
gh aw add githubnext/agentics/ci-doctorThis walks you through adding the workflow to your repository.
After adding, the workflow will automatically trigger when monitored CI workflows fail. You cannot start this workflow manually as it responds to workflow failure events.
Mandatory Checklist
- If in a fork, enable GitHub Actions and Issues in the fork settings
You can specify which workflows to monitor (currently monitors "Daily Perf Improver" and "Daily Test Improver") by editing the workflow directly.
After editing run gh aw compile to update the workflow and commit all changes to the default branch.
- Failed workflow runs and job details
- Workflow and job logs from failed executions
- Repository contents and configuration files
- Commit details that triggered the failure
- Pull request information (if failure is PR-related)
- Historical issues for pattern matching
- Actions workflow runs and status information
- Creates detailed investigation issues with root cause analysis
- Adds comments to related pull requests with failure analysis
- Updates existing issues if similar failures have occurred
- Stores investigation data in cache for pattern recognition
- Requires
issues: write,actions: read, andpull-requests: writepermissions
- Searches for error message explanations and solutions
- Looks up documentation for failing dependencies or tools
- May search for known issues and workarounds for identified problems
- Review CI failure investigation reports for accuracy and completeness
- Validate root cause analysis and recommended fixes
- Implement suggested solutions and test fixes
- Close investigation issues once problems are resolved
- Monitor for recurring failure patterns and adjust workflows accordingly
- Disable or uninstall the workflow if failure investigations are not providing value
- By default this workflow will trigger for at most 30 days, after which it will stop triggering.
- This allows you to experiment with the workflow for a limited time before deciding whether to keep it active.