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

code-review代码审查

Agent Skill

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

总安装

23,760

周安装

1,039

GitHub Stars

51

下载量

8,320
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/paulrberg/agent-skills --skill code-review

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词快速定位候选结果。
  • 通过 npx 安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发联网或文件读写。
  • code-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Code Review

Objective

Find high-impact defects in changed code with evidence. Prioritize security, correctness, and regressions over style nits.

Arguments

  • --fix: After reporting findings, apply all suggested fixes automatically in severity order (CRITICAL -> HIGH -> MEDIUM -> LOW), then rerun targeted checks and report exactly what changed.
  • --skip-profile <name>: Skip an optional domain profile by stem or filename. Repeatable. Example: --skip-profile naming.
  • Default: Report findings and wait for confirmation before editing.

Scope Resolution

  1. Verify repository context: git rev-parse --git-dir. If this fails, stop and tell the user to run from a git repository.
  2. If user provides file paths/patterns, a commit/range, or a Resolved scope fenced block with one repo-relative path per line, scope is exactly those targets.
  3. Otherwise, scope is only session-modified files. Do not include other uncommitted changes.
  4. If there are no session-modified files, fall back to all uncommitted tracked + untracked files:

- tracked: git diff --name-only --diff-filter=ACMR - untracked: git ls-files --others --exclude-standard - combine both lists and de-duplicate.

  1. Exclude generated/low-signal files unless requested: lockfiles, minified bundles, build outputs, vendored code.
  2. If scope still resolves to zero files, report and stop.

Workflow

  1. Resolve scope and read diffs plus minimal surrounding context.
  2. Classify files by domain/risk.
  3. Apply the core checks below plus only the domain profiles that match the current diff. Honor any --skip-profile exclusions.
  4. Generate findings with: location, impact, evidence, confidence, and concrete fix.
  5. Assign severity with the model below.
  6. Default behavior: report and wait.
  7. With --fix: apply all suggested fixes in severity order, then run targeted verification.
  8. Report using the output schema below.

Core Review Checks

Apply on every run.

Checks

  • CORE-001 Behavior regression (HIGH): changed branch/state transition alters external behavior.
  • CORE-002 Error-path safety (HIGH): failures can cascade, crash, or return unsafe defaults.
  • CORE-003 Boundary handling (HIGH): null/empty/overflow/edge inputs are not handled.
  • CORE-004 Resource hygiene (MEDIUM): leaked timers/listeners/handles/connections.
  • CORE-005 Complexity hotspot (MEDIUM): change introduces avoidable coupling or hidden side effects.
  • CORE-006 Test gap (MEDIUM): changed behavior has no targeted test coverage.

Evidence Expectations

  • Show the concrete input/state that triggers failure.
  • Point to changed lines or nearby guards that caused the risk.

Profile Dispatch

  • references/profiles/security.md: auth, external input, secrets, crypto, public network surfaces, unsafe parsing.
  • references/profiles/configuration.md: env/config, timeouts, retries, pools, limits, resource tuning, rollout controls.
  • references/profiles/typescript-react.md: TypeScript/JavaScript/React/Node files.
  • references/profiles/python.md: Python services, scripts, async workloads.
  • references/profiles/shell.md: shell scripts, CI command blocks, deployment scripts.
  • references/profiles/smart-contracts.md: Solidity/Solana/on-chain protocol code.
  • references/profiles/data-formats.md: CSV/JSON/YAML/binary ingestion/export/parsing.
  • references/profiles/naming.md: naming/intent clarity after correctness and security issues are handled. This profile is optional and can be skipped explicitly.

Load only profiles relevant to touched files. Prefer no more than three domain profiles per pass unless the user requests a deep audit.

Severity Model

  • CRITICAL: exploitable security flaw, data loss path, or outage risk on critical paths.
  • HIGH: logic defect or performance failure that can break core behavior.
  • MEDIUM: maintainability/reliability issue likely to cause near-term defects.
  • LOW: localized clarity/style/documentation improvements.

Output Schema

Use this structure and order for every review result.

1. Scope

List reviewed files and any excluded patterns.

2. Findings (ordered)

Order by severity: CRITICAL -> HIGH -> MEDIUM -> LOW.

For each finding, use this shape:

  • [SEVERITY] Title — path/to/file.ext:line
  • Impact: concrete user/system impact.
  • Evidence: exact code behavior or diff evidence.
  • Fix: smallest practical remediation.
  • Confidence: high | medium | low.

3. Suggested Fixes

Include when not using --fix.

4. Applied Fixes

Include only when --fix is used. List each change with file references.

5. Verification

List commands run and outcomes. Explicitly list skipped checks.

6. Residual Risks / Open Questions

Capture unresolved assumptions and follow-ups.

Rules

  • Do not fabricate locations.
  • Merge duplicate findings.
  • Keep style-only issues at LOW unless they create operational risk.

Evidence Rules

  • Never fabricate line numbers.
  • Tie each finding to concrete code evidence.
  • Explain blast radius and failure mode succinctly.
  • Prefer targeted fixes over broad rewrites.

Verification

Run the narrowest checks that validate touched behavior:

  • formatter/lint on touched files,
  • targeted tests for impacted modules,
  • typecheck when relevant.

If checks cannot run, state exactly what was skipped and why.

Stop Conditions

Stop and ask for direction when:

  • fixes require API/contract redesign,
  • behavior intent is too ambiguous to classify severity,
  • required validation tooling is unavailable and risk is high.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.72%
按下载量换算2,972

Claude

28.49%
按下载量换算2,370

Cursor

17.56%
按下载量换算1,461

Gemini CLI

9.45%
按下载量换算786

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills