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

review审查

Agent Skill

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

总安装

696

周安装

29

GitHub Stars

318

下载量

232
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/boshu2/agentops --skill review

简介

review 审查他人或 Agent 产出,聚焦变更合理性而非自身代码质量。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中进行 peer review。
  • 支持 PR 模式、本地 diff 模式及 Agent 输出专项审查三种方式。
  • 区别于 /vibe,本技能专责外部变更评估,确保协作一致性。
  • review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Review Skill

Quick Ref: /review <PR> reviews a PR, /review --diff reviews local changes, /review --agent <path> reviews agent output with extra scrutiny.

YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.

This skill is for reviewing OTHER people's or agents' changes. For validating your own code quality, use /vibe instead.


Modes

/review 42                          # PR mode — review PR #42
/review https://github.com/o/r/pull/42  # PR mode — review by URL
/review --diff                      # Diff mode — review unstaged/staged changes
/review --diff --staged             # Diff mode — staged only
/review --agent .agents/crank/      # Agent mode — review agent-generated output
/review --agent ./output.patch      # Agent mode — review a patch file
/review --deep 42                   # Deep mode — spawns council for second opinion

Execution Steps

Step 0: Detect Review Target and Load Standards

Determine the review mode from arguments:

  1. PR mode (default): argument is a number or GitHub PR URL.
  2. Diff mode: --diff flag present.
  3. Agent mode: --agent <path> flag present.

Load language-specific conventions from /standards based on file extensions in the diff. If ao is available, pull prior review context:

ao lookup --query "code review patterns $(basename "$PWD")" --limit 3 2>/dev/null || true

Apply retrieved knowledge (mandatory when results returned):

If learnings are returned, do NOT just load them as passive context. For each returned item:

  1. Check: does this learning apply to the code under review? (answer yes/no)
  2. If yes: include it as a known_risk — state the pattern, what to look for, and whether the diff exhibits it
  3. Cite the learning by filename in your review output when it influences a finding

After applying, record the citation:

ao metrics cite "<learning-path>" --type applied 2>/dev/null || true

Skip silently if ao is unavailable or returns no results.

Step 0.5: Apply Behavioral Discipline

Load the behavioral discipline standard from /standards before reviewing the diff. Use it to answer four questions:

  1. What assumptions does this change make, and were they surfaced or silently chosen?
  2. Could the same outcome be achieved with a smaller or more local change?
  3. Does every changed line trace back to the stated goal?
  4. Does the verification prove the claimed behavior, or only that the code builds?

If any answer is weak, record the problem as a finding. Hidden assumptions, speculative abstractions, drive-by edits, and weak verification are review defects, not style preferences.


Step 1: Fetch the Diff

PR Mode

gh pr view "$PR_REF" --json title,body,author,baseRefName,headRefName,labels,reviewDecision,commits
gh pr diff "$PR_REF"
gh pr diff "$PR_REF" --name-only

If the PR has more than 500 changed lines, prioritize: security-sensitive files, high-complexity changes, new files, then test files.

Diff Mode

git diff HEAD                  # unstaged + staged
git diff --cached              # staged only (with --staged flag)
git diff HEAD --name-only      # changed file list

Agent Mode

# Directory: find all generated files
find "$AGENT_PATH" -type f \( -name '*.go' -o -name '*.py' -o -name '*.ts' -o -name '*.sh' -o -name '*.md' \)
# Patch file: inspect stats
git apply --stat "$AGENT_PATH"

Step 2: Context Gathering

Understand the intent behind the changes before reviewing the code:

  • PR Mode: Read PR title/body, check linked issues (fixes #, closes #), read commit messages.
  • Diff Mode: Check git log --oneline -5, branch name, open issues via bd list --status open.
  • Agent Mode: Read execution logs in output directory, check .agents/rpi/ artifacts.

Output a one-line intent summary before proceeding:

INTENT: <what the change is trying to accomplish>

If intent is unclear, flag it: "PR description does not explain the purpose of this change."


Step 3: Systematic Review Pass (SCORED)

Review every changed file against the SCORED checklist. For each category, actively look for problems. Do not skim -- read each changed line.

S -- Security

  • No hardcoded secrets, API keys, tokens, or passwords
  • Input validation on all external data (user input, API responses, file reads)
  • SQL/command injection: parameterized queries, no string interpolation in commands
  • Auth/authz checks present where needed (not just authn)
  • Sensitive data not logged or exposed in error messages
  • Dependencies: no known-vulnerable versions added
  • File operations: path traversal prevention, safe temp file handling

C -- Correctness

  • Logic errors: off-by-one, wrong operator, inverted condition
  • Edge cases: nil/null handling, empty collections, boundary values
  • Error handling: errors checked, not swallowed, wrapped with context
  • Race conditions: shared mutable state, concurrent access patterns
  • Resource leaks: unclosed files, connections, goroutines, channels
  • Type safety: unchecked casts, implicit conversions, overflow potential
  • Contract compliance: does the change match the stated intent?

O -- Observability

  • Errors include enough context for debugging (what failed, with what input)
  • New features have appropriate logging at correct levels
  • Metrics or health indicators added for new failure modes
  • Error messages are actionable (not just "something went wrong")

R -- Readability

  • Names are descriptive and consistent with codebase conventions
  • Functions are focused (single responsibility, not doing too much)
  • Complex logic has comments explaining WHY (not WHAT)
  • No dead code, commented-out code, or leftover debug statements
  • Consistent formatting with the rest of the codebase

E -- Efficiency

  • No unnecessary allocations in hot paths
  • N+1 query patterns (database calls in loops)
  • Unbounded growth: maps/slices that grow without limits
  • Appropriate use of caching, batching, or pagination
  • No blocking operations in async/concurrent contexts

D -- Design

  • Abstraction level is appropriate (not over-engineered, not under-abstracted)
  • API surface is minimal and consistent with existing patterns
  • Changes are cohesive (single concern per PR, not mixing refactoring with features)
  • Ambiguity was surfaced instead of silently assumed away
  • No speculative flexibility or abstractions beyond the stated need
  • Every changed line traces to the requested outcome or required cleanup
  • Dependencies flow in the right direction (no circular imports)
  • Test coverage: new code has tests, tests verify behavior (not just coverage)
  • Breaking changes are documented and intentional

Step 4: Agent-Specific Checks (--agent mode only)

When reviewing agent-generated code, apply additional scrutiny for common agent failure modes:

Hallucinated References

  • All imports exist (no invented packages or modules)
  • All called functions exist in the codebase or dependencies
  • Referenced files and paths actually exist
  • API endpoints and URLs are real

Over-Engineering

  • No unnecessary abstractions (interfaces with one implementation, factory for one type)
  • No premature generalization (generic solution where specific was asked)
  • No gold-plating (features not requested)
  • Reasonable LOC for the task complexity

Missing Fundamentals

  • Error handling is present (agents frequently skip error paths)
  • Edge cases are handled (agents often only handle the happy path)
  • Cleanup/teardown logic exists (defer, finally, context cancellation)
  • Concurrency safety if applicable

Test Quality

  • Tests actually assert meaningful behavior (not just != nil or != "")
  • Test names describe the scenario being tested
  • Tests cover error paths, not just happy paths
  • No cov*_test.go naming pattern (coverage-padding anti-pattern)
  • Mocks are realistic (not returning hardcoded success for everything)

Codebase Consistency

  • Follows existing naming conventions (check 3+ similar files for patterns)
  • Uses existing helpers/utilities instead of reimplementing
  • Error handling style matches the codebase
  • File organization follows project structure

Step 5: Generate Structured Review Output

Create a review artifact:

REVIEW_DIR=".agents/review"
mkdir -p "$REVIEW_DIR"
REVIEW_FILE="$REVIEW_DIR/$(date +%Y-%m-%d)-review-$(echo "$PR_REF" | tr '/' '-').md"

Review Document Structure

# Review: <PR title or change description>
**Date:** YYYY-MM-DD  |  **Verdict:** APPROVE | REQUEST_CHANGES | COMMENT
**Target:** PR #N / local diff / agent output at <path>

## Intent
<one-line summary>

## SCORED Assessment
| Category | Rating | Notes |
|----------|--------|-------|
| Security | pass/warn/fail | ... |
| Correctness | pass/warn/fail | ... |
| Observability | pass/warn/fail | ... |
| Readability | pass/warn/fail | ... |
| Efficiency | pass/warn/fail | ... |
| Design | pass/warn/fail | ... |

## Findings
### Critical (must fix)
- **[file:line]** Issue. Suggested fix: ...
### Warning (should fix)
- **[file:line]** Issue. Suggested fix: ...
### Suggestion / Nit
- **[file:line]** Description.

## Missing
<expected but absent: tests, docs, error handling, migration>

Verdict Rules

  • APPROVE: No critical or warning findings. All SCORED categories pass.
  • REQUEST_CHANGES: Any critical finding, OR 3+ warnings, OR any SCORED category rated "fail".
  • COMMENT: 1-2 warnings with no critical findings. Worth discussing but not blocking.

PR Mode: Post Comments

If reviewing a PR and the verdict is REQUEST_CHANGES or COMMENT, offer to post the review:

# Post review comment on the PR
gh pr review "$PR_REF" --comment --body "$(cat "$REVIEW_FILE")"

# Or for blocking review
gh pr review "$PR_REF" --request-changes --body "$(cat "$REVIEW_FILE")"

Only post if the user confirms. Never auto-post a review without explicit approval.


Deep Mode (--deep)

When --deep is specified, after the initial SCORED pass, spawn a council for a second opinion:

/council validate "Review these changes for issues I might have missed: <summary of changes>"

Merge council findings into the review document under a "## Council Findings" section.


Integration with Other Skills

SkillRelationship
/vibeSelf-review (your own code). /review is for others' code.
/councilOptional second opinion via --deep flag.
/standardsAuto-loaded for language-specific rules.
/bug-hunt/review does a structured pass; /bug-hunt does deep investigation of suspected bugs.
/pr-validatePR-specific validation (isolation, scope creep). Complementary to /review.

See Also

  • vibe — Self-review and code quality validation
  • council — Multi-model consensus council
  • standards — Language-specific coding conventions
  • bug-hunt — Deep bug investigation
  • pr-validate — PR scope and isolation checks

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.69%
按下载量换算83

Claude

28.43%
按下载量换算66

Cursor

19.03%
按下载量换算44

Gemini CLI

8.83%
按下载量换算20

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills