← ClaudeAtlas

copilot-reviewlisted

Runs a single Copilot review check-fix cycle on a PR using gh CLI. Use this skill whenever the user wants to: check and fix Copilot review comments, request a Copilot code review on a PR, or iterate on PR feedback. Trigger on phrases like 'copilot review', 'fix PR comments', 'iterate on PR', 're-review', or when the user mentions 'gh pr' with 'copilot'. Combine with /loop for automated repeated cycles, e.g. '/loop 2m /copilot-review'.
appleboy/skills · ★ 0 · AI & Automation · score 60
Install: claude install-skill appleboy/skills
# Copilot Review A single-pass check-fix cycle for Copilot review comments. Designed to be called repeatedly via `/loop`: ``` /loop 2m /copilot-review ``` Each invocation runs one iteration: check for unresolved comments → fix → push → resolve → re-trigger review. The loop terminates ONLY when Copilot's review body contains `"generated no new comments"` or `"generated 0 comment"`. ## Prerequisites - `gh` CLI v2.88.0+ - Authenticated: `gh auth status` --- ## Steps ### 1. Detect the PR If the user provides a PR number and repo, use those directly. Otherwise, auto-detect from the current branch: ```bash gh pr view --json number,url,headRepository -q ' "PR #\(.number) — \(.headRepository.owner.login)/\(.headRepository.name)\n\(.url)" ' ``` If no PR is found on the current branch, ask the user for the PR number and repo. Extract and store: - `OWNER` — repository owner - `REPO` — repository name - `PR_NUM` — pull request number ### 2. Check Copilot review status Before acting on comments, confirm two things: (a) Copilot has finished reviewing, and (b) the review covers the latest push. Without the timing check, a common race condition occurs: after fixing and re-triggering, the next cycle sees the old review (state = COMMENTED), finds all old threads resolved, and falsely concludes "no unresolved comments" — stopping the loop before Copilot's new review arrives. **IMPORTANT:** Use GraphQL (not `gh pr view --json reviews`) to fetch reviews. The REST API returns `au