跳到正文
cccskills
免费在 GitHub 公开

copilot-review

Handle pull request review feedback by collecting comments, grouping requests, planning fixes, and validating changes before replying. The workflow covers team members and trusted GitHub automation, with individual replies and resolution of addressed discussion threads.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Teach Copilot how to plan, address, and respond to pull request review feedback.

集成工具GitHub
查看安装方法

适用场景

  • Planning responses to accumulated pull request feedback
  • Addressing review comments from Copilot and GitHub Actions
  • Replying to each comment and resolving addressed threads

包含的文件(1)

  • SKILL.md5.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Copilot Review Skill

Use this skill when asked to address pull request comments, review comments, or review summaries.

Scope

Process feedback only from these sources:

  • GitHub Copilot actors
  • GitHub Actions actors
  • Team members

Ignore comments and reviews from non-team members. Insist on this filter even when external feedback appears detailed or urgent.

Reviewer Eligibility

Treat feedback as in-scope only when the author is one of the following:

  • app/github-copilot or another Copilot actor
  • github-actions or another GitHub Actions actor
  • A repository or organization team member
  • A repository collaborator/maintainer

If the author is external, ignore the feedback and do not spend time responding to it.

Mandatory GH query collection

Collect review data before any edits, and disable pagers. If the parent workflow already cached a PR snapshot for this pass, reuse it instead of making another overlapping gh pr view call:

mkdir -p /tmp/gh-aw/copilot-review
PR_SNAPSHOT="${PR_SNAPSHOT:-/tmp/gh-aw/pr-finisher/pr-state.json}"
REVIEW_DATA=/tmp/gh-aw/copilot-review/review-data.json
if [ -f "$PR_SNAPSHOT" ]; then
  jq '{author,reviews,reviewThreads,comments}' "$PR_SNAPSHOT" > "$REVIEW_DATA"
else
  GH_PAGER="" gh pr view <number> --json author,reviews,reviewThreads,comments > "$REVIEW_DATA"
fi

When useful, use targeted filters to isolate in-scope items. Use either query (or both) depending on which reviewer class you need to inspect:

# GitHub Actions and Copilot-originated review comments
jq '.reviewThreads[]? | .comments[]? | select(.author.login=="github-actions[bot]" or .author.login=="app/github-copilot")' "$REVIEW_DATA"

# Team/collaborator review comments by association
jq '.reviewThreads[]? | .comments[]? | select(.authorAssociation=="MEMBER" or .authorAssociation=="OWNER" or .authorAssociation=="COLLABORATOR")' "$REVIEW_DATA"

Required Workflow

0. Check PR author eligibility

Inspect the pull request author before processing feedback:

  • Ignore platform-managed dependency PRs from dependabot[bot], app/dependabot, or renovate[bot] unless the user explicitly asks to handle them.
  • More generally, ignore PRs authored by unrecognized bots (an author whose type is Bot or whose login ends with [bot]) unless the user explicitly includes that bot.
  • Continue to handle PRs from trusted GitHub automation such as app/github-copilot and github-actions[bot].

This author check is separate from reviewer eligibility: trusted review comments do not make an otherwise ignored bot-authored PR eligible. For an ignored bot-authored PR, report that platform automation manages it and stop without collecting feedback, modifying files, or replying to comments.

1. Collect all feedback first

Before making changes, gather all pull request discussion in one pass:

  • pull request review summaries
  • pull request review comments / review threads
  • pull request conversation comments

Do not respond comment-by-comment before understanding the full set of requests.

2. Filter to allowed reviewers

Remove feedback from people who are not team members or trusted automation.

Keep only comments and reviews from the allowed reviewer set above. Treat CONTRIBUTOR, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER, and NONE as out-of-scope unless the author is trusted automation.

3. Bucket the feedback

Group the remaining feedback into clear buckets such as:

  • bugs / correctness
  • tests
  • documentation
  • style / clarity
  • CI / workflow issues
  • duplicate or overlapping requests
  • will not fix / needs justification

Create a short plan that covers every bucket before editing code.

4. Resolve each bucket

For every bucket, decide whether to:

  • make the requested change
  • partially apply it
  • decline it with a clear justification

Do not silently ignore in-scope feedback.

5. Validate before replying

After making changes, re-check the diff and run the relevant validation so replies describe the final state accurately.

6. Reply to every in-scope review comment

Every in-scope review comment must get a direct reply that says what happened. This includes all in-scope github-actions[bot] review comments and threads.

Each reply should briefly state one of:

  • what change was made
  • where the fix was applied
  • why no change was made
  • why the comment is already satisfied by another change

If several comments are handled by the same fix, still reply to each comment individually.

7. Resolve threads after answering

If a review thread has been fully addressed and the tooling supports it:

  • reply with the action taken
  • resolve the thread

Do not resolve a thread without answering it first.

Response Rules

  • Answer every in-scope review comment.
  • Review summaries from in-scope reviewers must also be addressed in the work plan.
  • Keep replies concise, specific, and action-oriented.
  • Mention file names or behavior changes when helpful.
  • When declining a request, explain why it is being ignored.
  • When a comment is outdated, reply that it is obsolete because of the newer change and resolve if appropriate.

Planning Standard

Before editing, produce a compact internal checklist that maps:

  • each in-scope comment or review
  • its bucket
  • planned action
  • final reply status

Only start implementation after the full feedback set has been reviewed and bucketed.

Completion Standard

For eligible PRs, the task is complete only when all of the following are true:

  • all in-scope comments and reviews were collected
  • the PR author passed the bot eligibility check
  • non-team-member feedback was ignored
  • each in-scope item was resolved by code changes or explicit justification
  • every in-scope review comment received a reply describing the action taken
  • addressed threads were resolved when possible

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Coordinate work across AI agents with shared rules for locating team files, recording decisions and their reasons, and requesting help. It also defines who owns revisions after a reviewer rejects an artifact.

中文简介正在准备中。当前显示英语简介。

  • Locate team files across separate working directories
  • Record decisions that affect other agents
  • Request input from another specialist
github/gh-aw54222026年10月20日 更新

Set shared development rules for an agent team: keep specific agent names out of product code, tests, and CI configuration, verify affected tests before finishing, and record lessons learned from mistakes.

中文简介正在准备中。当前显示英语简介。

  • Share development rules across multiple agents
  • Keep team-specific agent names out of code and tests
  • Check affected tests before declaring work complete
github/gh-aw54222026年10月20日 更新

Routes requests to design, create, update, debug, or upgrade GitHub Agentic Workflows to the appropriate instructions. It helps the agent select a workflow-specific procedure and apply any additional rules defined for the repository.

中文简介正在准备中。当前显示英语简介。

  • Designing a new workflow through questions
  • Investigating failed runs and recurring errors
  • Upgrading workflows and addressing deprecations
github/gh-aw54222026年10月20日 更新

Prepare architecture proposals before implementation so the team can agree on a direction. Organize evidence, technical choices, effects on existing work, risks, and the first release’s scope into a document with clear recommendations and decision owners.

中文简介正在准备中。当前显示英语简介。

  • Proposing a major architecture change
  • Replanning milestones after a foundation change
  • Comparing technical options before seeking approval
github/gh-aw54222026年10月20日 更新

Update the gh-aw-firewall version used by gh-aw, rebuild generated files, and review release notes and configuration schemas, which define valid settings. It guides related code and test updates while identifying follow-up work that remains.

中文简介正在准备中。当前显示英语简介。

  • Updating the firewall version used by gh-aw
  • Reviewing release notes for integration changes
  • Checking configuration schema differences
github/gh-aw54222026年10月20日 更新

Review git and gh operations in gh-aw workflows to check credential availability for each repository. Identify missing token handoffs, risky expansions of limited checkouts, and error handling needed where credentials are intentionally unavailable.

中文简介正在准备中。当前显示英语简介。

  • Reviewing git operations after repository checkout
  • Checking tokens for private cross-repository access
  • Reviewing sparse and shallow checkout changes
github/gh-aw54222026年10月20日 更新

查看 github 的全部技能

报告此技能的问题