fix-pr-automation
Work with the automated PR fixer and its CLI, including prompts and workflow configuration. Use when diagnosing failed CI auto-fixes, running the fix-pr CLI locally, or updating the fix-pr prompt or workflow.
When & Why to Use This Skill
The Fix PR Automation skill is a specialized developer tool designed to streamline the software development lifecycle by automatically generating patches for failing CI jobs. It empowers teams to diagnose CI auto-fix failures, execute the fix-pr CLI locally for rapid debugging, and customize AI-driven prompts and GitHub workflows to optimize automated pull request resolution and maintain high code quality.
Use Cases
- Automated CI Failure Resolution: Automatically propose and apply code patches when continuous integration builds fail, significantly reducing manual troubleshooting time.
- Local Debugging and Validation: Run the fix-pr CLI tool in a local development environment to verify AI-generated fixes and ensure they meet safety constraints before deployment.
- Prompt and Workflow Optimization: Fine-tune the underlying AI prompt templates and GitHub Action configurations to adapt the automated fixing logic to specific project architectures or coding standards.
- CI/CD Pipeline Maintenance: Diagnose and resolve issues within the automated PR fixer infrastructure to ensure consistent and reliable automated maintenance of the codebase.
| name | fix-pr-automation |
|---|---|
| description | Work with the automated PR fixer and its CLI, including prompts and workflow configuration. Use when diagnosing failed CI auto-fixes, running the fix-pr CLI locally, or updating the fix-pr prompt or workflow. |
Fix PR Automation
Overview
Run or adjust the automated PR fixer that proposes patches for failing CI jobs.
Workflow
- Read
docs/FIX-PR.mdfor the end-to-end workflow and safety constraints. - Run locally from
dev/packages/release-scripts:pnpm fix:pr. - Provide required secrets (
GITHUB_TOKENandOPENAI_API_KEYorCODEX_API_KEY) and verify the CLI output. - Update the prompt at
dev/packages/release-scripts/scripts/fix-pr/prompt.mdand the workflow at.github/workflows/fix-pr.ymlwhen behavior changes are needed.