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

review审查

Agent Skill

review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

6

下载量

118
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/chanmuzi/git-conventions --skill review

简介

review 用于获取指定 PR 的评论和审查摘要,辅助代码审查和协作反馈收集。

  • 适用于需要拉取 GitHub API 数据以分析评审意见或机器人评论的场景。
  • 通过 PR 编号或 URL 定位目标,支持提取评论路径、行号和用户信息。
  • 安装前请确认仓库权限、维护状态,并注意可能触发命令执行或网络请求。
  • review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Identify Target PR

Parse $ARGUMENTS to extract a PR number or URL. If not provided, detect from the current branch:

gh pr view --json number --jq '.number' 2>/dev/null

If no PR is found, ask the user to specify one.

Step 1: Collect Review Comments

Fetch all review comments on the PR (both human and bot/AI):

gh api repos/{owner}/{repo}/pulls/{number}/comments --jq '.[] | {id: .id, path: .path, line: .line, body: .body, user: .user.login, created_at: .created_at}'

Also fetch PR-level review summaries:

gh api repos/{owner}/{repo}/pulls/{number}/reviews --jq '.[] | {id: .id, user: .user.login, state: .state, body: .body}'

Also fetch issue-level comments (used by AI reviewers like CodeRabbit):

gh api repos/{owner}/{repo}/issues/{number}/comments --jq '.[] | {id: .id, body: .body, user: .user.login, html_url: .html_url, created_at: .created_at}'

Fetch review thread IDs for resolving conversations later (GraphQL):

gh api graphql -f query='
  query($owner: String!, $repo: String!, $number: Int!) {
    repository(owner: $owner, name: $repo) {
      pullRequest(number: $number) {
        reviewThreads(first: 100) {
          nodes {
            id
            isResolved
            comments(first: 1) {
              nodes { databaseId }
            }
          }
        }
      }
    }
  }
' -f owner='{owner}' -f repo='{repo}' -F number={number}

Map each databaseId (= REST comment ID) to its GraphQL threadId for the resolve step.

Include all reviewers — human teammates and AI bots alike. Do NOT filter by user type. Track each comment's source type (review comment vs. issue comment) for the reply and resolve steps.

Step 2: Analyze Each Suggestion

For each review comment:

  1. Read the referenced file and surrounding code context (at least 20 lines around the mentioned line).
  2. Understand the reviewer's suggestion in the context of the actual code.
  3. Evaluate the suggestion's validity:
CategoryCriteria
ValidReal bug, security issue, or meaningful improvement
DebatableStylistic preference or trade-off that could go either way
Can Safely IgnoreMisunderstands the code, already handled elsewhere, or not applicable

Step 3: Present Findings

Group findings by category and present to the user:

## Review Analysis for PR #{number}

### ✅ Valid Suggestions (recommended to apply)

1. **[file.py:42]** {summary}
   - Reviewer said: {brief quote}
   - Assessment: {why this is valid, what the fix should be}

### 🤔 Debatable

1. **[file.py:78]** {summary}
   - Reviewer said: {brief quote}
   - Pros: {benefits of applying}
   - Cons: {reasons to skip}

### ❌ Can Safely Ignore

1. **[file.py:15]** {summary}
   - Reviewer said: {brief quote}
   - Why: {reason this is not applicable — e.g., misunderstood context, project convention differs}

Step 4: Discuss and Apply

For each Valid or Debatable suggestion:

  1. Ask the user whether to apply the change.
  2. If approved, make the code change using Edit.
  3. For items NOT applied, determine the disposition:

- Won't Fix: Not applicable, intentionally not addressing, or disagree with the suggestion. Record reason in reply only. - Follow-up: Valid but out of scope for this PR. Will be tracked as an issue.

  1. After all approved changes are applied, suggest a commit message following the project's commit convention (e.g., fix: 리뷰 피드백 반영).

Step 5: Reply to Review Comments

After the commit is created, reply to each review comment on GitHub to record the resolution.

For each comment that was discussed (Valid, Debatable, or Ignored), reply using the appropriate API based on the comment's source type:

For review comments (inline file comments):

gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies -f body="{reply_body}"

For issue comments (CodeRabbit, etc.):

gh api repos/{owner}/{repo}/issues/{number}/comments -f body="{reply_body}"

For issue comments only, prepend a quote line before the structured format: > Re: @{user} [{comment_url}] This quote line is part of the format for issue comments — it does not apply to review comments.

Reply format

Replies MUST follow the exact structured format below. Do NOT use free-form prose or unstructured sentences.

Write the reply body in the language configured in the project's CLAUDE.md. If no language is configured, follow the user's conversational language. Examples below are in Korean:

If applied:

✅ **반영 완료**

- **커밋**: [{short_sha}](https://github.com/{owner}/{repo}/commit/{short_sha})
- **변경**: {1-line summary of what was changed}

If Won't Fix:

⏭️ **미반영 (Won't Fix)**

- **사유**: {concise reason — e.g., 프로젝트 컨벤션과 상충, 이미 다른 방식으로 처리됨}

If Follow-up:

🔜 **후속 작업 예정**

- **사유**: {concise reason — e.g., 현재 PR 범위 밖, 별도 작업으로 진행 예정}
- **이슈**: #{issue_number}

If no blanket approval was given, present all planned replies for approval before posting. A blanket instruction (e.g., "모두 반영", "다 적용해", "apply all") covers all remaining steps — code changes, replies, and thread resolution — so do not re-ask per step.

Resolve concluded threads

After posting replies, resolve the conversation thread using the GraphQL API:

gh api graphql -f query='mutation($id: ID!) { resolveReviewThread(input: {threadId: $id}) { thread { isResolved } } }' -f id='{thread_id}'

Use the databaseId → threadId mapping collected in Step 1.

Resolve rules

DispositionResolve?Reason
✅ AppliedYesWork is complete
⏭️ Won't FixYesDecision is final, no further action
🔜 Follow-upNoOpen work remains — issue tracks it

Resolve MUST happen immediately after posting the reply for each concluded thread. Do NOT skip this step. Issue comments (CodeRabbit, etc.) do not have resolvable threads — skip the resolve step for those.

Create follow-up issue for deferred items

If there are Follow-up items from Step 4, group related ones and create a consolidated issue. Do NOT create issues for Won't Fix items — their reasons are already recorded in the PR reply.

gh issue create --title "[Review] PR #{number} 후속 작업" --body "$(cat <<'EOF'
PR #{number} 리뷰에서 확인된 후속 작업 항목.

### 1. {summary}
- 원본: {comment_url}
- 사유: {why deferred}

### 2. {summary}
- 원본: {comment_url}
- 사유: {why deferred}
EOF
)"
  • Group by relevance — do NOT create one issue per comment.
  • If all follow-up items are closely related, create a single issue.
  • If there are clearly distinct groups, create one issue per group (max 2-3).
  • Skip issue creation if there are no follow-up items.

Important:

  • Do NOT apply any code changes without explicit user approval for each item.
  • Do NOT post reply comments without explicit user approval.
  • A blanket instruction (e.g., "모두 반영해줘", "apply all") counts as explicit approval for all steps. Do not ask again per-step.
  • Read the actual code context before judging — do not rely solely on the review comment.
  • Consider the project's existing patterns, conventions, and CLAUDE.md instructions.
  • Be honest when a review catches a genuine issue — do not dismiss valid feedback.
  • If no review comments are found, inform the user.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.49%
按下载量换算41

Claude

30.45%
按下载量换算36

Cursor

20.04%
按下载量换算24

Gemini CLI

9.08%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills