padosoft/laravel-pii-redactor-admin/copilot-pr-review-loop

Claude Code and agent skill by padosoft/laravel-pii-redactor-admin

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Mandatory GitHub Copilot Code Review + CI loop for PRs. Use after opening a PR, after pushing to a PR branch, or when fixing CI/review feedback.

Install

npx vskill@latest install padosoft/laravel-pii-redactor-admin/copilot-pr-review-loop

SKILL.md

The same SKILL.md was published earlier as padosoft/laravel-pii-redactor-admin/copilot-pr-review-loop.

Copilot PR Review Loop

Rule

Do not close a PR iteration after only pushing code or seeing CI green. A PR is ready only when:

  • local gates are green
  • GitHub Actions checks for the current head are green
  • GitHub Copilot Code Review was requested and has either no actionable comments or all actionable comments are fixed/resolved

For this repository the local gates are:

text
composer validate --strict
vendor/bin/phpunit
npm run typecheck
npm run test
npm run build
npm run e2e

Request Copilot

Try the normal reviewer path first:

powershell
gh pr edit <PR> --add-reviewer copilot

If GitHub CLI cannot resolve copilot, use GraphQL with the Copilot review bot login. This is the reliable fallback.

powershell
$prNodeId = gh pr view <PR> --json id --jq .id
$query = @'
mutation RequestReviewsByLogin($pullRequestId: ID!, $botLogins: [String!], $union: Boolean!) {
requestReviewsByLogin(input: {pullRequestId: $pullRequestId, botLogins: $botLogins, union: $union}) {
clientMutationId
}
}
'@
gh api graphql `
-f query="$query" `
-F pullRequestId="$prNodeId" `
-F botLogins[]='copilot-pull-request-reviewer[bot]' `
-F union=true

Do not use the REST reviewers[]=copilot shortcut as proof. It can succeed without creating a visible Copilot Code Review request.

Verify Copilot Was Requested

First derive the repository name:

powershell
$repo = gh repo view --json nameWithOwner --jq .nameWithOwner

Then verify requested reviewers:

powershell
gh api "repos/$repo/pulls/<PR>/requested_reviewers"

The response should show Copilot as a requested reviewer. If it does not, Copilot was not actually engaged; retry the GraphQL request or record the exact blocker in docs/PROGRESS.md.

Check Whether Copilot Started

Do not infer "not running" from the absence of a new review. GitHub records the UI message "Copilot started reviewing on behalf of ..." as a timeline event:

powershell
gh api "repos/$repo/issues/<PR>/timeline" --paginate `
--jq '.[] | select(.event=="review_requested" or .event=="copilot_work_started" or .event=="reviewed") | {event,actor:(.actor.login // null),created_at,commit_id:(.commit_id // null),body:(.body // null)}'

Interpretation:

  • review_requested means GitHub accepted the review request.
  • copilot_work_started means Copilot is actively reviewing; wait for a reviewed event/review body instead of re-requesting or calling it blocked.
  • reviewed with author/body from Copilot is the completed review. Then inspect inline comments and review threads.

If copilot_work_started appears after the latest request and no reviewed event exists yet, keep polling at practical intervals. Do not remove/re-add Copilot unless there is no copilot_work_started after a reasonable wait or GitHub reports an API error.

Do not request another Copilot review for the same head SHA after copilot_work_started. Repeated requests can overlap and create confusing duplicated pending work. Wait for the completed reviewed event or a concrete GitHub error.

Check Whether Copilot Responded

Review summaries:

powershell
gh api "repos/$repo/pulls/<PR>/reviews" `
--jq '.[] | {user:.user.login,state,commit_id,body,submitted_at}'

Top-level PR comments:

powershell
gh api "repos/$repo/issues/<PR>/comments" `
--jq '.[] | {user:.user.login,body,created_at}'

Inline review comments:

powershell
gh api "repos/$repo/pulls/<PR>/comments" `
--jq '.[] | {user:.user.login,path,line,body,commit_id}'

Thread state, including resolved/outdated:

powershell
$threadQuery = @'
query($owner:String!, $repo:String!, $number:Int!) {
repository(owner:$owner, name:$repo) {
pullRequest(number:$number) {
reviewDecision
reviewThreads(first:100) {
nodes {
id
isResolved
isOutdated
comments(first:10) {
nodes {
author { login }
path
line
outdated
body
}
}
}
}
}
}
}
'@
$owner = $repo.Split('/')[0]
$name = $repo.Split('/')[1]
gh api graphql `
-f query="$threadQuery" `
-f owner="$owner" `
-f repo="$name" `
-F number=<PR>

If there are no Copilot reviews/comments after requesting it, wait a practical interval before concluding it did not run. Do not wait blindly: check requested reviewers, reviews, inline comments, and thread state.

CI Loop

Watch checks:

powershell
gh pr checks <PR> --watch --fail-fast

For failed runs:

powershell
gh run view <run-id> --log-failed

Fix failures locally, run all required local gates, commit, push, then repeat Copilot + CI verification.

Keep PRs small after the initial bootstrap. A good PR should represent one roadmap slice, one security hardening pass, or one focused UI/backend feature so review comments stay actionable and the retry loop remains bounded.

Resolving Feedback

  • Must-fix: security, raw PII exposure, authorization gaps, persistence of sensitive output, broken tests, behavioral regressions, missing coverage for touched behavior.
  • Should-fix: small clarity, docs, maintainability, and style improvements unless there is a concrete reason not to.
  • Discuss: false positives or context-dependent suggestions; reply with rationale before resolving.

GitHub may not mark a thread outdated when the fix lands near, but not exactly on, the anchored line. Read the current file and verify the issue is actually fixed before treating the thread as resolved.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/padosoft/laravel-pii-redactor-admin/copilot-pr-review-loop/badge)](https://verified-skill.com/skills/padosoft/laravel-pii-redactor-admin/copilot-pr-review-loop)

Something wrong with this skill or its page? Tell us.