This skill should be used when the user asks to "monitor the PR", "watch the CI", "check if CI passes", "let me know when CI finishes", "watch the checks", "monitor CI status", "tell me when the build completes", or any variation requesting to track GitHub PR check status until completion. Also use this skill proactively after creating or updating a PR when the user would benefit from knowing the CI result.
From ci-monitornpx claudepluginhub dhughes/claude-marketplace --plugin ci-monitorThis skill uses the workspace's default tool permissions.
Monitor GitHub Pull Request CI/CD checks continuously until all checks complete, then provide visual and audio notification of the result.
CRITICAL: Be tenacious. CI pipelines vary wildly in duration—some complete in 2 minutes, others take over an hour. Never give up monitoring. Continue polling until receiving a definitive pass or fail result, or until explicitly stopped by the user.
Ensure the GitHub CLI (gh) is installed and authenticated. Verify with:
gh auth status
Determine the PR to monitor. If user specifies a PR number, use that. Otherwise, detect from current branch:
gh pr view --json number,title,url,headRepository
If no PR exists for the current branch, inform the user and offer to help create one.
Begin the polling loop with clear user feedback:
Use gh pr checks to get current status:
gh pr checks <PR_NUMBER> --json name,state,conclusion
Check states:
PENDING or QUEUED - Still running, continue pollingIN_PROGRESS - Still running, continue pollingCOMPLETED - Check finished, examine conclusionCheck conclusions (when completed):
SUCCESS - Check passedFAILURE - Check failedCANCELLED - Check was cancelled (treat as failure)SKIPPED - Check was skipped (treat as success)NEUTRAL - Neutral result (treat as success)All checks must complete before announcing results:
When all checks complete:
Print success summary:
✅ CI PASSED - PR #X: [title]
All checks completed successfully.
URL: [pr_url]
Play audio announcement:
say "GitHub [repo-name] PR [pr-number] completed CI successfully" 2>/dev/null
Print failure summary with details:
❌ CI FAILED - PR #X: [title]
Failed checks:
- [check_name]: [conclusion]
- [check_name]: [conclusion]
URL: [pr_url]
Get detailed failure information if available:
gh pr checks <PR_NUMBER> --json name,state,conclusion,detailsUrl
Print links to failed check details
Play audio announcement:
say "GitHub [repo-name] PR [pr-number] completed CI unsuccessfully" 2>/dev/null
Use macOS say command directly with stderr suppressed:
say "GitHub [repo-name] PR [pr-number] completed CI successfully" 2>/dev/null
say "GitHub [repo-name] PR [pr-number] completed CI unsuccessfully" 2>/dev/null
The 2>/dev/null silently ignores errors on systems without say.
Use the repository name from gh pr view --json headRepository, extracting just the repo name (not owner/repo).
Poll every 60 seconds. Between polls, simply wait—do not output status unless there are changes.
Provide periodic updates to show monitoring is active:
Network or API errors should not terminate monitoring:
The user can stop monitoring at any time by:
User: monitor the PR
Claude: Monitoring PR #42: Add user authentication feature
URL: https://github.com/acme/webapp/pull/42
Checking CI status...
- build: ⏳ in progress
- test: ⏳ pending
- lint: ✅ success
[60 seconds later]
- build: ✅ success
- test: ⏳ in progress
- lint: ✅ success
[60 seconds later]
- build: ✅ success
- test: ✅ success
- lint: ✅ success
✅ CI PASSED - PR #42: Add user authentication feature
All checks completed successfully.
URL: https://github.com/acme/webapp/pull/42
[Audio: "GitHub webapp PR 42 completed CI successfully"]
When working on a PR (creating it, pushing updates, or responding to review), proactively offer to monitor CI if the user would benefit. For example, after running gh pr create, offer: "Would you like me to monitor the CI checks for this PR?"
When Claude has been doing automated work and creates or updates a PR, automatically start monitoring unless the user has indicated they don't want notifications.
say on macOS, skip gracefully elsewhereProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.