本文へ移動
cccskills
無料GitHub で公開

pr-feedback

Address PR reviewer feedback by evaluating comments, proposing fixes, and executing after user approval. Use when the user wants to handle review comments on an existing PR, address PR feedback, fix PR comments, respond to reviewer suggestions, or process code review feedback. Triggers on "address PR feedback", "handle review comments", "fix PR comments", "respond to PR review", "process reviewer feedback", or when given a PR number/URL with intent to address its comments.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Address PR Feedback

Fetch reviewer comments from a PR, evaluate each, present a plan, and after approval make fixes (one commit per comment) and post replies.

Input: PR number, URL, or omit to auto-detect from the current branch.

Workflow

0. Ask About Device Verification

Ask: "Would you like to verify the app on device after applying fixes?" Store the answer for later.

1. Resolve PR and Ensure Local Branch

# Get PR metadata (use number if provided, otherwise detect from branch)
gh pr view [NUMBER] --json number,title,author,headRefName,baseRefName,url
gh repo view --json owner,name

Check out the head branch and pull latest if not already on it.

2. Fetch Review Comments

Use GraphQL for inline comment threads (required for isResolved status):

gh api graphql -f query='
  query($owner:String!, $repo:String!, $number:Int!) {
    repository(owner:$owner, name:$repo) {
      pullRequest(number:$number) {
        author { login }
        reviewThreads(first:100) {
          nodes {
            isResolved
            isOutdated
            path
            line
            comments(first:50) {
              nodes { id databaseId author { login } body url path line originalLine diffHunk createdAt }
            }
          }
        }
      }
    }
  }
' -F owner='OWNER' -F repo='REPO' -F number=NUMBER

Also fetch review-level body comments and general PR comments via REST:

gh api 'repos/OWNER/REPO/pulls/NUMBER/reviews' --jq '.[] | select(.body != "" and .body != null)'
gh api 'repos/OWNER/REPO/issues/NUMBER/comments' --paginate

3. Filter

Skip these:

  • Resolved threads (isResolved == true)
  • Bots (login contains [bot] or matches wpmobilebot, codecov-commenter, dependabot, github-actions)
  • PR author's own comments
  • Empty bodies
  • Pure approvals (state APPROVED with only praise like "LGTM")

For threaded comments, evaluate the root comment. Use replies as context only.

If nothing remains, report "No actionable reviewer feedback found." and stop.

4. Read Code and Evaluate

For each comment:

  1. Read the file at path around the referenced line (use originalLine + diffHunk for outdated comments)
  2. Evaluate against project conventions (AGENTS.md) and code quality
  3. Assign an action:
    • FIX — feedback is valid; draft the code change
    • REPLY — disagree or no code change needed; draft a 1-2 sentence reply
    • SKIP — already addressed or not actionable

5. Present Plan

## PR Feedback Plan — #<number>: <title>

N comment(s) to address.

---

### 1 of N
**Reviewer:** @username | **File:** `path/File.kt:42`
**Link:** <url>
> Original comment text

**Action:** FIX — Description of proposed change

Repeat for each comment. Omit File: for general comments. End with:

**Summary:** Fixing X. Replying to Y. Skipping Z.

6. Confirm

Wait for user to say "go" or request changes:

  • "skip 2" / "change 3 to reply: text" / "change 1 to fix: description"
  • Re-present if modified

7. Execute

For each FIX (one commit per comment):

  1. Make the change (prefer Edit over Write)
  2. git add <specific-file> — never git add -A
  3. git commit -m "<concise description>" (under 100 chars, no Co-Authored-By, no AI mentions)
  4. Reply to the comment:
    gh api --method POST 'repos/OWNER/REPO/pulls/NUMBER/comments/COMMENT_DB_ID/replies' \
      -f body='Fixed in <short-hash>'
    

For each REPLY:

# Inline comments
gh api --method POST 'repos/OWNER/REPO/pulls/NUMBER/comments/COMMENT_DB_ID/replies' -f body='TEXT'
# General comments
gh api --method POST 'repos/OWNER/REPO/issues/NUMBER/comments' -f body='TEXT'

Process fixes in file order to minimize conflicts.

8. Push and Finish

git push

If user opted for device verification in step 0, invoke the verify-on-device skill.

Print summary:

## Done

**Fixes:** X commits pushed to `branch-name`
- `hash` commit message

**Replies:** Y posted
**Skipped:** Z comments

Reply Style

  • Fixes: Fixed in abc1234 — nothing more
  • Disagreements: 1-2 direct sentences, no AI/automation mentions

Edge Cases

  • Outdated comments (line is null): use originalLine + diffHunk to locate current code; flag if significantly changed
  • Deleted files: suggest REPLY explaining the file was removed
  • Already-replied threads: SKIP if author replied and reviewer didn't follow up
  • General review comments: include as REPLY-only items
  • >15 comments: suggest batching
  • Conflicting comments on same lines: group by file, flag conflicts

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Repair a failing WooCommerce Android Maestro flow by reproducing it against the store it runs on, inspecting Maestro selectors, patching the smallest selector/wait/setup issue, and rerunning with repeat evidence. Human-triggered only.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-android3192026年10月10日 更新

pos

無料

POS (Point of Sale) architecture and patterns. Use when writing, editing, exploring, debugging, fixing bugs, implementing features, or reviewing WooPos-prefixed classes or files under ui/woopos/. POS uses a different architecture than the main app — plain ViewModel (not ScopedViewModel), pure Compose (no Fragments), Compose Navigation (no nav graphs), parent-child SharedFlow event bus. Loading this skill prevents applying main-app patterns that would be wrong for POS. For analytics use `pos-analytics`, for tests use `pos-tests`.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-android3192026年10月10日 更新

POS analytics tracking patterns (WooPosAnalyticsEvent sealed class, WooPosAnalyticsTracker, WooPosAnalyticsEventConstant). Use when writing, editing, exploring, debugging, or reviewing analytics tracking in POS (WooPos*) code. NOT for main store app — use the `store-analytics` skill instead.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-android3192026年10月10日 更新

pos-tests

無料

POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification). Use when writing, editing, exploring, debugging, or reviewing unit tests for POS (WooPos*) code. NOT for main store app tests — use the `store-tests` skill instead.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-android3192026年10月10日 更新

pr

無料

Create a pull request following project conventions. Triggers on any request to create, open, make, submit, file, send, push, spin up, put up, draft, raise, or prepare a PR/pull request.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-android3192026年10月10日 更新

review

無料

Review code changes against project architecture, style, and conventions

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-android3192026年10月10日 更新

woocommerce のスキルをすべて見る

このスキルの問題を報告する