Token导航 LogoToken导航

Agent Skill · 研究检索

ai-pr-review(AI 公关评论)

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

ai-pr-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 48,372。

总安装 692周安装 28GitHub Stars 14下载 217核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill ai-pr-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

AI 驱动的 PR 审查技能支持代码变更分析、验收标准验证及自动化评审意见发布。适用于 GitHub 仓库中 Pull Request 的质量保障流程,提供内联评论与严重等级分类。可集成 issue 关联检查、性能问题识别和安全漏洞扫描等多维度评估能力。

使用前需配置 GitHub API 权限并熟悉项目特定的治理规范文件路径。建议结合团队代码审查标准定制检查项,避免过度干预或遗漏关键风险点。

来源仓库内路径:skills/ai-pr-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill ai-pr-r…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ai-pr-review 怎么安装?

在终端执行 npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill ai-pr-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ai-pr-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ai-pr-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

ai-pr-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ai-pr-review 用的人多吗?

公开数据是累计安装 692 次,近一周安装 28 次,下载 217 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ai-pr-review 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ai-pr-review

AI 公关评论 · 本页

69214接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

ai-pr-review

Description: AI-powered pull request review with inline comments, severity classification, acceptance criteria verification, and optional fix-and-verify loop

Category: Code Quality Assurance / Governance

Complexity: High (multi-step review workflow + GitHub API integration)


Purpose

Perform comprehensive AI-powered PR reviews following the governance workflow defined in governance/AI_PR_Review/. The skill:

  1. Fetches PR diff and metadata
  2. Verifies linked issue acceptance criteria (when applicable)
  3. Analyzes code for bugs, security issues, performance problems
  4. Posts formal GitHub reviews with inline comments
  5. Applies appropriate PR labels
  6. Optionally enters fix-and-verify loop for REQUEST_CHANGES

Capabilities

1. PR Analysis

  • Diff parsing: Analyze unified diff for code changes
  • Context reading: Read full source files for deeper understanding
  • Metadata extraction: PR title, body, linked issues, labels, reviewers

2. Code Review Focus Areas

  • Bugs: Logic errors, off-by-one, null/None handling
  • Security: Injection, credential leaks, auth bypass, OWASP Top 10
  • Performance: N+1 queries, unbounded loops, memory leaks
  • Error handling: Bare except, swallowed exceptions, missing retries
  • Type safety: API contract violations, missing type hints

3. Severity Classification

SeverityDefinitionReview Event
CriticalSecurity vulnerabilities, data loss, crashesREQUEST_CHANGES
MediumBugs, missing error handling, resource leaksREQUEST_CHANGES or COMMENT
LowMinor improvements, best practicesCOMMENT

4. Linked Issue Verification

  • Parse PR body for Closes #N, Fixes #N, Resolves #N
  • Fetch issue acceptance criteria
  • Verify each criterion against PR changes
  • Include verification table in review output

5. Review Output

  • Formal GitHub Review: Inline comments in "Files changed" tab
  • Summary Comment: Visibility in PR conversation
  • Conclusion Comment: Merge decision with JSON metadata
  • PR Labels: ai:review-passed or ai:review-failed
  • Issue Cross-post: Review record on linked issue (audit trail)

6. Fix-and-Verify Loop (On-Demand)

  • Checkout PR branch
  • Apply fixes to identified findings
  • Commit with Co-Authored-By attribution
  • Push and wait for CI
  • Re-review (max 3 iterations)

Review Workflow

graph TD
    A[Start Review] --> B[Fetch PR Diff + Metadata]
    B --> C{Linked Issue?}
    C -->|Yes| D[Verify Acceptance Criteria]
    C -->|No| E[Note Missing Issue Link]
    D --> F[Analyze Code Changes]
    E --> F

    F --> G{Findings?}
    G -->|Critical/Medium| H[REQUEST_CHANGES]
    G -->|Low Only| I[COMMENT]
    G -->|None| J[APPROVE]

    H --> K{Fix Mode Enabled?}
    K -->|Yes| L[Fix-and-Verify Loop]
    K -->|No| M[Post Review + Conclusion]

    L --> N[Apply Fixes]
    N --> O[Commit & Push]
    O --> P[Wait for CI]
    P --> Q[Re-Review]
    Q --> R{All Fixed?}
    R -->|Yes| J
    R -->|No, Iteration < 3| L
    R -->|No, Iteration = 3| S[Escalate to Human]

    I --> M
    J --> M
    S --> M

    M --> T[Apply PR Label]
    T --> U[Cross-post to Issue]
    U --> V[Review Complete]

Usage Instructions

Basic PR Review

Review PR #<NUMBER> following the AI PR Review workflow.

The agent will:

  1. Fetch PR diff and metadata using gh CLI
  2. Analyze code changes
  3. Post formal review with inline comments
  4. Post conclusion comment
  5. Apply ai:review-passed or ai:review-failed label

Review with Issue Verification

Review PR #<NUMBER> and verify it against linked issue #<ISSUE>.

Adds acceptance criteria verification to the review output.

Review with Fix-and-Verify

Review PR #<NUMBER> with fix-and-verify enabled.

If REQUEST_CHANGES is posted, the agent will attempt to fix findings and re-review (up to 3 iterations).

Manual Trigger Example

# Using gh CLI directly
gh workflow run ai-pr-review.yml \
  --field pr_number=42 \
  --field model=sonnet

Severity Tag Format

Inline comments use severity tags in the body:

**[Critical]** SQL injection vulnerability in user query.

Suggested fix:

Use parameterized queries instead of string concatenation

cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))

**[Medium]** Bare `except` swallows all exceptions including KeyboardInterrupt.

Replace with specific exception handling

except Exception as e: logger.error(f"Operation failed: {e}") raise

**[Low]** Consider using `pathlib.Path` instead of `os.path` for path operations.

Review Event Decision Tree

Has Critical findings?
 YES → REQUEST_CHANGES
 NO
    Has Medium findings?
     YES
       Affects correctness or security?
        YES → REQUEST_CHANGES
        NO (performance/style only) → COMMENT
     NO
        Has Low findings?
         YES → COMMENT
         NO → APPROVE

Conclusion Comment Format

## Review Conclusion

**Decision**: Approved to merge

| Metric | Value |
|:-------|:------|
| Findings | 0 Critical, 0 Medium, 2 Low |
| Review event | APPROVE |
| Model | claude-sonnet-4-5 |

No blocking issues found. Code changes look correct.

---
_AI Code Review (Claude) | 2026-02-17_

<!-- AI_REVIEW_METADATA {"decision":"approved","model":"claude-sonnet-4-5","pr":42,"repo":"owner/repo","findings":{"critical":0,"medium":0,"low":2},"review_event":"APPROVE","timestamp":"2026-02-17T15:30:00-05:00"} AI_REVIEW_METADATA -->

PR Labels

LabelWhen AppliedColor
ai:review-passedAPPROVE or COMMENT with zero critical/mediumGreen
ai:review-failedREQUEST_CHANGESRed
skip-ai-reviewAdded by user to bypass automated reviewGray

Labels are replaced on each review (not accumulated).


Skip Patterns

The following are excluded from code analysis:

File types:

  • *.md, *.txt, *.json, *.toml, *.yaml, *.yml, *.lock
  • *.svg, *.png, *.jpg, *.jpeg, *.gif, *.ico
  • *.woff*, *.eot, *.ttf

Directories:

  • docs/, .github/, governance/
  • LICENSE, .gitignore, .gitmodules

Exception: Include filtered files when performing documentation-specific review.


Tool Access

Required tools:

  • Read: Read source code files and PR diff
  • Bash: Execute gh CLI commands for GitHub API operations
  • Grep: Search for patterns in code
  • Glob: Find relevant source files

Required environment:

  • gh CLI authenticated to GitHub
  • ANTHROPIC_API_KEY for Claude API access
  • Repository write access for posting reviews

Integration Points

With code-review Skill

  • Uses same severity classification
  • Shares analysis patterns for bugs, security, performance
  • Complements local code review with PR-level review

With test-automation Skill

  • Verifies CI checks pass before APPROVE
  • Identifies uncovered code paths in PR

With security-audit Skill

  • Shares security vulnerability findings
  • Coordinates on CRITICAL security issues

With trace-check Skill

  • Verifies traceability from PR to requirements
  • Checks acceptance criteria alignment

Governance Integration

Issue Label Lifecycle

Review OutcomeIssue Label Action
REQUEST_CHANGES (entering fix loop)Keep ai:in-progress
Fix loop complete, APPROVE postedApply ai:review-requested
Human merges PR(auto) → Done

PR Label Lifecycle

Review EventPR Label
APPROVEai:review-passed
COMMENT (low-only)ai:review-passed
REQUEST_CHANGESai:review-failed

Security Constraints

ConstraintDetail
Review authorityAI reviews are advisory; human review mandatory
Self-review rulePR author cannot self-review; assign different reviewer
Commit attributionFix commits include Co-Authored-By: Claude <noreply@anthropic.com>
Scope containmentFixes only address identified findings; no unrelated changes

Limits

LimitValue
Max inline comments per review15
Default cost cap per review$1.00 USD
Review timeout5 minutes
Fix-verify iterations3 max

Configuration

Repository Secrets

SecretDescription
ANTHROPIC_API_KEYAnthropic API key for Claude

Workflow Inputs

InputDefaultDescription
modelsonnetClaude model (sonnet, haiku, opus)
max-budget-usd1.00Cost cap per review

Error Handling

ScenarioBehavior
Empty or trivial diffSkip review, exit 0
Inline comments get 422Retry with summary-only review
Review exceeds budgetPartial review posted
Fix loop cap reachedEscalate to human reviewer
CI failure after fixDo not APPROVE; post COMMENT with details

Related Documents

DocumentPurpose
README.mdSystem overview
AI_AGENT_REVIEW_WORKFLOW.mdOn-demand review protocol
LOCAL_SETUP.mdLocal environment setup
ONBOARDING.mdAdd to new repositories

Success Criteria

  • Zero CRITICAL findings pass undetected
  • Review posted within 5 minutes
  • Inline comments reference correct line numbers
  • Conclusion comment includes valid JSON metadata
  • PR labels applied correctly
  • Issue cross-post created (when linked issue exists)

Notes

  • Automated reviews trigger on pull_request events
  • Manual reviews invoked via /ai-pr-review command or workflow dispatch
  • Reviews are advisory; human approval still required
  • Fix-verify loop requires explicit enablement

平台分布

Codex

33.55%
按下载量换算73

Claude

29.12%
按下载量换算63

Cursor

19.11%
按下载量换算41

Gemini CLI

9.75%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills