request-copilot-review
Installation
SKILL.md
Request Copilot Code Review
Phase 1: Resolve the Target PR
- If the user passed an argument (PR number or URL), use it as
<arg>. Otherwise, default to the PR for the current branch. - Resolve the target PR:
- With
<arg>:gh pr view <arg> --json number,title,url,headRefName - Without
<arg>:gh pr view --json number,title,url,headRefName
- With
- If no PR is found (e.g., current branch has no open PR), stop and ask the user which PR to target (number or URL). Do not proceed until the user provides one.
- Once the PR is identified, proceed directly to Phase 2 without asking the user to confirm. Briefly mention the resolved PR (
#<number> <title>) in your status update so the user can interrupt if it is wrong.
Phase 2: Request the Review
Run gh copilot-review with --wait so the command polls until Copilot finishes. Choose flags based on user intent:
- Default:
gh copilot-review <arg> --wait - User explicitly asks to force a re-request (e.g., "force", "ignore the existing review"): add
--force - User specifies timeout / interval: pass through as
--wait-timeout/--wait-interval(formats:30sec,5min,1h)