Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

pr-review-fixer公关审查修复者

Agent Skill

pr-review-fixer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

384

周安装

16

GitHub Stars

18

下载量

128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pr-review-fixer(公关审查修复者)
来源仓库:https://github.com/arjenschwarz/agentic-coding
仓库路径:skills/pr-review-fixer
安装命令:
npx skills add https://github.com/arjenschwarz/agentic-coding --skill pr-review-fixer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/arjenschwarz/agentic-coding --skill pr-review-fixer

简介

pr-review-fixer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

PR Review Fixer

Fetch unresolved PR comments, validate each issue, create a fix plan, implement fixes, and verify CI checks pass (tests, lint, build).

Workflow

1. Fetch PR Comments

# Get PR info
PR_NUM=$(gh pr view --json number --jq '.number')

# Get all PR comments via GraphQL (code-level AND PR-level)
gh api graphql -f query='
  query($owner: String!, $repo: String!, $pr: Int!) {
    repository(owner: $owner, name: $repo) {
      pullRequest(number: $pr) {
        # Code-level review comments (file/line specific)
        reviewThreads(first: 100) {
          nodes {
            id
            isResolved
            comments(first: 50) {
              nodes { id body author { login } path line }
            }
          }
        }
        # PR-level review comments (top-level review body)
        reviews(first: 50) {
          nodes {
            id
            body
            state
            author { login }
          }
        }
        # PR-level issue comments (general discussion)
        comments(first: 100) {
          nodes {
            id
            body
            author { login }
          }
        }
      }
    }
  }
' -f owner=OWNER -f repo=REPO -F pr=$PR_NUM

2. Filter Comments

Code-level comments (reviewThreads):

  1. Exclude resolved threads: Filter out threads where isResolved: true
  2. claude[bot] handling: For claude[bot] comments, keep only the last comment per thread
  3. Group by file/location: Organize by path and line number

PR-level review comments (reviews):

  1. Exclude empty bodies: Skip reviews with empty or whitespace-only body
  2. Exclude approval-only: Skip reviews with state APPROVED and no actionable feedback
  3. claude[bot] handling: For claude[bot] reviews, keep only the most recent one

PR-level issue comments (comments):

  1. Exclude bot noise: Skip automated comments (CI bots, etc.) unless actionable
  2. claude[bot] handling: Keep only the last claude[bot] comment
  3. Identify actionable items: Look for requested changes, questions, or suggestions

3. Determine Working Location

Review reports are posted as PR comments (not committed). Task files are local working files only.

Working directory: Use a temp directory or .claude/reviews/PR-[number]/ for local task files during the session. These files are not committed.

Iteration tracking: Check existing PR comments by claude[bot] with "PR Review Overview" in the body. Count those to determine the current iteration number N.

4. Validate Issues

Code-level comments:

  1. Read the referenced code at path:line
  2. Evaluate: Is issue still present? Is suggestion correct? Does it align with project conventions?
  3. Mark as valid or invalid with brief rationale

PR-level comments:

  1. Parse the comment for actionable items (suggestions, questions, requested changes)
  2. Check if the feedback applies to current PR state (changes may have been made since)
  3. Evaluate: Is the request reasonable? Does it align with project goals?
  4. Mark as valid or invalid with brief rationale
  5. Skip pure acknowledgments, thanks, or informational comments without action items

5. Create Review Overview

Prepare the review overview content (this will be posted as a PR comment, not committed):

# PR Review Overview - Iteration [N]

**PR**: #[number] | **Branch**: [name] | **Date**: [YYYY-MM-DD]

## Valid Issues

### Code-Level Issues

#### Issue 1: [title]
- **File**: `path:line`
- **Reviewer**: @user
- **Comment**: [quoted]
- **Validation**: [rationale]

### PR-Level Issues

#### Issue 2: [title]
- **Type**: review comment | discussion comment
- **Reviewer**: @user
- **Comment**: [quoted]
- **Validation**: [rationale]

## Invalid/Skipped Issues

### Issue A: [title]
- **Location**: `path:line` or PR-level
- **Reviewer**: @user
- **Comment**: [quoted]
- **Reason**: [why invalid]

6. Create Task List

Use rune to create review-fixes-[N].md:

rune create ${OUTPUT_DIR}/review-fixes-${N}.md \
  --title "PR Review Fixes - Iteration ${N}" \
  --reference ${OUTPUT_DIR}/review-overview-${N}.md

# Add tasks via batch for efficiency
rune batch ${OUTPUT_DIR}/review-fixes-${N}.md --input '{
  "file": "review-fixes-'${N}'.md",
  "operations": [
    {"type": "add", "title": "Fix: [issue 1]"},
    {"type": "add", "title": "Fix: [issue 2]"}
  ]
}'

7. Fix Issues

Loop through tasks:

  1. rune next [file] - get next task
  2. rune progress [file] [id] - mark in-progress
  3. Implement the fix
  4. rune complete [file] [id] - mark complete
  5. Repeat until done

8. Check CI Status

After fixing review comments, verify CI checks:

# Get check status for the PR
gh pr checks --json name,state,conclusion

# For failed checks, get details
gh run view [RUN_ID] --log-failed

Check types to handle:

  1. Test failures: Parse test output, identify failing tests, fix code or tests
  2. Lint errors: Run linter locally, fix reported issues
  3. Type errors: Run type checker, fix type mismatches
  4. Build failures: Check build logs, fix compilation issues

9. Fix CI Issues

For each failed check:

  1. Identify the failure type from check name and logs
  2. Run locally to reproduce:

- Tests: make test or project's test command - Lint: make lint or project's lint command - Types: make typecheck or equivalent

  1. Parse error output to identify specific failures
  2. Fix the issues:

- For test failures: Check if test expectations need updating or if code has a bug - For lint errors: Apply automatic fixes where possible, manual fixes otherwise - For type errors: Add/fix type annotations or fix type mismatches

  1. Re-run locally to verify fix
  2. Add to task list if not already tracked

Test failure handling:

# Run tests and capture output
make test 2>&1 | tee test-output.txt

# If using pytest
pytest --tb=short 2>&1 | tee test-output.txt

# If using go test
go test ./... 2>&1 | tee test-output.txt

Parse output for:

  • Failed test names and locations
  • Assertion errors with expected vs actual values
  • Stack traces pointing to failure source

10. Resolve Fixed Threads

After fixing code-level issues, resolve the corresponding review threads on GitHub:

# For each fixed code-level thread, resolve it using its thread ID
gh api graphql -f query='
  mutation($threadId: ID!) {
    resolveReviewThread(input: {threadId: $threadId}) {
      thread { isResolved }
    }
  }
' -f threadId=THREAD_NODE_ID

Only resolve threads whose issues were validated and fixed. Do not resolve threads that were skipped or marked invalid — those need human attention.

11. Post Review Report as PR Comment

Post the review overview as a comment on the PR. This replaces committing report files.

# Post the review overview content as a PR comment
gh pr comment $PR_NUM --body "$(cat <<'EOF'
# PR Review Overview - Iteration [N]

**PR**: #[number] | **Branch**: [name] | **Date**: [YYYY-MM-DD]

## Valid Issues (fixed)

[List of validated and fixed issues with file:line, reviewer, and brief description]

## Invalid/Skipped Issues

[List of skipped issues with rationale]

## CI Status

[Summary of CI check results and any fixes applied]
EOF
)"

Do not commit review-overview-*.md or review-fixes-*.md files. They are working files only.

12. Commit, Push, and Verify

After all fixes:

  1. Run full test suite locally
  2. Run linter
  3. Commit only code changes (exclude any local review/task files)
  4. Push to remote
  5. Monitor CI status to confirm checks pass

Key Behaviors

  • Auto-fix: Fix all validated issues without pausing for approval
  • Context preservation: Keep diff_hunk context when analyzing
  • Convention adherence: Follow project's existing patterns
  • Deduplication: Consolidate multiple comments on same issue into one task
  • CI verification: Always check CI status after fixing review comments
  • Local reproduction: Run tests/linters locally before pushing fixes
  • Reports as comments: Post review reports as PR comments, never commit them
  • Clean commits: Only commit actual code changes, not working/report files

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.14%
按下载量换算46

Claude

26.92%
按下载量换算34

Cursor

18.62%
按下载量换算24

Gemini CLI

8.66%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills