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

pr-review公关审查

Agent Skill

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

总安装

269

周安装

11

GitHub Stars

9

下载量

86
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/freenet/freenet-agent-skills --skill pr-review

简介

pr-review 技能提供公关材料的合规性与一致性审查建议。

  • 适用于多语言、多地区发布的品牌内容质量控制。
  • 支持在 Cursor、Claude 等宿主中通过 GitHub 安装使用。
  • 不能替代专业律师或品牌经理的最终审批职责。
  • pr-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

PR Reviewer

Execute a comprehensive PR review covering all four review perspectives from Freenet quality standards.

When to Use

Use /freenet:pr-review <PR-NUMBER> after a PR is ready for review, before merging.

Review Process

Step 1: Gather PR Context

# Get PR details
gh pr view <NUMBER>

# Get the diff
gh pr diff <NUMBER>

# Check for linked issues
# Look for "Fixes #XXX" or "Closes #XXX" in description
gh issue view <ISSUE_NUMBER>  # if linked

# List affected files
gh pr diff <NUMBER> --name-only

# Check CI status
gh pr checks <NUMBER>

Step 2: Code-First Review

Review the code before reading the PR description to form an independent understanding.

Process:

  1. Read the diff without looking at the description
  2. Answer: What does this code do? What problem does it solve?
  3. Now read the PR description
  4. Compare your understanding with stated intent
  5. Flag any gaps or mismatches

Look for:

  • Does the code do what I think it should?
  • Are there hidden side effects?
  • Is the implementation approach sound?

Step 3: Testing Review

Analyze test coverage at all levels.

Check for:

  • Unit tests for new/modified functions
  • Integration tests for component interactions
  • Simulation tests for distributed behavior (if applicable)
  • E2E tests for user-facing changes

Questions to answer:

  • Does the regression test fail without the fix and pass with it?
  • Are edge cases covered?
  • Are error paths tested?
  • Would these tests catch similar bugs?

Red flags:

  • No tests for bug fixes
  • Tests that only check happy path
  • Removed or weakened test assertions
  • #[ignore] annotations

Step 4: Skeptical Review

Adversarial review looking for bugs, race conditions, and edge cases.

Attack vectors to explore:

  • Race conditions in concurrent code
  • Integer overflow/underflow
  • Null/None handling
  • Resource leaks (memory, file handles, connections)
  • Error propagation gaps
  • State machine invalid transitions
  • Timeout and retry edge cases

For each change, ask:

  • What happens if this fails?
  • What happens under high load?
  • What happens with malicious input?
  • What happens if called twice?
  • What happens if called out of order?

5 Recurring Bug Patterns (from Feb 2025 fix review — 25/25 bugs):

Check if the PR introduces or touches code matching these patterns:

PatternWhat to Look For
biased; select starvationPer-iteration caps? Cancellation safety? Which arm starves?
Fire-and-forget spawnsJoinHandle stored? try_send on critical paths? Catch-all _ => in metrics?
State cleanup on failureALL related maps cleaned up? Peer lists filtered to live connections? GC exemptions time-bounded?
Backoff without jitterJitter ±20%? Sleep interruptible via select!? Zero-connection re-bootstrap? Critical msgs retried?
Deployment gapsExit codes declared? Auto-update gated on release? Security tested against app needs? Unused deps?

Step 5: Big Picture Review

Ensure the PR actually solves the stated problem and doesn't exhibit "CI chasing" anti-patterns.

Check for removed code:

# Look for deleted tests or fix code
gh pr diff <NUMBER> | grep -E '^-.*#\[test\]|^-.*fn test_|^-.*assert'

Anti-patterns to detect:

Anti-PatternWhat to Look For
Ignored tests#[ignore], skip, @Ignore
Weakened assertionsLooser tolerances, .ok() on Results
Commented codeEspecially tests or validation
Magic numbersHardcoded values replacing logic
Error swallowing.unwrap_or_default(), silent fallbacks

Big picture questions:

  1. Does this PR actually solve the stated problem?
  2. Does it fully address the linked issue?
  3. Does it conflict with other open PRs?
  4. Does it introduce patterns that will cause future problems?
  5. Is there scope creep?

Step 6: Documentation Review

Check if documentation is complete:

  • Code docs: Do new public items have doc comments?
  • Architecture docs: Do changes require doc updates?
  • User docs: Are CLI/config changes documented?
  • Stale docs: Do any existing docs contradict the changes?

Output Format

Produce a consolidated review report:

## Comprehensive PR Review: #<NUMBER>

### Summary
- **PR Title:** <title>
- **Type:** <feat/fix/refactor/etc>
- **CI Status:** <passing/failing/pending>
- **Linked Issues:** <issue numbers or "none">

---

### Code-First Analysis
**Independent Understanding:** <what the code appears to do>
**Stated Intent:** <from PR description>
**Alignment:** <matches/partially matches/misaligned>
**Gaps:** <any discrepancies>

---

### Testing Assessment
**Coverage Level:** <adequate/insufficient/excessive>

| Test Type | Status | Notes |
|-----------|--------|-------|
| Unit | ✅/❌/⚠️ | <details> |
| Integration | ✅/❌/⚠️ | <details> |
| Simulation | ✅/❌/N/A | <details> |
| E2E | ✅/❌/N/A | <details> |

**Regression Test:** <present and valid / missing / insufficient>
**Missing Tests:** <list specific gaps>

---

### Skeptical Findings
**Risk Level:** <low/medium/high>

| Concern | Severity | Location | Details |
|---------|----------|----------|---------|
| <issue> | <high/med/low> | <file:line> | <explanation> |

---

### Big Picture Assessment
**Goal Alignment:** <yes/partial/no>
**Anti-Patterns Detected:** <list or "none">
**Removed Code Concerns:** <list or "none">
**Scope Assessment:** <focused/some creep/significant creep>

---

### Documentation
- Code docs: <complete/incomplete/missing>
- Architecture docs: <up-to-date/needs-update/n/a>
- User docs: <up-to-date/needs-update/n/a>

---

### Recommendations

#### Must Fix (Blocking)
1. <critical issues that must be addressed>

#### Should Fix (Important)
1. <significant issues that should be addressed>

#### Consider (Suggestions)
1. <minor improvements or style suggestions>

---

### Verdict
**Ready to Merge:** <Yes / No - needs changes / No - needs discussion>

<If not ready, summarize what's needed>

Parallel Subagent Reviews

For deeper analysis, spawn the specialized review agents in parallel using the Task tool with subagent_type="general-purpose". Include the agent definition (from agents/) in each prompt so the subagent follows the correct review methodology.

Spawn all four in parallel using Task tool (all use subagent_type="general-purpose"):

1. "You are a code-first-reviewer. [Include agents/code-first-reviewer.md instructions]
    Review PR #<NUMBER> in freenet/freenet-core"

2. "You are a testing-reviewer. [Include agents/testing-reviewer.md instructions]
    Review test coverage for PR #<NUMBER> in freenet/freenet-core"

3. "You are a skeptical-reviewer. [Include agents/skeptical-reviewer.md instructions]
    Do a skeptical review of PR #<NUMBER> in freenet/freenet-core"

4. "You are a big-picture-reviewer. [Include agents/big-picture-reviewer.md instructions]
    Do a big-picture review of PR #<NUMBER> in freenet/freenet-core"

External Skeptical Review with Codex

After completing the internal review, ask Codex to do a skeptical review of the PR. Codex uses a different model and catches different classes of issues — having an independent perspective reduces blind spots. Share the PR number and ask it to look for bugs, race conditions, edge cases, and failure modes. Incorporate any findings into the final review report.

Quality Standards

  • Be thorough but constructive
  • Cite specific files and line numbers
  • Explain WHY something is a problem, not just WHAT
  • Suggest fixes, not just criticisms
  • Acknowledge what's done well
  • Don't nitpick style if it matches codebase conventions

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.92%
按下载量换算30

Claude

30.43%
按下载量换算26

Cursor

16.44%
按下载量换算14

Gemini CLI

9.25%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/freenet/freenet-agent-skills --skill pr-review 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills