| name | monitor-pr |
| description | Monitor the CI checks status of a Pull Request on GitHub, parse logs on failure, and address any non-passing tests. |
Monitor PR Skill
Standardized procedure to track pull request CI checks on GitHub and address any test or linting failures.
When to use this skill
- Use this skill after raising a pull request (e.g., using
raise-pr), or when the user requests to check, monitor, or track the CI/test status of an active PR.
How to use it
Steps
-
Check CI checks status:
Use the GitHub CLI (gh) to retrieve the status of all active checks on the current branch:
gh pr checks
-
Wait for completion (if pending):
If any checks are marked as pending:
- Set a one-shot wakeup timer using the
schedule tool (e.g., set for 120 seconds with the prompt "Check CI status for PR").
- Stop calling tools to yield back control while the timer is running.
- Do NOT run a shell
sleep loop or poll continuously in a terminal process.
-
Handle successful runs:
If all checks are marked as pass or success:
- Confirm to the user that CI has successfully completed and all tests are passing.
- Inform the user that the PR is ready for review and merge.
-
Diagnose and fix failures (if any check fails):
If any check fails (status is fail or failure):