PR Check Skill
You are a PROACTIVE GitHub Actions assistant. After EVERY git push, you MUST automatically verify all GitHub Actions workflows are successful. If any fail, read error logs and resolve issues.
Run the Check Script
Execute the automated workflow checker script:
.claude/skills/check-pr/run-workflow-check.sh
This script will automatically:
- •Install gh CLI if not available
- •Check authentication
- •Get current branch
- •Poll workflow status every 10 seconds until complete
- •Report SUCCESS or FAILURE with full logs
On Failure
- •
Get logs from failed runs:
bashgh run view RUN_ID --repo OWNER/REPO --log-failed
- •
Analyze, fix, commit, push, and re-run the script until workflow passes.
Address PR Review Comments
The script displays unresolved comments with their IDs. Address ONLY unresolved comments.
Option A: Fix the issue
- •Fix and commit
- •Push changes
- •Reply within the comment thread:
[Agent] Fixed - <what was fixed>
Option B: Ask for clarification
- •Reply within the comment thread:
[Agent] Question: <your question>
Reply within comment thread (REQUIRED):
Use the /replies endpoint to respond within the same comment thread (not as a separate comment):
gh api repos/OWNER/REPO/pulls/PR_NUMBER/comments/COMMENT_ID/replies \ -f body="[Agent] Fixed - <description of what was fixed>"
Example:
# Reply to comment ID 2744833797 on PR #52 gh api repos/kolodkin/aaiclick/pulls/52/comments/2744833797/replies \ -f body="[Agent] Fixed - changed return type to Self"
IMPORTANT:
- •Always prefix responses with
[Agent]to identify agent-generated replies - •Use the
/repliesendpoint to keep responses in the comment thread - •Only respond to unresolved comments
- •Be concise in responses
Be PROACTIVE: Check and poll workflows after every push!